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

A compass that points toward a part?

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.

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.

4 comments

0

I just started scripting like a month ago, I know a good bunch of lua but not everything

0

And I don't even know where to start:^(

0

Plz help me

0

i wouldnt jump to this if you are new try to start off with easier parts of your game and work up to this

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