I’m trying to make a simple push tool. Upon click, create an unanchored wall in front of the character with a force in the direction of the mouse position. I have all this working at my place. The one problem is the wall does not keep its orientation while pushing. This can lead to the wall ‘tripping’ and gliding over short parts during its sweep. I have an AlignOrientation instance with an attachment in the part to combat this, but it has not changed anything. How do I do this correctly?
local alignOrientation = Instance.new("AlignOrientation", rocketClone)
alignOrientation.Mode = Enum.OrientationAlignmentMode.OneAttachment
alignOrientation.Attachment0 = attachment
alignOrientation.PrimaryAxisOnly = true
alignOrientation.CFrame = rocketClone.CFrame
alignOrientation.RigidityEnabled = false
alignOrientation.MaxTorque = 1e10
alignOrientation.MaxAngularVelocity = 1e10