TRANSCRIPTEnglish

How To Make A Dynamic 3D Menu GUI | Roblox Studio

10m 52s860 words137 segmentsEnglish

FULL TRANSCRIPT

0:03

[music]

0:20

Okay, so before make sure that whatever

0:22

you do in your workspace, you're facing

0:24

the back. How do you know if that's the

0:25

case? On the little dice on your screen

0:27

in the top right, it should be a

0:28

brilliant bag. Now create a part change

0:31

dimensions to the following and anchor

0:33

it. Name it cam part. This will be our

0:36

object to our camera that will focus on.

0:39

Then duplicate the part and name it

0:41

intro part. This is to reference the

0:43

position of where our menu will be

0:45

[music] held. You can bring the cam part

0:48

into the replica storage. You should

0:51

also set both parts transparency to one.

1:01

Then create another part and name it

1:03

play part.

1:08

Add a surface GUI on it.

1:14

Create a text button. You can customize

1:16

it however you want. Make sure that the

1:19

surface of the GUI location is set to

1:21

the back of the part.

1:34

You can modify those parameters in the

1:36

surface GUI to make it look better.

1:46

Duplicate the play part into how many

1:48

buttons you want. Each need a different

1:51

name.

1:58

Make sure that also you have one that is

2:00

named boot

2:08

and group all of the buttons as a model.

2:16

Now I'm just looking some things to make

2:18

my gy look better.

2:44

set the root as a primary part.

2:49

I'm adding R six, but of course for you,

2:51

you will have a sneak environment.

2:54

Bring back the menu UI in replica

2:56

storage and then create a local script

2:58

in the player script.

3:01

Hey yo, it's poison.

3:04

It is poison. [music] Where I learn it

3:06

should be burned. It is poisoning us.

3:09

[music]

3:13

First, we will need our variables. We

3:14

set our player and players just in case.

3:19

the camera of our player

3:24

run service as we're going to modify the

3:26

camp parts in a loop.

3:31

Replicate storage to bring out a menu

3:39

part. The part that the camera will

3:40

follow.

3:43

We immediately clone it. Then we parent

3:46

it to workspace

3:50

and set hit its position to the intro

3:53

part position. Religion over

3:59

choices drop out of school.

4:02

We set the subject of our camera to the

4:04

campart.

4:15

and the camera type to scriptable so it

4:17

won't move when we right click.

4:23

We add the move factor variable for when

4:26

we translate the mouse position from the

4:29

screen to the position of the campart in

4:32

the 3D world. Add two previous mouse

4:34

positions to later know if there is any

4:38

change. So if the player moves his mouse

4:40

or not and a max position which will

4:43

limit on how the camp parts can go to.

4:47

We set the original position as an

4:49

origin which is the initial campart

4:52

position.

5:00

We duplicate our UI on the workspace.

5:04

No need to put it into a specific

5:07

position. it will do itself later.

5:10

Although make sure to parent it to

5:13

workspace.

5:15

By default, our mouse isn't moving.

5:27

loop using run service.

5:39

As much as I would like to explain what

5:41

each line does, this will be too much

5:43

yapping. So, I'll just explain what I'm

5:45

doing since this is more on the math

5:48

learning side than the scripting side.

5:50

So, basically what we do is we get the

5:53

screen of the player dimensions. We also

5:56

get the mouse position over that screen.

5:59

Now we subscribed both axis on the full

6:01

screen to the mouse position to know how

6:04

much pixels from the right the mouse

6:06

hasn't traveled. If let's say my mouse

6:09

was on the full left of the screen, the

6:11

x dimension left over would be the full

6:14

screen size x. We need those variables

6:17

because afterwards we differentiate the

6:20

half of the screen to the leftover. So

6:24

now we know how much our mouse has

6:26

traveled from the original screen which

6:28

is the center.

6:38

[music] We then use we then using clamp

6:41

translate the amount of pixels into

6:43

studs that the campart will need to

6:45

[music] move. Cuz if we don't do this

6:47

the camp part will literally move more

6:48

than 1k studs which is too much.

7:07

[music]

7:16

So then we essentially check if our

7:20

mouse has been moved or

7:32

If it did, we modify the position that

7:34

the camera [music] part needs to move to

7:36

using lurp effect.

7:49

If it didn't move, the target position

7:51

will remain the same and the camper will

7:54

keep moving to its goal.

8:03

We then apply to the target. We then

8:05

apply the target position to the campart

8:08

again using lurp. [music]

8:31

And now all we need to do is to do the

8:34

same for the UI because remember the

8:36

compartment holds the camera but not the

8:39

UI.

8:59

The main difference in this is that I

9:02

offset the UI [music] from the crown

9:04

part and I added an [music] angle.

9:20

[music]

9:27

We also move the primary part [music] of

9:28

the UI which is the root.

10:04

When you try it, It should work

10:05

flawlessly.

10:11

Now, some of you guys might ask on how

10:13

to make the button works as well. Well,

10:16

here's a simple script on how you can

10:18

achieve that. The rest is for you to

10:20

figure out.

10:30

down.

10:34

Down.

10:41

[music]

10:49

[music]

UNLOCK MORE

Sign up free to access premium features

INTERACTIVE VIEWER

Watch the video with synced subtitles, adjustable overlay, and full playback control.

SIGN UP FREE TO UNLOCK

AI SUMMARY

Get an instant AI-generated summary of the video content, key points, and takeaways.

SIGN UP FREE TO UNLOCK

TRANSLATE

Translate the transcript to 100+ languages with one click. Download in any format.

SIGN UP FREE TO UNLOCK

MIND MAP

Visualize the transcript as an interactive mind map. Understand structure at a glance.

SIGN UP FREE TO UNLOCK

CHAT WITH TRANSCRIPT

Ask questions about the video content. Get answers powered by AI directly from the transcript.

SIGN UP FREE TO UNLOCK

GET MORE FROM YOUR TRANSCRIPTS

Sign up for free and unlock interactive viewer, AI summaries, translations, mind maps, and more. No credit card required.