Please help me with these scripts:
script.Parent.Touched:connect(function(hit)
player = game.Players:findFirstChild(hit.Parent.Name)
ring = player.PlayerGui.ring
if ring.Value == true then
ring:remove()
end
end)
AND
script.Parent.Touched:connect(function(hit)
player = game.Players:findFirstChild(hit.Parent.Name)
ring = player.PlayerGui.ring
stats = player:findFirstChild("leaderstats")
gold = stats:findFirstChild("Gold")
if ring.Value == true then
gold.Value = gold.Value + 15
end
end)
I don't know why they won't work IG but they just wont. I mean, they work in STUDIO, just not in game. |