Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

a teleportation script that teleports a local player?

Asked by 7 years ago

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?

0
U can use GetPlayers, if you know how to do for i, = 1 , #GetPlayers do, etc... GForcebot 0 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

Sorry! I DON'T HAVE THE ANSWER but this question this like the best one I saw like ever!

0
thanks? popthecorn145 16 — 7y
0
np? ZAZC_Noob 7 — 7y
Ad
Log in to vote
0
Answered by 7 years ago
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.

Answer this question