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 4 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 — 4y
0
idk lol hakerethan 10 — 4y

1 answer

Log in to vote
0
Answered by
zomspi 541 Moderation Voter
4 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 — 4y
Ad

Answer this question