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 10 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 10 years ago
Deb = false
Model = YourModel:Clone()
Model.Parent = game.Lighting

function Regen(hit)
Hum = hit.Parent:FindFirstChild("Humanoid")
if Hum and Deb == false then
Model:Clone().Parent = game.Workspace
Deb = true
wait(1)
Deb = false
end
end

script.Parent.Touched:connect(Regen)
0
Thank you. I'll try this ^^ Alyssall 0 — 10y
Ad

Answer this question