Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i make it so a part looks at the mouse but on only on one axis?

Asked by 6 years ago

how do i make it so a part looks at the mouse but on only on one axis?

0
You want to set a part's orientation to the position of the mouse? Lol LuckiestJade -5 — 6y
0
Cframes, and only on ONE rotation axis brickmaster2039 2 — 6y
0
Too bad, the part is in a 3-Dimensional space, whereas your mouse 2D. LuckiestJade -5 — 6y
0
no help, u can do it tho, its possible brickmaster2039 2 — 6y
0
Think I know how to do this, but I need to get on my computer first to experiment. It might involve mouse.Hit, remote events, and CFrame. Don’t rely on me to answer though. :P User#20279 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Ok easy.

All you need is Mouse.Hit.p

0
But thats for all axis, i just want 1 axis for ROTATION not position. brickmaster2039 2 — 6y
0
For that, you do CFrame.Angles() LuckiestJade -5 — 6y
Ad

Answer this question