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)

1 comment
It is a local script inside of the character.