-
What do you want to achieve? I want to make a railway simulator similar to for example SCR or Steamlined.
-
What is the issue? I am getting this error when trying to change the Velocity of a Body Velocity.

-
What solutions have you tried so far? I have tried to change the MaxForce aswell, but the same error appeared.
script.Parent.Touched:Connect(function(hit)
if hit.Parent.FrontWheel then
hit.Parent.FrontWheel.BodyVelocity.Velocity.Z = 0
end
end)
How can I set the BodyVelocity to 0 when a part of the train hits this part?