Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//This scripts regenerates the Test Dummy
- --//Variables\\--
- local RespawnTime = 2 --//Seconds
- local Humanoid = script.Parent:WaitForChild("Humanoid")
- local Copy = script.Parent:Clone()
- Copy.Parent = Dummy798
- --//Functions\\--
- local function Respawn()
- Copy.Parent = workspace
- script.Parent:Destroy()
- end
- --//Events\\-
- Humanoid.Died:connect(function()
- wait(RespawnTime)
- Respawn()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement