How to make this local script not crash my game (how to actually make this work)

i want to make M1 holding for a combat system, and even though all checks done locally for attributes are also done on the server, its to stop even more remote firing

my questions are: 1. is there any way to fix this local script ; 2. is there any better way to code this?

(removed script)

added RunService.RenderStepped:Wait() for a cooldown

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