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

Make a car that can only turn and it's throttle is controlled by a script?

Asked by 4 years ago

Hello!

How can I make a car that can only turn and it's throttle is changed by a script.

I know that you can change the throttle on the server although when I go back into client mode the client almost instantly takes control of the throttle again.

I was thinking that I could just set the throttle every 0.1 of a second, although then the server and the client would practically be fighting for control of the throttle.

while wait(0.1) do
    script.Parent.VehicleSeat.Throttle = 1
end

I have also tried just adding a body force to it, but then it won't work with the car.

Is there someway that I could disable the client from editing the throttle but still allow them to turn? - It seems on roblox that you can either control the throttle and the steer or you can't control either.

0
Isn't that loop just infinitely just change the throttle to one? If you want to make it go higher, you gotta actually add 1 onto the throttle. niroqeo 123 — 4y

Answer this question