so im making a GUI teleportation thing so it would be easyer for people to move around on my game but heres the issue
function goto() game.workspace.Player1.HumanoidRootPart.CFrame = CFrame.new(Vector3.new("-87.5, 0.5, 105.5"))
end script.Parent.MouseButton1Click:connect(goto)
the only way i know how to make a teleportation script is this way and this way i would have to add everyplayer to this script if that makes since. can someone show me a dif way of making a player teleport script?

1 comment
U can use GetPlayers, if you know how to do for i, = 1 , #GetPlayers do, etc...