local clone = npc:Clone()
local respawnTime = 10
humanoid.Died:Connect(function() -- Humanoid died
wait(respawnTime) -- Wait until it's time to respawn
clone = clone:Clone()
clone.Parent = workspace
clone:MakeJoints()
local newHum = clone:WaitForChild("Humanoid") do -- Make it so it's actually alive
newHum.Health = newHum.MaxHealth
end
npc:Destroy()
end)
Actually the script only worked when i put it in a dummy, however I want to put this script in a tree model. however i got another free model dummy and tested the script there and it didnt work.