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

How do you figure out the speed of a Car?

Asked by 3 years ago
Edited 3 years ago

is is possible to find out to fast a car is or like the speed of the car in MPH. and print the MPH of the car is it Possible to Find the speed of the car?

0
calculate the distance that it has moved in a set amount of time (about 1 sec usually) and then calculate it's magnitude. WideSteal321 773 — 3y
0
Can you please provide an example please!. :) Retallack445 75 — 3y
0
It seems very hard to code in Mathematics SUPERMEGADANTHEMAN 33 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

It is not possible to find out MPH directly from the moving car as roblox's measurement system does not use inches, miles, etc. But you can find out the speed in roblox's units (im pretty sure its studs per second).

Put script inside of VehicleSeat:

while true do
    local seat = script.Parent
    local speed = seat.Velocity.magnitude
    print(speed)
    wait()
end
0
Thanks Retallack445 75 — 3y
0
np blocky010101 23 — 3y
Ad

Answer this question