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

How do I make a teleporting GUI? [ANSWERD]

I want to make a teleporting GUI that teleports me from a certain place to another (in-game) but I don't know how please tell me.

3 answers

Create a button that teleports you and then use a script that teleports the player when they click the button like this:

player = script.Parent.Parent.Parent.Parent -- this is an example, you will have to define the player.
button = script.Parent
newplace = CFrame.new(0, 0, 0) -- where to teleport the,.

function Clicked()
	if player.Character then
		player.Character.Torso.Anchored = true
		wait()
		player.Character.Torso.CFrame = newplace
		wait()
		player.Character.Torso.Anchored = false
	end
end
button.MouseButton1Click:connect(Clicked)

Can you please be more specific I don't know how to make a button and lime please help me I want it to a like I'm on brick1 I want to go to brick2 with GUI so please help me.

3 comments

1

This isn't a request website... You have you have a basic idea of what you're doing and I can fix a problem your having. I just gave you a script that will teleport a player to a location using a button and thats what you said you were trying to do.

0

Ok thank you I get the Cframe but what do you mean the script.parent.parent.parent.parent?

0

That is the Player. The gui is in the Player's PlayerGui so use the appropriate path depending on where the button is.

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