What’s up guys? So i started developing the GUI phase of my game and i asked myself, do i need to clone a specific GUI and place it on PlayerGui everytime i want to make it visible to a player and destroy it when i dont want it to be visible anymore? Or its just fine turn the Enabled property of ScreenGuis to false when i want it to disappear and turn in to true when i want it to show to players? Sorry if its a very basic question, i am still learning about game developing. Thanks in advance!!! Hope you have a great day!
Hello!
Did you made a script for the GUI ? If yes, just add :
NameOfTheGui.Transparency = 1
And the GUI will be invisible.
Hope it will help you, have a good day!
1 Like
Also i forgot but before add this line of script, you have to put the script in the GUI that you want to disapear (Or anywhere, it work too), and create the variable, like that :
local NameOfTheGui = script.Parent
-- Only if you put the script directly on the GUI, if not, it's different.
Also i don’t really know how to script a GUI, you should check tutorial on YouTube. (Alvin Blox, for exemple)
1 Like
Hey, if you want the GUI to go visible and then disappear after some time do this!
local guiName = script.Parent
wait(8)
guiName.Visible = true
wait(10)
guiName.Visible = false
1 Like
Thanks guys!!! you guys cleared my doubts, thanks!!!