AlignPosition not working

My goal is to move partA to partB, and I’m trying to do it using AlignPosition. I have this script

local partA = game.Workspace.PartA
local attachmentA = Instance.new("Attachment", partA)
attachmentA.Position = Vector3.new(0, 0, -1)

local partB = game.Workspace.PartB
local attachmentB = Instance.new("Attachment", partB)
attachmentB.Position = Vector3.new(0, 0 , 1)

local alignPosition = Instance.new("AlignPosition", partA)
alignPosition.Attachment0 = attachmentA
alignPosition.Attachment1 = attachmentB

alignPosition.RigidityEnabled = false
alignPosition.MaxForce = 15
alignPosition.MaxVelocity = 15
alignPosition.Responsiveness = 15

When RigidityEnabled = true, partA moves to partB, no complications. However, I want to be able to adjust the speed so I made it false, but now partA just sits there, not moving at all. The output isn’t producing an error. I checked the properties once when testing it and all the numbers are there, as they should be, it’s just not moving. I was thinking that maybe I had to add something to the part or use AlignOrientation, but I don’t know. Any ideas?

1 Like

Have you tried maybe adjusting the values of things like maxforce and maxvelocity? also is that script a localscript or a server script?

Yeah, I made the values of MaxForce and MaxVelocity smaller than Responsiveness, and still, it doesn’t work, and it’s a server script.

Im pretty sure the solution is just to crank up MaxForce. I got your script to work fine in studio if maxforce was above 600. Though this made the movement a little more agressive.

1 Like

i have max force set to a high number and it still doesn’t work.