How to make a settings gui in roblox

Help and Feedback Art Design Support

This is my first DevForum post so don’t mind my bad intro

Right now I am making an FPS game and am looking for suggestions and feedback on this Settings GUI. At the moment I only have an option to adjust the gun sensitivity and change the graphics.

Suggestions:

What suggestions will I take?

  • Design Suggestions

  • Setting Suggestions (preferably)

Please take into consideration that the goal for this GUI was a simple GUI, with no bright colours or fancy designs.

Thank you.

How to make a settings gui in roblox

1 Like

First of all, welcome!

First thing that stands out to me here is that there doesn’t appear to be any indication as to what Graphics setting I am currently using. Perhaps this will be set with some sort of contrasted button color background or something in the future but I just figured I would throw that out there.

I might condense it to “Sensitivity” as the left panel and then have “Mouse Sensitivity” and “Aim Sensitivity”.

For the Graphics settings you might be able to save some space by going for a checkbox route of having three boxes to the right of some text essentially like this:

Low

How to make a settings gui in roblox
Medium

High

It may help you with fitting additional settings later by saving some space.

I am not a UI Designer, and I am sure some awesome members of the community will make some suggestions far better than what I have made

How to make a settings gui in roblox

Wow, I was not expecting anyone or an ADMIN to reply. I was going to add checkboxes but I found it easier to just add an outline to the selected box (it only took me like 5 minutes)

You’re like very lucky dude. Anyway I suggest to add more details, and do you notice the sky down? Yeah you need to fix that.

10 min

This article expands on the articles/Using Images in GUIs|Using Images in GUIs tutorial and demonstrates how to make on-screen buttons that can be used for menus, in-game actions, and much more.

Button Types

Text Button

A TextButton is very similar to a TextLabel, except that a player can activate it with a click/tap. Internally, it also shares many of the same visual properties as a text label — font, background color, stroke color, etc.

How to make a settings gui in roblox

Image Button

Similarly, an ImageButton is like an interactive version of the ImageLabel object and it uses a custom image that you upload to Roblox. It also shares most of the same properties as its non-button counterpart.

How to make a settings gui in roblox

Creating a Button

The remainder of this article demonstrates how to add an ImageButton to the screen and flip it between three appearances depending on the player’s interaction.

Add an ImageButton

  1. In the Explorer window, hover over the StarterGui object, click on the circle
    How to make a settings gui in roblox
    button, and insert a ScreenGui object.
  2. Select the new ScreenGui object and, in a similar manner, insert an ImageButton.
How to make a settings gui in roblox

This will add an empty image button to the corner of the game view.

How to make a settings gui in roblox

Upload Images

This button needs three custom images — its normal appearance on the screen, a hover-over appearance, and a final image for when the player presses it.

How to make a settings gui in roblox
ImgButtonNormal

How to make a settings gui in roblox
ImgButtonHover

How to make a settings gui in roblox
ImgButtonPressed

You can use these menu buttons for testing — simply right-click each one and select Save Image As... to save them to a convenient location on your computer.

Instead of uploading each image separately, use the Asset Manager to upload multiple assets at once:

  1. If it’s not already open, click Asset Manager from the View tab.
How to make a settings gui in roblox
  1. Click the Import button near the top of the window.
How to make a settings gui in roblox
  1. Find the three images on your computer, select them, and confirm that you’d like to upload them.
  2. When finished uploading, double-click the Images folder or select Images from the “tree view” menu.

How to make a settings gui in roblox

How to make a settings gui in roblox

Inside the folder, you should see the new images:

How to make a settings gui in roblox

Setting the three appearances for the button can be done through the ImageButton object.

  1. In the Explorer window, select the new ImageButton object.
How to make a settings gui in roblox
  1. In the Properties window, click on the Image property and select the ImgButtonNormal asset.
How to make a settings gui in roblox
  1. Click on the HoverImage property and select the ImgButtonHover asset.
How to make a settings gui in roblox
  1. Click on the PressedImage property and select the ImgButtonPressed asset.
How to make a settings gui in roblox

Adjust the Button

To finalize the button’s appearance on screen, make the following adjustments:

  1. In the Properties window, set BackgroundTransparency to a value of 1 to make the background transparent.
How to make a settings gui in roblox
  1. Move the button slightly away from the corner by setting both PositionXOffset and PositionYOffset to around 50.
How to make a settings gui in roblox

Attach a LocalScript

The final task is hooking up basic button functionality.

  1. In the Explorer window, hover over the ImageButton object, click the
    How to make a settings gui in roblox
    button, and insert a LocalScript. This will create a new LocalScript and show it.
How to make a settings gui in roblox
  1. In the script, copy and paste in these new lines:

This is a basic button script and it works as follows:

  • The first line sets a variable button which tells the script what specific object it’s linked to. In this case it’s linked to the ImageButton, the parent of the script.

  • The onButtonActivated() function is the primary handler for the button’s activation. Inside it, you should perform the intended action like opening the game’s main menu.

  • The final line connects the button to the onButtonActivated() function with the GuiButton/Activated|Activated event. This will cause the function to run every time a player activates the button in game.

Although there are several different event types which you can connect to buttons, the GuiButton/Activated|Activated event is the most reliable for basic buttons, providing standard button behavior on all platforms from PC to phone/tablet to console.

If the button doesn’t work as expected, check the following:

  • Make sure you used a client-side LocalScript, not a server-side Script.
  • Ensure that the LocalScript is a direct child of the ImageButton object (not the top-level ScreenGui parent).
  • Confirm that your ImageButton object's Image, HoverImage, and PressedImage properties are set to the appropriate image assets.


Tags: