So I have this script that when a humanoid dies, it the same model from ServerStorage, and puts it in the same place the old one was (It is a respawning dummy by the way)
What is puzzling me is that it works 1 or 2 times, but then it just teleports them to the center of the baseplate, here is the script.
hum=script.Parent
model=hum.Parent
dummy=hum.Parent.Torso
pos=dummy.Position
function clone()
dum=game.ServerStorage:FindFirstChild("Dummy")
dumclone=dum:Clone()
dumclone.Parent=game.Workspace
dumclone:MoveTo(pos)
dumclone.Humanoid.Script.Disabled=false
model:Destroy()
end
hum.Died:connect(function()
clone()
end)

2 comments
Thanks. This has happened with a different type of script, I should have learned my lesson, haha.
No problem. Glad I could be of service.