Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Place in StarterCharacterScripts
- local character = script.Parent
- local humanoid = character:FindFirstChild("Humanoid")
- local animation = game.ReplicatedStorage:FindFirstChild("LowHealthAnim")
- local loadedAnimation = humanoid:LoadAnimation(animation)
- while wait() do
- if humanoid.Health <= 40 then
- loadedAnimation:Play()
- else
- loadedAnimation:Stop()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment