I have this script in a vehicle I made and it is in the vehicle seat and for whatever reason, it is not doing what I want. I want the vehicle to remain anchored until a player sits in it.
wait(0.1)
function unanchor (m)
for _,i in pairs (m:GetChildren()) do
if i:IsA("BasePart") then
i:MakeJoints()
i.Anchored = false
else
unanchor(i)
end
end
end
unanchor(script.Parent.Parent)

1 comment
Erm... You're telling the game to unanchor the car 0.1 seconds after the script starts... You want it to remain anchored until a player sits in it, right? That's the only problem I can find unless this is a disabled script you have somewhere in the vehicle, if so, then make sure you have the right location of the vehicle in workspace. Also make sure you turn off disabled