Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

a teleportation script that teleports a local player?

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

0

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

2 answers

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

2 comments

0

thanks?

0

np?

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.