Something on the lines like this
elseif action == "Shoot" and toolName == "Pistol" then
Loader.playSound(165946426, Humanoid)
Loader.loadAnim(toolName, "PistolFire", Animator):Play()
wait(Loader.loadAnim(toolName, "PistolFire", Animator).Length-0.15)
Loader.gunMuzzle(Character:WaitForChild(toolName).Flash)
Loader.gunFlash(Character:WaitForChild("Head"), Color3.fromRGB(255, 255, 0), 3.76)
elseif action == "Shoot" and toolName == "Axe" then
Loader.playSound(6767836089, Humanoid)
Loader.loadAnim(toolName, "Attack1", Animator):Play()
elseif action == "Hit" and toolName == "Axe" then
Loader.playSound(8348697790, Humanoid)
elseif action == "Shoot" and toolName == "Flashlight" then
Loader.loadAnim(toolName, "Off", Animator):Play()
wait(Loader.loadAnim(toolName, "Off", Animator).Length- 0.2)
stop()
end
Does this affect anything? Does it cause lag or make gameplay terrible?