How can I make this myself?

Hello everyone.

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 also want to make the buttons as well, is there an easy way to make something like this.

This is not something highly know how to do, as I’ve never made gui’s before and need some advice and ideas on how I can make my gui look like that.

Thank you!

1 Like

Try this tutorial:

1 Like

What do you mean by rule agreement? The photo is buying an item with ROBUX please elaborate.

Terrible tutorial, doesnt even teach how to script your parents Client Side…

1 Like

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…

You might want to read what I just quoted from my post. :neutral_face:

Sorry I did not read it properly

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)

You don’t need that if you use StarterGUI. It will put the screengui into PlayerGui when they join and start running any scripts that exist within it.

You are assuming the script isn’t inside the screengui and doesn’t know if it exists.

Try the tutorial and see if it works. (it will)

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.

I think you’re overcomplicating it.

Whenever anyone joins it will pop up like that… and even if im wrong, thats a TERRIBLE way to learn… why learn the wrong way…

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.

What? Or you could just make a Gui like normal lol

Well, by all means post some code for the fella that he can use.

Here, I made an example for you as simple as I could:

image

copyRulesGUI:

script.ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui

closeGUI:

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Parent.Parent:Destroy()
end)

This message pops up once for each player and never again on resets. Will pop up every time you rejoin.

2 Likes