I’m not very good with the math in roblox or in real life, so I was wondering if this is even possible.
All you have to do to cube root is this:
function cubeRoot(x) return (x ^ (1 / 3)) end
Then just simply call the function and you will have your result.
cubeRoot(40) = 3.4199518933534
number ^ (1/3)
This is how you do the cube root
print(64 ^ (1/3)) -- 4
The general formula is: n ^ (1 / x)
Where n is the number you want to manipulate, and x is the root you’re taking (fourth root = 4, fifth = 5, etc).
Thanks a lot for the help everyone