of     1   

matt10010010010
#183148229Sunday, February 07, 2016 11:10 AM GMT

I am wondering if there is a way to make a GUI pop open As a Warning Message When a player clicks a Gui to teleport to another place.
direMitten
#183148275Sunday, February 07, 2016 11:12 AM GMT

Sure. Use TextButtons or ImageButtons. They both have a MouseButton1Click event. When the player clicks the button, change the Visible property of the warning message to true.
matt10010010010
#183148315Sunday, February 07, 2016 11:14 AM GMT

So like script.Parent.Parent.FRAMENAME.Visible = true?
direMitten
#183148334Sunday, February 07, 2016 11:16 AM GMT

Exactly
matt10010010010
#183148346Sunday, February 07, 2016 11:17 AM GMT

Thanks dire
matt10010010010
#183148523Sunday, February 07, 2016 11:29 AM GMT

s = game:service("TeleportService") id = ("177156215") --put the number here function onClicked() script.Parent.Parent.OJHWarning.Visible = true wait(10) s:Teleport(id) end script.Parent.MouseButton1Click:connect(onClicked) Help
matt10010010010
#183150660Sunday, February 07, 2016 1:36 PM GMT

Bump
Out0fTime
#183150841Sunday, February 07, 2016 1:47 PM GMT

What's the problem? ._.
matt10010010010
#183177929Sunday, February 07, 2016 10:18 PM GMT

What im trying to do is make a GUI open when toy click a button too teleport to a Sub universe game Basicly.
matt10010010010
#183210813Monday, February 08, 2016 9:52 AM GMT

Bump
mityguy
#183214630Monday, February 08, 2016 1:45 PM GMT

That code you posted ought to work, whats up? Where does it break?
matt10010010010
#183234637Monday, February 08, 2016 10:32 PM GMT

All I know is OJH is not a Valid member of Anything
matt10010010010
#183237705Monday, February 08, 2016 11:16 PM GMT

Bump
matt10010010010
#183278880Tuesday, February 09, 2016 9:04 PM GMT

bump2
MakerModelLua
#183279540Tuesday, February 09, 2016 9:16 PM GMT

output pls
Dev_Ryan
#183280183Tuesday, February 09, 2016 9:28 PM GMT

Always wait for the frames and stuff to load using :WaitForChild("") if you try to reference/use it before it is done loading, the script will error. Try this: (edit where needed) local frame = script.Parent:WaitForChild("FRAME NAME") -- change to your frame to make visible local teleportId = 0 -- put id here local debounce = true -- to prevent players from clicking more than once. script.Parent.MouseButton1Click:connect(function(click) if frame and debounce then -- checks if frame exists debounce = false -- prevents multiple clicking frame.Visible = true wait(10) game:GetService('TeleportService'):Teleport(teleportId, game.Players.LocalPlayer) end end)
matt10010010010
#183283174Tuesday, February 09, 2016 10:16 PM GMT

@Toon It Disabled my GUI button so It wont go to any other Games.
matt10010010010
#183283274Tuesday, February 09, 2016 10:18 PM GMT

Idk if this will help but http://prntscr.com/a176td
Dev_Ryan
#183284366Tuesday, February 09, 2016 10:34 PM GMT

Oh then change: local frame = script.Parent:WaitForChild("FRAME NAME") to: local frame = script.Parent.Parent.Parent:WaitForChild("OJHWarning")
matt10010010010
#183317338Wednesday, February 10, 2016 11:17 AM GMT

Ok, GUI Opens (Yay) and now... IT dont teleport...
matt10010010010
#183384989Thursday, February 11, 2016 7:20 PM GMT

bump

    of     1