Animation o script?

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.

help me please, i need it fast please

This literally doesnt matter, this will not effect peformance at all.
Animation is better.
Manual cframing probally makes roblox think more, (think more = more lag), (do not pull a acs)

high chances you are looking at the wrong thing to optimize lol.

Not so sure but, im pretty sure lerp can help you out.

You will want to code it with animations so that later on you can hire people to make your animations look better. You need to make the animation have the highest priority so that it will cancel the other animations in the background (like the Roblox idle animation). AnimationPriority | Roblox Creator Documentation

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.