In my fps game I have a simple recoil script but I would like to to also randomly move the camera side to side, my problem is that it wont accept numbers under 1 any help?
Have you tried using math.rad() for numbers that aren’t 0 in CFrame.Angles()? You’d likely have to increase 0.01 to something else. Though. Take this for example:
You want a 0.1° recoil? Quite unusual. Not sure if it’ll work, however, as I haven’t gone below 2°. There is nothing in documentation that i can find that says you can’t go under 1° tho…
Using math.random() with no arguments returns a random number between 0 and 1 with lots of precision. Therefore, if you want to have randomization go smaller, you can do something like this: math.random()*.2-.1
This number picks a random number between 0 and 0.2 with higher precision, and subtracks 0.1 so the number is between -0.1 and 0.1.
FYI: math.random(a,b) is supposed to use arguments a and b as integers, not a number.