Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

the title system its bugged, oh and I need help with this script:?

Asked by 5 years ago

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
0
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 speedyfox66 237 — 5y

Answer this question