amnt = 10000 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("Stats") if (stats~=nil) then local score = stats:findFirstChild("Multiplier") if (score~=nil) then score.Value = score.Value + amnt script.Parent:Destroy() --Added it in right here to destroy part end end end end end

script.Parent.Touched:connect(onTouched)

4 comments

0

Format your script please.

0

idk what how to format is that Right ??

0

Alternatively you can send a link of an image of your script. Unless it's the same as what you wrote here lol

0

You almost formatted your code! I can see that at the top there is a code format, however, your whole code isn't in that format. Make sure your code is in the middle of the two ~~~~ lines!