How can I/we utilize Pi in Roblox Studio?

In the link above is an obby-style game where you jump platforms with numbers equivalent to all one million digits of Pi. How did the creator do this? And is there a certain math.Enum operation in Luau syntax that calls upon Pi? I would recommend checking out the game before this next part.

If you can’t access pi using Roblox Studio, my theory on how the creator made this game is he imported all one million digits of pi into a script and assigned each number 0-9 a part in the form of a number platform, and then scripted a program for generating it into the workspace.

I found this on the Roblox Wiki but it doesn’t provide an answer.

Thoughts and answers?

I think the million digits were imported like you said, then converted into a part with a given position. For example, if its the 350th digit, you’d have StartPosition (the 3 in 3.14), then add 350 * 5(distance between each number).

I bet the entire game is pre-generated. Like running the pseudocode above in the command bar with the million digits and then they just enabled StreamingEnabled to reduce lag. Even if theirs wasn’t scripted like that, that’s what I’d do.

2 Likes