The idle animation should be the animation priority Idle.
It keeps saying this error : HurtAnimation is not a valid member of LocalScript “Workspace.furiousjumperFuNy.LocalScript”
Even tho my anim is in it and has the same name
Send me a picture of the name please.
Can you tell me how to post an image rlly quik?
Oh, go to your keyboard and hit the windows button, shift and s at the same time.
i’m on mac soo…
You can select any position of the image. Like this:
After that, just hit CTRL and v when your commenting on the dev forum.
As i said before i’m on mac …
did it work? if not idk what to do
We cant see it because its not an image link, it’s a route to the file in your computer.
oh ok so i rlly don’t know how to post an image as i’ve never posted one before
Oh ok now i see ,(i’ve already figured out how to solve my problem but i have another one) so here’s the script so far :
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild('Humanoid')
local animwait = game.ReplicatedStorage:WaitForChild("HurtAnimation")
local idlewait = game.ReplicatedStorage:WaitForChild("IdleAnimation")
Character.Running:Connect(function(speed)
if speed > 0 then
if Humanoid.Health <=25 then
local anim = Humanoid:LoadAnimation(animwait)
anim:Play()
elseif Humanoid.Health >25 then
animwait:Stop()
else
animwait:Stop()
local idle = Humanoid:LoadAnimation(idlewait)
idle:Play()
end
end
end)
My error is Running is not a valid member of Workspace.FuriousDev(WichIsMyCharacter’s Name)
Isn’t Running a property of Humanoid?
Try typing Humanoid.Running
Oh yeah i didn’t even notice that thx
Now i have another error that says Stop Is not a valid member of animation(HurtAnimation)
Try loading the animations outside the if part
Wait should i have the hurt walking animation looped?
I’m not sure, I guess you can try looping it, if it bugs then do not loop it.
I tried both : so for the looping one (it just loops when i release the walking key) and for the non-looped one (it plays one time then stops ) soo… yeah