local DamegeBall = Instance.new("Tool")
local Player = game.Players.LocalPlayer
local Fire = Instance.new("Fire")
DamegeBall.Parent = game.Players.LocalPlayer.Backpack
Fire.Parent = game.Players.LocalPlayer.Backpack.DamegeBall
Fire.Color = 21
Fire.SecondaryColor = 1004
function onTouch(Brick)
if(Player ~= nil)then
Player.Health = Player.Health - 30
end
end
DamegeBall.Touched:connect(onTouch)
I have no Idea why it won't work. This is the first time I'm making a tool I've only made a giver before.
this script's purpose is too make a Tool which has a fire instance in it and it Damages any player it touches by 30
I've set it so the Tool's location becomes starter backpack but it won't work.

3 comments
what is it supposed to do?
and is this a localscript or a normal script. And what does the output say?
Try replacing line 10 with Player.Character.Humanoid.Health = Player.Character.Humanoid.Health - 30