I am completely stuck. The Y part of my vector3 just wont work.
The first print statement prints: 3
The second print statement prints: 100, 0, 100
As you can see, the y position of the vector 3 is 0. even though the y argument i supplied is the exact same as the one i supplied to the first print statement.
The first print statement prints: 3
the second print statement prints: 100, 0, 100
It feels like i have tried everything. there are no nil variables of any kind and all arguments are supplied correctly. i dont see a reason as to why this shouldnt work normally
I am changing the position on the server. The position it moves to also visually moves to the wrong position so i can see ingame that it is actually going to the wrong place.
I have partly found the solution. As it turns out, Ratio was an infinitemath number (Infinitemath is a module for numbers bigger than 1e308.) When i printed ratio, it printed 1. Not a table, which is a flaw of infinitemath numbers as it made me to believe it was a normal number. Now i just have to figure out how to convert it into a normal number
You should look into type-checking to prevent these kinds of subtle bugs in the future.
The issue here was that the Vector3 constructor was implicitly coercing your BigNum table into a random number without you knowing, but with type-checking, the editor would’ve warned you ahead-of-time about passing a table in when a number was expected.