amnt =1 function onTouched(part) local h = part.Parent:findFirstChild("Humanoid") if (h~=nil) then local thisplr = game.Players:findFirstChild(h.Parent.Name) if (thisplr~=nil) then local stats = thisplr:findFirstChild("leaderstats") if (stats~=nil) then local score = stats:findFirstChild("Coins") if (score~=nil) then score.Value = score.Value + amnt end end end script.Parent:remove() end end ? script.Parent.Touched:connect(onTouched)

4 comments

0

You clearly did not make this script

0

what do you mean

0

you didnt make this script, and your not using code blocks, non constructive

0

Codeblock please