How would make a script that allows my custom character to respawn in the same position after death? This is what I have.
wait() local Humanoid = script.Parent.Humanoid local char = script.Parent local Player = game.Players.LocalPlayer
Humanoid.HealthChanged:Connect(function(Health) if Health <= 0 then local area = char.HumanoidRootPart.CFrame Player.Character = char wait(5) Player:LoadCharacter() char.HumanoidRootPart.CFrame = area end end)
There are a few script errors I have tried this script and it worked. Try this. name="Humanoid"
robo=script.Parent:clone()
while true do wait(1) if script.Parent.Humanoid.Health<1 then robot=robo:clone() robot.Parent=script.Parent.Parent robot:makeJoints() script.Parent:remove() end end
Tell me if it fails I'll try and make a new script if it fails.
Hey aeco_ux. LoadCharacter() does not work on the client.