if script.Parent.Minor.Health <= 900 then script.Parent.Minor.WalkSpeed = 39 end
i used this script someone on this website gave me and IT DOESN'T WORK i need help (the humanoid in the npc is named Minor btw)
(Put script inside npc) Assuming your npc has an humanoid inside, you could just do
local hum = script.Parent:WaitForChild("Humanoid") hum.HealthChanged:Connect(function() if hum.Health <= 900 then hum.WalkSpeed = 39 end end)
~~~~~~~~~~~~~~~~~
``~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GetChildren ("Mob") if Health >50 add speed = +5 if Health >30 add speed = +10 if Health >10 add speed = +20 end) end)~~~~~~~~~~~~~~~~~