Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I create a rotating 3D gui object?

Asked by 5 years ago
Edited 5 years ago

This is one of those questions that I don't see asked a lot but I think makes the game a lot better for the end players and users. If we look at ER:LC, when we want to spawn a car we have a rotating view of the car. Or, when we are equipping that gun to murder someone, we get a 3D view. Im wondering how developers are able to do this.

2 answers

Log in to vote
1
Answered by
royaltoe 5144 Moderation Voter Community Moderator
5 years ago

They do that with viewport frames. https://developer.roblox.com/articles/viewportframe-gui

They're not as intimidating as they look. It's kinda like another in game camera that shows all the models inside the gui's viewport frames. People spin them by changing the model inside the viewport frame's cframe or changing the camera angle. Article on camera manipulation - https://developer.roblox.com/en-us/articles/Camera-manipulation

0
Thanks I started looking around and found viewport frames we answered at the same time ;) Skippy_Development 59 — 5y
0
That's okay. Glad you took the time out of your day to answer the question and look it up. It's always good to learn royaltoe 5144 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

I think I found a way to do this using viewport frames, found here https://developer.roblox.com/en-us/articles/viewportframe-gui

Answer this question