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

How do I change the players walkspeed and animation at under 20 health?

Asked by 5 years ago

I'm really REALLY new to scripting, I honestly don't know much and I only know very very few things. I need help with this because I don't know how to do it myself. Thanks, hakerethan.

0
why was this upvoted bhqpping 80 — 5y
0
idk lol hakerethan 10 — 5y

1 answer

Log in to vote
0
Answered by
zomspi 541 Moderation Voter
5 years ago

I think this should work

local Health = game.Players.LocalPlayer.Character.Humanoid.Health
Health.Changed:Connect(function()
if Health <= 20 then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = -- The walkspeed number

As for the animation I do not know, should be around the same gist of this though

0
Unfortunately, it does not work. But I can see what you are trying to do, and I think I am good on my own now. Sorry for taking so long. hakerethan 10 — 5y
Ad

Answer this question