So basically i was making a gun, that if you click on the player, it shoots at them. So I made it like that but it keeps saying "
01:11:08.957 - This Mouse is no longer active
01:11:08.957 - Stack Begin
01:11:08.958 - Script 'Workspace.M4A1.Script', Line 6
01:11:08.958 - Stack End "
local MaxA = 30
local A = MaxA
local Reload = false
script.Parent.Equipped:Connect(function(mouse)
script.Parent.Activated:Connect(function()
if game.Players:FindFirstChild(mouse.Target.Parent.Name) then
if A > 0 and not Reload then
A = A-1
elseif Reload == false then
Reload = true
wait(2)
A = MaxA
Reload = false
end
end
end)
end)
someone please help
