How would I make a gui compass that points toward a certain part? I've searched YouTube and the wiki and I can't find anything on how to make an active compass. Please give me hints on how to do this.
COMMUNITY QUESTION
A compass that points toward a part?
2 answers
You would need to find the radius at which the player is from the part and then calculate the rotation of the line from that. The position of the pointer gui should always be at the center of the line and make it so that the pointer gui is centered on its position using properties (I forget what the certain property is called). the position needs to be at the center because the line rotates on its center no matter what. Good luck this stuff is pretty advanced but hopefully you will be able to do it.
You would need to use CFrame http://wiki.roblox.com/index.php?title=CFrame, so the rotation of the GUI pointer points to the direction of the CFrame.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
I just started scripting like a month ago, I know a good bunch of lua but not everything
And I don't even know where to start:^(
Plz help me
i wouldnt jump to this if you are new try to start off with easier parts of your game and work up to this