How to make Arrow face same direction as player? [Solved By Comments]
Asked by
6 years ago Edited 6 years ago
This is a question about Guis....
I'm really having a hard time on this.... and i cant seem to find a way to do it.
So let me explain...
I have a minimap,
Minimap haves an arrow.
I need to make the arrow face the player Front Direction
This code works... Which makes the Arrow spin.
(This script is inside the Arrow Frame)
2 | script.Parent.Rotation = script.Parent.Rotation - 1 |
But This one "Which i need" Doesn't
1 | p = game.Players.LocalPlayer |
3 | script.Parent.Rotation = p.Character.Torso.Orientation |
Is there a specific value that Parts return that shows their Rotation?
I need the arrow to face The Front of torso So whenever the player looks somewhere The arrow on the minimap also changes.
Remembering That We're talking here about converting 3D Part Rotations into 2D Image Rotation (Minimap basics)
(i don't know how to send images there)
A good idea of the minimap is Gta:San Andreas Minimap.