I dont quite get what you want.
Make a second script, which catches whenever the tool gets equipped and unequipped.
If it is equipped, enable the main script.
if it is unequipped, disable the main script.
It should fix it I guess.
i already got a second script that does that:
script.Parent.Equipped:Connect(function()
script.Parent.A1.Enabled = true
end)
script.Parent.Activated:Connect(function()
script.Parent.A1.Enabled = true
end)
script.Parent.Unequipped:Connect(function()
script.Parent.A1.Enabled = false
end)
And what is wrong with the gun?
when i stop holding and i start holding again it doesn’t shoot, i gotta reequip the gun for it to be able to shoot again.
Check toolbox if the script is enabled or not.
If it is, check if you can reload.
Print out the statements at the shooting-while loop