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

Teleporting Player to Player?

How can I teleport a player to another player and selecting the player to be teleported to by using a textbox?

2 answers

Use LostFocus For the event. As this activates when the player has left the text box. use game.Workspace:FindFirstChild(TextBox Text) and game.LocalPlayer.Character.Torso.CFrame = Chosen Player Torso CFrame

I recommend you use the FocusLostevent in a local script, The FocusLostevent fires every time the TextBox loses focus (by the enter button being pressed). Make sure the event searches in the Players service for the player with the name of the text in the TextBoxand sets the CFrame of the your character's torso to the player with their name in the TextBox.

Player1.Character.Torso.CFrame = Player2.Character.Torso.CFrame * CFrame.new(0, 5, 0)

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