Hello, I have been working around with my scripts for the past two hours trying to troubleshoot errors I am experiencing. This is one of the final errors I have, and is one that I have yet to find a remedy for. The problem is when the Zombie is respawned onto the server, the Zombie instantly dies and the character that first killed it receives the kill for its death.
I used the :MakeJoints() on the Zombie but it still dies upon it respawning. I based it off of the Robot script typically found within a Free Modeled Zombie.
If there is a remedy, or if more of the script is required (I posted the bare guts to simplify the issue), post the response please, Thanks!
-Jknite
function onDeath()
backup = script.Parent:Clone()
wait(3)
script.Parent:remove()
bckp = backup:Clone()
wait(3)
bckp.Parent = game.Workspace
bckp:MakeJoints()
end
script.Parent.Zombie.Died:connect(onDeath)
|