#I need help with my simulator

13 messages · Page 1 of 1 (latest)

vale lance
#

many things broken pls dm me if you would like to help i have multiple things id like help on

waxen portal
#

send the script here

vale lance
#

@waxen portal

#

i fixed the weird = +10

#

its now += 10

#

grabable item

waxen portal
#

what's the problem?

vale lance
#

i cant grab item shoudl disapear and gimme 10 gems

ionic steppeBOT
#

studio** You are now Level 1! **studio

waxen portal
#
local Players = game:GetService("Players")
local Gem = script.Parent
local OriginalPosition = Gem.Position

Gem.Touched:Connect(function(touched)
    if touched.Parent:IsA("Model") and touched.Parent:FindFirstChild("Humanoid") then
        local Player = Players:GetPlayerFromCharacter(touched.Parent)
        if Player then
            local Leaderstats = player.leaderstats
            local GemClone = Gem:Clone()
            
            leaderstats.Gems.Value += 10
            Gem:Destroy()
            
            wait(10)
            
            GemClone.Parent = workspace
            GemClone.Position = OriginalPosition
        end
    end
end)
vale lance
#

i did

#

local Players = game:GetService("Players")
local Gem = script.Parent
local OriginalPosition = Gem.Position

Gem.Touched:Connect(function(touched)
if touched.Parent:IsA("Model") and touched.Parent:FindFirstChild("Humanoid") then
local Player = Players:GetPlayerFromCharacter(touched.Parent)
if Player then
local Leaderstats = player.leaderstats
local GemClone = Gem:Clone()

        leaderstats.Gems.Value += 10
        Gem:Destroy()
        
        wait(10)
        
        GemClone.Parent = workspace
        GemClone.Position = OriginalPosition
    end
end

end)