Hello!
I made an ADS System, but the aim looks bad and very unaccurate.
I used animations and tween camera field of view
I am very bad at math, so used animations.
This is moreso an animation problem. The aim is slightly off from the middle, perhaps reanimating it to where it is supposed to be would be the solution. The
aim is actually very accurate, can you explain how you believe it isnt?
First of all, please don’t simply ask “how can I make this look better”, as that’s more of a design question. Please know exactly what you want to happen before asking in this category. We can only give a stab in the dark with vague questions with little info.
I can see a few things that make the aim look bad. First of all, the mouse cursor. Try hiding the cursor with UserInputService.MouseIconEnabled.
Secondly, make sure that the animation puts the aim at the exact center of the viewport. At the moment, it seems to be off slightly. This is the reason animations are not suitable if you want accurate aims.
If you want it to be truly in the center, forget animations and use tween service (info here) to tween the parts of the gun to the correct spot, which you can use properly.
Finally, there’s some code cleanup you should do. First of all, you declare two CFrames that are never used. You can take them out, unless you really need them later. Secondly, getting a service on a single line (like this game:GetService("RunService").RenderStepped) leads to messy code. Declare it as a separate variable above. Finally, you have an else statement that returns nothing for no reason. Remove the else statement, and the return along with it. A function returns on its own once you reach the end.