A simple fix to your problem would be to move the Humanoid Root by CFraming. This eliminates the outcome of killing the player. Also you need to connect the function, and list variables to gather information on what the HumanoidRootPart is.
Heres the script!
local player = game.Players.LocalPlayer
local character = player.CharacterAdded:wait()
local root = character:WaitForChild('HumanoidRootPart')
function onPlayerEntered()
wait(3)
root.CFrame = CFrame.new(Vector3.new(0, 50, 0))
end
game.Players.PlayerAdded:connect(onPlayerEntered())
I hope this helped, please comment if you have any questions or concerns!
1 comment
one recommendation use HumanoidRootPart to teleport.