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?
Sorry! I DON'T HAVE THE ANSWER but this question this like the best one I saw like ever!
function goto() plrname = game.Players.LocalPlayer.Name game.Workspace[plrname].Position = game.Workspace.player2name.Position end script.Parent.MouseButton1Click:connect(goto) -- That's the best I could do, sorry.