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

How do I make a teleporting GUI? [ANSWERD] [closed]

Asked by 10 years ago

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.

Locked by AmericanStripes

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

3 answers

Log in to vote
1
Answered by
jav2612 180
10 years ago

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)

Ad
Log in to vote
0
Answered by 10 years ago

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.

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. jav2612 180 — 10y
0
Ok thank you I get the Cframe but what do you mean the script.parent.parent.parent.parent? gametestworker 0 — 10y
0
That is the Player. The gui is in the Player's PlayerGui so use the appropriate path depending on where the button is. jav2612 180 — 10y
Log in to vote
0
Answered by
Ekkoh 635 Moderation Voter
10 years ago

Like jav said, you need to have a basic understanding before you come here to ask your question. He gave you a correct and clear answer, if you don't understand it you should check out the wiki or some GUI tutorials.

0
Can you link me the place? gametestworker 0 — 10y