How do I understand Roblox math!?

Greetings all!

I have been trying to get my head around Roblox math for quite some time now but I don’t seem to be getting anywhere! I’ve tried a few YouTube videos with little to no success. For example if I wanted to make an object look at a certain direction I’d have no idea on where to start, or if I wanted to make something with movement, orientation, or just anything to do within the 3D space. I feel like this issue is keeping me from making projects that i have wanted to make for a while. Feel free to give me advice and thank you for reading.

There’s no such thing as “Roblox math”. Math is just math. It doesn’t really change.

If you’re still beginning, I recommend that you keep learning at your pace. If you rush yourself, you’re gonna regret it later on.

6 Likes

From the way you explain it, it doesn’t seem like math is the majority of the problem. I think you need to expand your understanding of ROBLOX properties itself. Like the properties of parts (positions, rotation,etc.) and then you need to learn how to manipulate those properties. Until you understand how 3D space works in ROBLOX, and how properties work on ROBLOX for different instances, you won’t get far just using math.

Simple Explanation: Programming is used to change things over time based on scenarios to accomplish tasks. If you don’t know what you’re actually changing, learning how to code ROBLOX games is going to be hard.

2 Likes

Not exactly sure what you mean by “Roblox Math” but there’s some heavily influential types of math these are the following and what they might be used for please keep in mind they might have more uses.

  • Geometry (Finding the scale of something or telling a location)
  • Addition and Subtraction (Finding delays and such)
  • Algebra (Finding position leading to X,Y,Z axis’s.

There isn’t much past basic math and even like more advanced math doesn’t require much effort you could always use a online math calculator like Math way or something like that.

2 Likes

I recommend 3Blue1Brown’s YouTube channel. “Roblox math” is a combination of different levels of mathematics and it takes some time to understand but once you get the hang of it, it’s straightforward.

Take a look at:

  • Geometry
  • Algebra & Linear Algebra
  • Calculus

Some specifics:

  • Matrix manipulation
  • Vectors, cross products, and dot products
  • Quaternions (if you really feel like it)
2 Likes

@incapaxx is solid on this one. There is no concept of “roblox math.” The math is the same, the notation is just different.

https://www.lua.org/manual/2.4/node9.html

3 Likes

Math is a roblox module of many.
Read the documentation which is easy to understand here.

And it’s quite a simple framework, it’s simply used to complete more complex math operations than those that require simple standard operations (e.g +,-,/,*)

Things you can accomplish with math:

  • Trigonometry
  • Generate random or infinite numbers
  • Pi and similiar digits
  • Radiants and powers
1 Like

To avoid misleading any new programmers here, there’s no such thing as random or infinite numbers in a computer.

The highest Roblox goes is math.huge, which is big - not infinite. If you try to make infinity you’ll bump into a few issues - namely that you’ll never get there and your number will become unusable.

“Random” numbers are generated using a series of algorithms that take a seed as an input. Given the same seed in a new session, you would generate the exact same sequence of random numbers. Just worth bearing in mind if you ever plan to fall back on these concepts in “Roblox math”.

3 Likes

Yesh sorry wrong word
Highest number would be something like 9999999 (basically infinite because you most probably wont achieve the objective of the number).

That’s not the highest number either. The highest number is math.huge. The number you specified can be used as well as numbers higher.