How do I stop this unwanted rotation? [AlignOrientation]

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to prevent the rotation of the vehicle or at least have control over the local Z axis
  2. What is the issue? Include screenshots/videos if possible!
    3rd the local Z axis seems to uncontrollably rotate itself
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Manually setting the Z axis on the AlignOrientation
--on render step
local lv = CFrame.lookAt(cam.CFrame.Position,mouse.Hit.Position)
ori.PrimaryAxis = lv.LookVector*100

1 Like

Is it because your Mouse.Hit.Position doesn’t work when it has nothing to hit (the sky)?
I’m not much help with the subject, but I’ve seen other posts where people ask similar questions.
Try Searching ‘make a plane aim to the mouse position’ or ‘align player to mouse’ and you may find posts that help you out.

1 Like

try mode OneAttachement on the alightorientation with just an attachement center of part… then just set the AlightOrientation.CFrame =

It is in one attachment. CFrame didn’t really do anything.

do you have anything else controlling rotation or position of the part?

(assumingly) other than physics, no

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.