The problem is when the zombie dies once the gun doesn't work anymore, this is what is said in output. Attempt to compare number and userdata 1st line of code which says is the problem in output
1 | if Zombie.Health> = 0 then |
2nd
1 | fire(mouse.Hit.p+rndm, 1 ) |
3rd
1 | mouse.Button 1 Down:connect( function () onButton 1 Down(mouse) end ) |
i don't know how to reoslve the problem but my suggestion is to replace if Zombie.Health>=0 then with Zombie.Died:Connect(function()
end)