Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local respawnTime = 3
- local function respawnNPC()
- local npcClone = script.Parent:Clone()
- npcClone.Parent = workspace
- npcClone:SetPrimaryPartCFrame(CFrame.new(Vector3.new(0, 5, 0)))
- npcClone.Humanoid.Health = npcClone.Humanoid.MaxHealth
- end
- script.Parent.Humanoid.Died:Connect(function()
- wait(3)
- respawnNPC()
- end)
Add Comment
Please, Sign In to add comment