I’ve been wanting to make an fps game for a while, I’ve been making attempts but it all stops when it comes to the math in the scripts i’m writing, I was wondering how do you stumble upon this knowledge of the math functions?
Hey! I’m unsure of what you’re actually asking for but; if you are looking to learn about the actual math functions then you’d want to give a look to the written documentation by roblox.
If you’re trying to understand math logic in video games you can try and check out Red Blob Games
Math isn’t required, depending on the game you’re making. You will definitely encounter some math along the way, but here are what I believe are the most helpful ones (that I use at least):
Algebra
This is the most fundamental, so you should definitely learn this regardless.
Trigonometry
This is also fundamental, and you should also definitely learn this regardless. Great for projectile modelling, curves, etc.
Linear Algebra
Matrix multiplication, rotation matrices, transformations. Roblox does a lot of this for you, but it’s still helpful to derive code from a variety of formulas you find online.
Calculus
Not required, but it is mandatory when dealing with physics.
Discrete Mathematics
Not mandatory, but helps with code logic and state management. Discrete math can get very difficult, though.
Depending on your age, these may be too advanced for you. All of these topics are late high school or university-level courses.
Learning the way code works on the machine is important too, it took me like 2 years to finally understand remote memory leaks.
CFrames | Documentation - Roblox Creator Hub Understanding CFrames is a great start, dissect the components and learn how to multiply and add its segments.
Use the command bar all the time, it’s useful before and during testing a game.
EPIC!