|
| 16 May 2017 01:20 PM |
hello, i have a have a problem with my Gui because whenever my map goes back into folder from workspace in a minigame, my menu screen pops up. Please help. This is the local script I am using.
Play = Frame.PlayButton Updates = Frame.UpdatesButton Credits = Frame.CreditsButton GUI = script.Parent.Parent
function PlayClicked() wait(1) script.Parent.Visible = false end
function UpdatesClicked() wait(1) script.Parent.UpdatesFrame.Visible = true end
function CreditsClicked() wait(1) script.Parent.CreditsFrame.Visible = true end
Play.MouseButton1Click:connect(PlayClicked) Updates.MouseButton1Click:connect(UpdatesClicked) Credits.MouseButton1Click:connect(CreditsClicked) |
|
|
| Report Abuse |
|
|
DevJoas
|
  |
| Joined: 17 Dec 2014 |
| Total Posts: 627 |
|
|
| 16 May 2017 01:23 PM |
idk why those "wait(1)"s are there but the bug you're encountering is not in this script.
Maybe the player dies when your "map goes back into folder from workspace in a minigame" |
|
|
| Report Abuse |
|
|
|
| 16 May 2017 01:40 PM |
| The ones are in there to make it so that ### ### ###### into the game one second after clicking the button. Also when I die or reset, the menu shows up but I can't fix it so the menu only shows up once. Do you know how to add script so that the menu only shows up once and not every time I die? |
|
|
| Report Abuse |
|
|
|
| 16 May 2017 01:42 PM |
| sorry about the hashtags, i didn't swear, I promise it was roblox's filtering system. But could you help me? |
|
|
| Report Abuse |
|
|
DevJoas
|
  |
| Joined: 17 Dec 2014 |
| Total Posts: 627 |
|
|
| 16 May 2017 01:53 PM |
Use this property:
wiki.roblox.com/index.php?title=API:Class/StarterGui/ResetPlayerGuiOnSpawn
Note: This property is a local property and will not be replicated from server to client if FE is on |
|
|
| Report Abuse |
|
|
RogueMage
|
  |
| Joined: 28 Jan 2012 |
| Total Posts: 1235 |
|
|
| 16 May 2017 02:02 PM |
I have no idea what you're asking but it probably has something to do with these two properties
wiki.roblox.com/index.php?title=API:Class/StarterGui/ResetPlayerGuiOnSpawn
wiki.roblox.com/index.php?title=API:Class/ScreenGui/DisplayOrder |
|
|
| Report Abuse |
|
|
|
| 16 May 2017 02:06 PM |
| Please could you tell me the local script line because i don't know how to write it. |
|
|
| Report Abuse |
|
|
DevJoas
|
  |
| Joined: 17 Dec 2014 |
| Total Posts: 627 |
|
|
| 16 May 2017 02:16 PM |
| If you don't know how to change a property from an object in Lua you should really consider learning that, check the absolute beginner tutorials on the wiki |
|
|
| Report Abuse |
|
|
|
| 16 May 2017 02:48 PM |
| i know how to change a property but i don't know what the local script is |
|
|
| Report Abuse |
|
|
DevJoas
|
  |
| Joined: 17 Dec 2014 |
| Total Posts: 627 |
|
|
| 16 May 2017 02:49 PM |
| What do you mean you don't know what the local script is? |
|
|
| Report Abuse |
|
|