Align position with rigidity enabled not being rigid

simple, align posiiton isnt teleporting to its position if its not aligned in the first place
then takes a while to get to its position

video:

External Media

the tracks are created on the client, these worked fine when the tank was already in workspace when it was loaded in, but when i spawn it with the spawner the tracks are not with it

its spawned with this code

local vehicle = self.vehicle:Clone()
vehicle.Body.Anchored = true
vehicle.Parent = workspace

task.wait(0.1) -- wait for everything to load in
vehicle:PivotTo(self.spawnPoint.CFrame)
vehicle.Body.Anchored = false
vehicle.Parent = VEHICLE_HOLDER

update video:

External Media

in this video, the attachments are in the right spot but the tracks still dont teleport to where they should be

update: fixed it by simply moving the tracks over

if tracksFolder:FindFirstChild("PivotPart") then
	local model = Instance.new("Model")
	for _, v in pairs(tracksFolder:GetChildren()) do
		v.Parent = model
	end
	
	model.PrimaryPart = model.PivotPart -- in the same position as the tank's primary part
	model:PivotTo(self.model:GetPivot())
	
	model.PivotPart:Destroy()
	for _, v in pairs(model:GetChildren()) do
		v.Parent = tracksFolder
	end
	model:Destroy()
end

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