Its a simple shooting meachanism i made if you have any idea how to optimalize it bettar then i can then please try your hand at it
The controlos are:
left click: shoot
W/S: walking
H: bullet lighting
B: bullet tracking
G: menu
Gun always aims towards mouse pointer