Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Rotating Gui Based on player rotation?

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.

1 comment

0

you literally gave yourself a "solution", test it. (UIs dont have cframe)

1 answer

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 :)

1 comment

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!

This discussion is preserved as it was. New answers, comments, and votes are closed.