I am struggling with optimization and I want to know what is better for a ViewModel.
First option: when the player shoots a shooting animation is activated.
*result: Works
Optimization:(your opinion)
**quality:**regulate the quality is regular because as it is a view model has to have active animations like: Idle and if in the animation moves the bolt (instacia that moves as a mechanism of the gun, Ak-47 any weapon, moves so that the bullet comes out)
the idle animation is still therefore the animations are contradicted and at the time of shooting the animation is not well executed…
second option (I think it is the best)
the other option is to do it without animation. modify the 6D engines with a local script. result:It works
optimization: good(tell me which is the best)
quality: a little more than regular (for now) it is not good (for now) because it moves back the arms, the bolt moves perfectly, returns, but it returns quickly and I want it to return smoothly, right now I am doing it like this:
function fire()
motor6D1.C1 = --Changes CFrame (bolt)
motor6D2.C1 = --Changes CFrame (arms)
task.wait(0.05)
motor6D1.C1 = --Here you don't have to do anything because I do want the bolt to return quickly (it's ready)
motor6D2.C1 = --how do i get him to calm down(gentle)
end
i want you to tell me how to do it. questions: animations how do i get it to come back smoothly?
animations how do I do so that the animations do not get in the way? scripting I want you to tell me how I do it please be a little specific I do not want scripts I want help… I want you to tell me what is the best and most optimized way and the solution that you give me (animation or programming) I want you to tell me what I should do to make it better.