Make this clean and modern UI ✨ in Roblox Studio — Transcript
Full transcript
- 0:00I'm going to show you [music] how to
- 0:01create this modern UI style in Roblox
- 0:04Studio. I'm going to explain the process
- 0:07step by step so you can do it the right
- 0:09way, making it eye-catching, minimalist,
- 0:12and [music] above all, adaptable to any
- 0:15device. But before we start, you need to
- 0:18know one thing. [music] For our user
- 0:20interface to adapt to any device, its
- 0:23size must be set using scale, not
- 0:25offset, which is [music] pixels. This is
- 0:28because scale measures the percentage of
- 0:30screen space. So it's different for each
- 0:33screen. And finally, our UI needs a very
- 0:36important object, the UI aspect ratio,
- 0:39[music] which automatically adjusts the
- 0:41scale proportionally while maintaining
- 0:43the shape. Okay,
- 0:45>> let's do this.
- 0:47>> The first thing we're going to do is
- 0:49create [music] a screen UI. And within
- 0:50it, we'll create our hot bar where the
- 0:52buttons will be. As I mentioned, we're
- 0:56going to adjust the size of all objects
- 0:58using [music] scale, not offset. It's
- 1:01also recommended to set the anchor
- 1:03[music] point to the center of the
- 1:05frame.
- 1:06Once it's adjusted to our liking, we'll
- 1:09create a UI list layout, which will
- 1:11automatically [music] arrange the
- 1:12buttons in a row. Since our hot bar is
- 1:15horizontal, we'll change the direction
- 1:17[music] to horizontal and center the
- 1:19buttons. Now, we're going to create a
- 1:21text button, change its anchor point,
- 1:24adjust the scale to our liking,
- 1:26duplicate [music] it, and then adjust
- 1:28the spacing between the buttons. If it
- 1:31[music] doesn't look right, like it does
- 1:33now, we can go back and adjust the size
- 1:35of the buttons and the hot bar. Once we
- 1:38have what we're looking for, we'll
- 1:40delete the other buttons and improve the
- 1:42first one. First, we're going [music] to
- 1:44add a UI corner, which softens the
- 1:46buttons sharp edges. We'll also remove
- 1:49the text since [music] we won't need it.
- 1:52And also, we're going to remove this
- 1:54ugly effect where the button darkens
- 1:55[music] when the mouse hovers over it.
- 1:58It's done with this button. Now, I'm
- 2:00going to rename it and duplicate it.
- 2:03[music] And I'm going to create the UI
- 2:05aspect ratio I told you about earlier.
- 2:07[music] I'm going to adjust this until
- 2:09the buttons have their original shape.
- 2:12All right. As you can see, [music] it
- 2:14adjusts in size without deforming.
- 2:16However, if I remove [music] it, it
- 2:18adjusts by deforming.
- 2:21Once again, we're going to [music] get
- 2:23rid of the other buttons and fit an
- 2:24image label inside the button. All of
- 2:27this using the scale. I'm also [music]
- 2:29going to put here a text label and make
- 2:31the text scalable. And for the image,
- 2:34I'll [music] use a white icon so I can
- 2:36change its color however I want. Now,
- 2:39I'm going to duplicate the button and
- 2:41[music] change the images and text on
- 2:43the others as well as the color. Once
- 2:45that's done, [music] we'll test to see
- 2:47if the element size is adjust. It seems
- 2:50like the letters aren't. That's because
- 2:52[music] I hadn't made the text scalable
- 2:54or adjusted its size with the scale.
- 2:57Now, it [music] really works.
- 3:01If we play, we'll see that the hot bar
- 3:04looks really nice, but [music] it's
- 3:05pretty bland with no effects. Let's add
- 3:08the effects I showed you at the
- 3:10beginning of the video. Sorry, folks,
- 3:13but it is what it is. We've [music] got
- 3:14to do a little programming, but I'm
- 3:17going to make sure the script is well
- 3:19organized and clean so [music] you can
- 3:20understand it if you know any loop
- 3:23programming. If not, you can still take
- 3:25a look, but you might not get it. Let's
- 3:28[music] divide the script into three
- 3:30parts. The variables we're going to use,
- 3:32[music] the functions, and how we'll
- 3:34connect those functions to the hot bar
- 3:37button events. First of all, we're
- 3:40really going to need our hot bar and the
- 3:41beloved tween [music] service, which can
- 3:43handle all kinds of animations. Now,
- 3:46we're going to set the three [music]
- 3:48sizes the buttons will adopt. For the
- 3:50default size, we are going to copy and
- 3:53paste the button [music] size, the one
- 3:55it has right now. Then the large size,
- 3:57the size the button takes [music] on
- 3:59when the mouse hovers over it. This will
- 4:01be the normal size plus a small amount.
- 4:04And finally the small one which will be
- 4:07the normal [music] size minus a small
- 4:09amount.
- 4:10Now we're going to add three sounds
- 4:12which I [music] already had saved. These
- 4:15will be the hover sound, the hold sound,
- 4:18[music] and the release sound. If you
- 4:21don't find any you like, I'll leave the
- 4:23IDs for these sounds in the description.
- 4:26Now let's move on to the functions. The
- 4:29first [music] function will be executed
- 4:31when the mouse hovers over the button.
- 4:33and we're going to make it grow larger
- 4:35and change color. To do this, we'll set
- 4:38two parameters, [music] the button and
- 4:40the buttons color. To create the
- 4:42animation, we'll use the tween service.
- 4:45The tween service has three parameters.
- 4:47The object we're going to animate. In
- 4:50this case, the button, then the
- 4:52animation information, and [music] the
- 4:54goal. In this case, I only need the
- 4:57duration, so I'll just set that. But
- 5:00there are other parameters like easing
- 5:02style, easing direction, delay, and a
- 5:05few more. The final state of the object
- 5:08is enclosed [music] in curly braces
- 5:10because it's a table. Here, we're going
- 5:12to set the size to [music] the buttons
- 5:13large size. Now, we play the sound. And
- 5:17finally, we change the background color
- 5:19to the new color. And we change the
- 5:21color of the image and the [music] text
- 5:23to white. In the following function,
- 5:25we'll do the same thing but in reverse
- 5:28since it runs when the mouse is no
- 5:30longer over the button. [music] So,
- 5:32we'll set it back to its normal size and
- 5:34swap the colors.
- 5:36Now comes [music] the mousehold
- 5:38function. This function is executed when
- 5:41we press the left mouse button, [music]
- 5:42but don't release it. Here, we'll only
- 5:45need the first parameter. Inside the
- 5:48function, [music] we're going to run
- 5:49another animation. Here, we are making
- 5:52the button smaller. Don't forget to play
- 5:54the [music] sound.
- 5:56Finally, let's create the function that
- 5:59runs when the click is [music] released.
- 6:01Here, we are simply going to change the
- 6:03buttons size back to its original size.
- 6:07And we're also going to play the sound
- 6:09that's left. We already have all the
- 6:11functions. [music]
- 6:13To finish, we're going to connect the
- 6:15functions to the hot bar buttons.
- 6:17[music] We'll do it with a for loop
- 6:19accessing all the hot bars children that
- 6:21are buttons. Once obtained, we connect
- 6:24them to the functions using the
- 6:26corresponding events. For the mouse
- 6:28enter event, we will call the mouse
- 6:30hover function with the following
- 6:32parameters, the button [music] obtained
- 6:34through the loop and the buttons
- 6:35characteristic color, which is found in
- 6:38the buttons image. Now, we'll connect
- 6:40the remaining events to their [music]
- 6:42respective functions in the same way.
- 6:45It should look like this.
- 6:48It seems I've made a small mistake.
- 6:50[music] The error is here in the mouse
- 6:52leave function. The second parameter
- 6:55changes because the colors are swapped.
- 6:57So, I'll have to set the background
- 6:59color. It works [music] perfectly. As
- 7:02you can see, it's a clean, eye-catching,
- 7:04minimalist UI that's fully responsive on
- 7:07any device. To wrap up the tutorial, I'm
- 7:10[music] going to create a simple window
- 7:12and connect it to the mouse release
- 7:13function so it can be opened and closed.
- 7:17>> Oh my god. I hope you enjoyed this
- 7:20tutorial. Honestly, I had a great time
- 7:23making this video and I really love how
- 7:25the modern UI turned out. I hope it was
- 7:28helpful [music] to you. If so, you
- 7:30already know how to support me. Until
- 7:33[music] next time.
About this transcript
This page contains the full transcript of Make this clean and modern UI ✨ in Roblox Studio by Develuper, generated from the public captions YouTube serves with the video. The transcript has 1,320 words across 196 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.