Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Making a regen button?

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

✓ Accepted answer
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)

1 comment

0

Thank you. I'll try this ^^

This discussion is preserved as it was. New answers, comments, and votes are closed.