I have this "gun" that lowers in value every time player clicks. When the ms value equals zero however i get this error Players.Player.Backpack.Tool.Blanka Blanka!:12: attempt to perform arithmetic on global 'ms' (a boolean value)
01 | tool = script.Parent |
02 | plr = game.Players.LocalPlayer |
03 |
04 | mags = 5 |
05 | ms = 5 |
06 |
07 | tool.Equipped:connect( function (mse) |
08 | mouse = mse |
09 | mouse.Button 1 Down:connect( function () |
10 | if active then |
11 | print "Shot" |
12 | ms = ms - 1 |
13 | print (ms) |
14 | if ms = = 0 then |
15 | ms = 5 and mags = = mags - 1 |