I'm trying to make a vehicle that is destructible with Humanoid. I can't seem to get it to work.
I want the smoke to enable when the health is at 1000.
But every time I make the health lower to 1000 from 2000, it does nothing. Here's the code I've made that didn't work:
local health = script.Parent.Humanoid
local damage1 = script.Parent.DamageInd.Smoke
if health.Health == 1000 then
damage1.Enabled = true
wait()
end
However, if I start the Test with 1000, it'll work, but it won't work if i manually change it through properties or shoot at it, it doesn't.
the DamageInd is the brick that has the fire/smoke. This script was placed within the model of the vehicle. The Humanoid was placed in it too.
I basically need to find a way to tell the script to "look again."

5 comments
Because the script only works once, put it in a HealthChanged event
Can you edit the script? I've never used a HealthChanged event before. I mainly don't know where it goes.
do you think maybe the acceleration of the smoke it too small ?
Excuse me what
I would see the smoke just fine when it gets enabled before I press Play.