For my game I want a Rule Agreement gui upon entering my game as I’ve seen games do this, but looked like Roblox’s System, if you know what I mean. If not kind of like this design:
I think if he can follow and make that then he can make his simpler version of it. He doesn’t need an open button, he only needs a close button, the screengui will be visible by default when they join. So he could use the ‘x’ localscript portion and his own text and colors.
? What im saying is that the tutorial is completely wrong, when making a Gui script you have to go into the local players backpack, wait for the PlayerGui folder, then wait for the Gui’s you cant just say script.parent.parent…
When you put a screengui in StarterGUI, it is copied to the player when they join. The GUI will exist and be in the right place when the script is run(after it is automatically cloned into the player). It should work fine. I’m not saying its the best most robust way to code, but it should work for a simple rules display and ‘Agree’ (close) button.
Dude… You obviously dont understand… heres a sample of how you would define Gui’s…
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local InsertGuiNameHere = PlayerGui:WaitForChild("InsertScreenGuiNameHere").(Location of the Gui)
Dude… I know it will work but it will work SERVER SIDE… so everyone in the game will get the Gui pop-up, before arguing with me please get your facts straight…
Everyone will get the GUI when they join. That’s what he wants. When they close it and reset they won’t get it again.(I think, i’d have to test this)
Did you read what he is trying to do. He wants a screengui to show up when they join, they close it, simple. The tutorial will show him how he could make such a think very easily.
No, when other players join, it will pop up only for them. (as it is copied to their playerGUI)
I do see a problem though that he would have to work around:
StarterGui as a container
When a Players’character respawns, the contents of their PlayerGui is emptied. Children of the StarterGui are then copied along with their descendants into the PlayerGui .
So, he would need to make an attribute or a Value to set after they ‘agree’ and not show the GUI after that is set.