Teleporting script does not work

Alright so…

First, you cannot use Local Player inside of a regular script (Only works with Local Script).

Second, You could utilize instead a MoveTo() function to where it teleports the player to the position of a part.

ClickD.MouseClick:Connect(function(plr)
   plr.Character:MoveTo(game.Workspace.Tele.Position)
end)

You can read more about how this works here: What is the best way to move a character?

1 Like