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

How will i make this script respawn the coin in like 5 seconds after i collect it? [closed]

Asked by 5 years ago
Edited 5 years ago

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)

0
You clearly did not make this script User#24403 69 — 5y
0
what do you mean DuckyRobIox 280 — 5y
0
you didnt make this script, and your not using code blocks, non constructive LoganboyInCO 150 — 5y
0
Codeblock please EpicMetatableMoment 1444 — 5y

Closed as Not Constructive by User#24403 and EpicMetatableMoment

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?