Problem with teleporting the player

LOCAL SCRIPT

local Tp = workspace.Map1.TeleportMap1
wait(5)
local plr = game.Players.LocalPlayer
local char  = plr.Character
local Root = char.HumanoidRootPart
Root.Position = Tp.Position

– the char is in the lobby but the humanoid root part is not

You need to change the CFrame instead.

Fixed code:

local Tp = workspace.Map1.TeleportMap1
wait(5)
local plr = game.Players.LocalPlayer
local char  = plr.Character
local Root = char.HumanoidRootPart
Root.CFrame = CFrame.new(Tp.Position)

And by the way, you probably want to be using a server script to teleport the player…

1 Like