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

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

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

5 comments

0

You want to set a part's orientation to the position of the mouse? Lol

0

Cframes, and only on ONE rotation axis

0

Too bad, the part is in a 3-Dimensional space, whereas your mouse 2D.

0

no help, u can do it tho, its possible

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

1 answer

Ok easy.

All you need is Mouse.Hit.p

2 comments

0

But thats for all axis, i just want 1 axis for ROTATION not position.

0

For that, you do CFrame.Angles()

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