Convert meters into studs and vice versa

This is not the most important tutorial ever, but I’m sure at least someone will find it handy

Hey! As I’m sure some of you have wondered or some of you already know :

1 meter = 1 * (25/7) studs 
=
1 meter = 3.5714285714286 studs

Using this math, and knowing 1 mile = ~1609 meters, we know that :

1 mile = 5746.4285714286 studs 

After we know all of this, we can use a function like this one to convert meters into studs

local function convertStuds(meters)
	local studs = meters * (25/7)
	return studs
end

To instantly convert meters to studs, you can also do this :

local studs = meters * (25 / 7)

Thanks for reading, I know this is very simple but I hope at least someone can be helped from this!

5 Likes

You should move this to: #resources:community-tutorials

Great tutorial otherwise.

1 Like

Cool tutorial but in Roblox 1 mile is just an arbitrary number

3 Likes

Useful if you’re working with real word map apis etc

1 Like

I’ll keep it in community resources as it isn’t a tutorial, but more of a resource

Where did you find that 25 / 7 number? Is there any official source confirming that this is the scale of Roblox studs?

Read it on various different posts here on the devforum.