You can now convert SPS to MPH!

Yesterday I created an SPS to MPH speed unit calculator. How was I able to calculate SPS by
MPH? Somebody told me this SPStoMPH

https://sps-to-mph-robloxconvert.netlify.app/

This script is useful for making games that involve Transportation,

3 Likes

is this studs per second?
if so, then the code isn’t right

image
it is actually supposed to be over 3!

function SPSToMPH1(Studs)
   return Studs * 0.62620743779080167979
end

function SPSToMPH2(Studs)
   return Studs / 1609.344 / 3.571 * 60^2
end

print(SPSToMPH1(5)) -- 3.1317102
print(SPSToMPH2(5)) -- 3.1320866592753

--[[
none of them are equal to 1.824817518248175
also these should be accurate
]]

source:

EDIT:
shortened the SPSToMPH1 function

5 Likes

Wow, this is impressive. Great for racing games :+1:

1 Like

How do you know to calculate SPS to MPH?

According to a post:

This website is not correct.

1 Like

if you look at the source link I gave and the source link @Ty_Scripts gave

then your question should be answered

1 Like

~4 stud = 1 meter,that’s a fact,I imported 1*1 meter cube into roblox and it fits perfectly,You can then calculate from there