So I have this script, and its supposed to explode the part when it haves under 5 health, but nothing happens! Please halp D;
local highDmg = script.Parent.Parent.ParticlePart.HighDamage
local air = script.Parent.Parent.ParticlePart.Air
if script.Parent.Parent.Humanoid.Health <= 50 and script.Parent.Parent.Humanoid.Health <= 5 then
highDmg.Enabled = true
if script.Parent.Parent.Humanoid.Health <= 5 then
local explosion = Instance.new("Explosion")
explosion.Position = game.Workspace.Vent.Torso.Position
explosion.BlastPressure = 500000
explosion.BlastRadius = 10
end
end

1 comment
yo man just to make your life easier instead of putting script.parent.parent and so on, you can just make a variable like how you did with highDmg