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 4 years ago
Edited 4 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 — 4y
0
Can you please provide an example please!. :) Retallack445 75 — 4y
0
It seems very hard to code in Mathematics SUPERMEGADANTHEMAN 33 — 4y

1 answer

Log in to vote
0
Answered by 4 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 — 4y
0
np blocky010101 23 — 4y
Ad

Answer this question