-
What do you want to achieve?!
Using AlignOrientation, I’m trying to align a part to a given CFrame using OrientationMode OneAttachment. -
What is the issue?
The AlignOrientation displays some weird behavior, forcing me to have to disable it, change the CFrame, then enable it for changes to take effect. I’m not sure if this is desired behavior, but it sure doesn’t seem like it, especially since mode TwoAttachment doesn’t need to be enabled over and over for changes to take place, as shown in the gif from the official devhub page for AlignOrientation.
Here is a place’s setup to demonstrate the problem:
Localscript:
game:GetService("RunService").Heartbeat:Connect(function()
workspace.Part.AlignOrientation.CFrame = workspace.Goal.CFrame
end)
Workspace tree:
AlignOrientation properties:
Video of problem:
https://gyazo.com/06fc6e2e40e3b5e1a5320aa97f8250bc
As you can see, the active property (and subsequent movement) doesn’t even take effect until to AlignOrientation is disabled and enabled.
-
What solutions have you tried so far?
I did try the hacky disable and enable trick, but it shouldn’t be needed and I couldn’t find anything else on this topic on the forums.