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

Making a regen button?

Asked by 11 years ago

I seen regen buttons that regen carts, models, etc. I don't know how to make one of these. Anyone have any suggestions?

1 answer

Log in to vote
0
Answered by 11 years ago
01Deb = false
02Model = YourModel:Clone()
03Model.Parent = game.Lighting
04 
05function Regen(hit)
06Hum = hit.Parent:FindFirstChild("Humanoid")
07if Hum and Deb == false then
08Model:Clone().Parent = game.Workspace
09Deb = true
10wait(1)
11Deb = false
12end
13end
14 
15script.Parent.Touched:connect(Regen)
0
Thank you. I'll try this ^^ Alyssall 0 — 11y
Ad

Answer this question