This script's goal is to make the player slow down when his health is down.
?player = game.Workspace.Player1.Humanoid
function painspeed()
if player.Health <= 15 then
player.WalkSpeed = 11
else player.Walkspeed = 20
end
end
painspeed()
Why doesn't this work? Please help.?

3 comments
THANKS
np.
Where do I put this local script?