I'm making a barrel that can explode, but it doesn't want to work no matter what I do. To make things more clear I'm using a normal script, Humanoid, Torso, Head
This is the script, nothing functions... :
Heater = script.Parent.Torso
Neon = script.Parent.Head
Humanoid = script.Parent.Humanoid
Fire = Heater.Fire
Smoke = Heater.Smoke
if Humanoid.Health <= 75 then
Neon.BrickColor = BrickColor.new("Bright yellow")
end
if Humanoid.Health <= 50 then
Neon.BrickColor = BrickColor.new("Orange")
Fire.Enabled = true
end
if Humanoid.Health <= 25 then
Neon.BrickColor = BrickColor.new("Crimson")
end
if Humanoid.Health == 0 then
Exp = Instance.new("Explosion")
Exp.BlastPressure = 100000
Exp.BlastRadius = 7.5
Exp.Parent = game.Workspace
Exp.Position = Heater.Position
Heater:Destroy()
Neon:Destroy()
end
Hope you can find the error and help me fix it, please !

1 comment
What's with the (I hate that title requirement...) ? Well, I wanted to give it the same title as it is right now, but it didn't work so i just wrote it there...