Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Rotating Gui Based on player rotation?

Asked by 2 days ago

Hiya! I have recently been working on a motion detector. The script that I'm using so far works really well! However, it doesn't update values based on the players rotation. What I wanted to do was make a separate script that would change the rotation of the gui based upon the players rotation. I haven't gotten to the scripting part yet, so I cannot include any. However, I do have some ideas for going about this process. I was thinking of getting the cframe/rotation of the humanoid root part and then dumping those values into the gui's cframe. Would this idea work? Do you have any tips for going about it? And if not, can you point me in the right direction?

Note:The gui is on a tool. The motion tracker is like the one from the Alien franchise.

0
you literally gave yourself a "solution", test it. (UIs dont have cframe) CaioAlpaca 348 — 2d

1 answer

Log in to vote
0
Answered by 2 days ago

Do you mean like, sort of a press e to open door, where the gui will turn based on the camera of the character? Easy.

So, first, create a door or whatever you need it to be. in workspace, create a folder called "Doors" or what ever described what you are doing best. Actually, i think it would just be best if you watch this vid:

https://www.youtube.com/watch?v=Zqa10ImXCRs

Hope this has helped :)

0
Thanks so much for answering! However, this isn't what I meant. I think it's mostly my fault because I probably didn't include enough details. A better way to think about it is like a compass. As you move around, the directions change. Again, thank you for responding! Boomboyag 2 — 1d
Ad

Answer this question