I’m fairly new to programming in Lua and I wanted some help for this idea. Basically, the character points his gun towards the cursor and whenever I shoot (It starts a raycast through a remote event) I want it to raise the character’s arm a bit. I don’t want a direct answer, just please try giving me some framework to work with for this idea. Thank you in advance!
Off the top of my head, without giving a direct answer:
To make the character’s arm point to the cursor you would need to get the players mouse, their arm, position of that arm and the position of the mouse to then calculate a direction to be used for the arm to move. You can use tweenservice or lerp() to make it more smooth.
hopefully that helps!