Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Respawn Script by 1MinuteRobloxTutorials--
- local Copy = script.Parent:Clone()
- local NPC = script.Parent
- local Humanoid
- for i, v in pairs(NPC:GetChildren()) do
- if v:IsA("Humanoid") then
- Humanoid = v
- end
- end
- if Humanoid then
- Humanoid.Died:Connect(function()
- wait(1)
- Copy.Parent = NPC.Parent
- Copy:MakeJoints()
- NPC:Destroy()
- end)
- else
- warn("Cannot find Humanoid in Respawn Script")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement