Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you figure out the speed of a Car?

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?

3 comments

0

calculate the distance that it has moved in a set amount of time (about 1 sec usually) and then calculate it's magnitude.

0

Can you please provide an example please!. :)

0

It seems very hard to code in Mathematics

1 answer

✓ Accepted answer

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

2 comments

0

Thanks

0

np

This discussion is preserved as it was. New answers, comments, and votes are closed.