Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do I make It Destroy The Billboard Aswell As The Part ?

Asked by 3 years ago
Edited 3 years ago

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)

0
Format your script please. LeedleLeeRocket 1257 — 3y
0
idk what how to format is that Right ?? LegendsStudio 0 — 3y
0
Alternatively you can send a link of an image of your script. Unless it's the same as what you wrote here lol LeedleLeeRocket 1257 — 3y
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! RazzyPlayz 497 — 3y

Answer this question