I want this script so when you click with the tool it will spray out fire and then the player(s) that touch it will take damage? Here is the script
Player = game.Players.LocalPlayer
Firegun = script.Parent
Fire = 20
mouse = Player:GetMouse()
Canisters = 10
function Shoot()
if Fire > 0 then
print("You have" .. Fire .. "fire and" .. Canisters .. "Canisters")
Fire = Instance.new("Fire", Firegun)
Fire.Heat = 15
Fire.Size = 15
Fire.Color = Color3.new(255,85)
Fire.SecondaryColor = Color3.new(255,150,30)
end
end
if Canisters < 1 then
Fire.Enabled = false
Canisters = 1
wait(0.3)
Canisters = 2
wait(0.3)
Canisters = 3
wait(0.3)
Canisters = 4
wait(0.3)
Canisters = 5
wait(0.3)
Canisters = 6
wait(0.3)
Canisters = 7
wait(0.3)
Canisters = 8
wait(0.3)
Canisters = 9
wait(0.3)
Canisters = 10
Fire.Enabled = true
end
Firegun.Activated:connect(Shoot)
Ouput says Disconnected event because of exception and Players.Player1.Backpack.Firegun.SprayScript:7: attempt to compare number with userdata.Help!

1 comment
Excuse me, whoever just down voted me, you know straight were you can go. There was an issue with variables that happened to me once, he does have an overlapping variable which can be the issue. Also if I had 5 I'd downvote you. Jerk.