I seen regen buttons that regen carts, models, etc. I don't know how to make one of these. Anyone have any suggestions?
01 | Deb = false |
02 | Model = YourModel:Clone() |
03 | Model.Parent = game.Lighting |
04 |
05 | function Regen(hit) |
06 | Hum = hit.Parent:FindFirstChild( "Humanoid" ) |
07 | if Hum and Deb = = false then |
08 | Model:Clone().Parent = game.Workspace |
09 | Deb = true |
10 | wait( 1 ) |
11 | Deb = false |
12 | end |
13 | end |
14 |
15 | script.Parent.Touched:connect(Regen) |