Basically, the trailer gets anchored BEFORE moving the legs, causing this (video^)
Here’s the part of the script that handles the moving and anchoring
local legs = trailer.Misc:FindFirstChild('LegPart', true)
if legs then
legs.Anchored = true
local lre = Instance.new('RemoteEvent')
lre.Name = 'TrailerLegsEvent'
lre.Parent = trailer
local lowered = true
lre.OnServerEvent:Connect(function(plr, bool)
if not bool then
legs.PrismaticConstraint.TargetPosition = 0
lowered = false
legs.Raise:Play()
task.wait()
print("legs are up")
legs.Anchored = false
warn("unanchored")
else
legs.PrismaticConstraint.TargetPosition = 1.6
lowered = true
legs.Lower:Play()
while lowered == true and legs.PrismaticConstraint.CurrentPosition > 0 do task.wait() end
if lowered == true then
print("legs are down")
legs.Anchored = true
warn("anchored")
end
end
end)
end