AlignPosition isn't locking on

I want to make the part follow behind me, like a pet would in simulator games. But the align position seems like it knows where it needs to go, but the part doesn’t move.

External Media

This is the script that makes the part follow, a Local Script whose parent is the part.

RunService.RenderStepped:Connect(function()
	if (script.Parent:IsA("BasePart")) then
		local pet = script.Parent
		pet:FindFirstChild("AlignPosition").Position = (player.Character.HumanoidRootPart.CFrame * cframe.Value).Position		
	end	
end)

I can confirm that the script is running, since the Position value inside of the AlignPosition is changing as I move around.
I also figured out that the part is aligning to the origin (0,0,0) for about 10-20 seconds, then it begins to follow behind my character.

1 Like

Did you make the part massless? Try doing that.

1 Like

Making the part massless didn’t work, the same behavior occured.

1 Like

Have you tried incerasing the max force and max axes force? also the responsiveness. these all being properties of align position

1 Like

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