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)
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)
You are correct
``~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GetChildren ("Mob")
if Health >50
add speed = +5
if Health >30
add speed = +10
if Health >10
add speed = +20
end)
end)~~~~~~~~~~~~~~~~~
uhh you should put your code in the code block (the ~~) so it's easier to read i'm having a stroke
anyway your script doesn't work and it's hard to read by the way you wrote it
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
What's the full code, what type of script is it, and what is it under?
thats the full code