Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I fix this VehicleSeat BodyForce script?

Asked by 4 years ago

What I'm trying to do is that if the player decides to move foward (throttle) then the seat will move with BodyVelocity. However it stays in place. It is not anchored.

while true do
    if script.Parent.VehicleSeat.Throttle == 1 then

        script.Parent.BodyForce.Force = Vector3.new(10,0,0)

        else if script.Parent.VehicleSeat.Throttle == 0 then

        script.Parent.BodyForce.Force = Vector3.new(0,0,0)
        end
        end
        end



Answer this question