Multiplying vector 3 doesn't work(roblox typescript)

So im experimenting with roblox typescript and im trying to multiply a vector 3 by 100. But when i do, I get The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. as an error. Does anyone know how to fix this?

This is my code:

print(new Vector3(100,10,10) * 100)

thanks in advance!

nvm I found a fix.

You can just multiply the X, Y, and Z by the number

print(new Vector3(100 * 100,10 * 100,10 * 100) )
1 Like

found an even BETTER solution. Roblox ts provides this type of stuff. Example:

new Vector3(0,10,0).add(new Vector3(0,3,0))

docs page: DataType Math | roblox-ts

4 Likes