How to make a script that teleports someone


I want to make a teleport script in roblox. I want to make my character teleport when they press sell.
but this happens instead.
robloxapp-20220416-0727515.wmv (4.7 MB)

Use the CFrame :
https://developer.roblox.com/en-us/api-reference/datatype/CFrame

1 Like

try using Player.Character:MoveTo(position)

1 Like

OK will do im trying both right now.

Thanks :moveto() worked!!!

I have improved your script, I recommend you to use MoveTo more often. I hope I have helped

local player = game.Players.LocalPlayer

local Character = player.Character

local SellPlatform1 = game.Workspace.SellPlatform1

script.Parent.MouseButton1Down:Connect(function()

print("fired")

Character:MoveTo(SellPlatform1.Position)

end)
1 Like