generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to Destroy a GUI

Previous Thread :: Next Thread 
Tomboking is not online. Tomboking
Joined: 01 Nov 2012
Total Posts: 461
06 Oct 2015 02:10 PM
I have tried below:

gui = script.Parent.picture

gui:destroy()

also

gui:remove()

The problem I face is that when the user resets it comes back.

helppp pls
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
06 Oct 2015 02:11 PM
gee I wonder what StartGui was supposed to do
Report Abuse
Tomboking is not online. Tomboking
Joined: 01 Nov 2012
Total Posts: 461
06 Oct 2015 02:16 PM
StartGui?
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
06 Oct 2015 02:17 PM
StarterGui.....
Report Abuse
brados123 is not online. brados123
Joined: 24 Nov 2012
Total Posts: 2143
06 Oct 2015 02:17 PM
i will help for a fixed fee of 45 robux.

pm me.


thanks guys
Report Abuse
Tomboking is not online. Tomboking
Joined: 01 Nov 2012
Total Posts: 461
06 Oct 2015 02:19 PM
Your kidding right? All I want to know is how to permanently remove a GUI from the game, it involves that much greediness to know?
Report Abuse
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
06 Oct 2015 02:19 PM
"i will help for a fixed fee of 45 robux."

are you serious?

anyways, make sure you are removing the root (the screengui)





"This is life, truthfully I just want to fly some kites, Grab Salem and Slater and go around, riding bikes" - Tyler
Report Abuse
brados123 is not online. brados123
Joined: 24 Nov 2012
Total Posts: 2143
06 Oct 2015 02:19 PM
how do you think i make money?


thanks guys
Report Abuse
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
06 Oct 2015 02:20 PM
if it's in startergui, then the gui will return after death.




"This is life, truthfully I just want to fly some kites, Grab Salem and Slater and go around, riding bikes" - Tyler
Report Abuse
Tomboking is not online. Tomboking
Joined: 01 Nov 2012
Total Posts: 461
06 Oct 2015 02:21 PM
Oh thankyou so much, so I move the gui where?
Report Abuse
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
06 Oct 2015 02:22 PM
if you are trying to make the gui appear once, make sure you make some type of boolvalue that allows the gui to be given only ONCE if the bool is false, if it's true, then it will no longer give the gui, resulting in it being given once.

elseif, you are trying to make the gui appear at a certain place (such as ontouched), then you will have to clone the gui into the playergui.



"This is life, truthfully I just want to fly some kites, Grab Salem and Slater and go around, riding bikes" - Tyler
Report Abuse
Tomboking is not online. Tomboking
Joined: 01 Nov 2012
Total Posts: 461
06 Oct 2015 02:35 PM
If the bool is set to true then it will run as I've just seen, the problem now is even if I change the bool to false it goes back to true when you reset. :///
Report Abuse
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
06 Oct 2015 02:36 PM
Place it somewhere where it wouldn't reset

ex: Place it inside the Player where the Backpack and PlayerGui is stored, like where leaderstats would normally be stored.



"This is life, truthfully I just want to fly some kites, Grab Salem and Slater and go around, riding bikes" - Tyler
Report Abuse
brados123 is not online. brados123
Joined: 24 Nov 2012
Total Posts: 2143
06 Oct 2015 02:41 PM
can't you just do a script that creates the gui, obviously you need to declare player and parent the new instance into startergui, and then make the script check if the players humanoid has a value of 0, if it does, set visible to false in the frame.
thanks guys
Report Abuse
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
06 Oct 2015 02:42 PM
The PlayerAdded Voids can also be used for one time gui giving.



"This is life, truthfully I just want to fly some kites, Grab Salem and Slater and go around, riding bikes" - Tyler
Report Abuse
Tomboking is not online. Tomboking
Joined: 01 Nov 2012
Total Posts: 461
06 Oct 2015 02:46 PM
I'll try that if this doesn't work out.

In the if statement I have something on the lines of
if MyBool
then
wait(100)
game.StarterGui.Loading.remove()
MyBool = false
else
game.StarterGui.Loading.remove()
end

I don't think it changes the bool to false in the "then" statement because it starts when I reset.
Report Abuse
Jordanism is not online. Jordanism
Joined: 09 Jan 2010
Total Posts: 7187
06 Oct 2015 03:02 PM
Don't make the GUI in startergui.
Make it in workspace with a script that makes it appear when you first start the game.
Report Abuse
Foreboding is not online. Foreboding
Joined: 22 Aug 2010
Total Posts: 19154
06 Oct 2015 03:05 PM
@Jordan

No.

You make GUI's in starter gui, why would you not?


#code print ("Shots fired, ready for the war!") -- Currently working on Gui's
Report Abuse
Jordanism is not online. Jordanism
Joined: 09 Jan 2010
Total Posts: 7187
06 Oct 2015 03:07 PM
I made my intro GUI in Workspace so it doesn't show up every time you respawn.
Report Abuse
Foreboding is not online. Foreboding
Joined: 22 Aug 2010
Total Posts: 19154
06 Oct 2015 03:09 PM
" so it doesn't show up every time you respawn."

do you know how to script?


#code print ("Shots fired, ready for the war!") -- Currently working on Gui's
Report Abuse
Jordanism is not online. Jordanism
Joined: 09 Jan 2010
Total Posts: 7187
06 Oct 2015 03:16 PM
no i do not.
I know how to make things work tho :)
Im a builder without a scripted so I have to make do
Report Abuse
Tomboking is not online. Tomboking
Joined: 01 Nov 2012
Total Posts: 461
06 Oct 2015 03:18 PM
I moved my GUIs from StarterGui to Workspace and they don't even work, I've tried the game.StarterGui:SetCoreGuiEnabled but they still don't work.
Report Abuse
TheGreenDeveloper is not online. TheGreenDeveloper
Joined: 29 Dec 2013
Total Posts: 776
06 Oct 2015 03:42 PM
put this at the beginning of your script:

game.StarterGui.ResetPlayerGuiOnSpawn = false
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image