so im making a game where when a player goes under 50 hp their animations change to reflect it, but when it changes the animations the animations only apply to the character after they move, is there any way that i can update the animations without the player moving.
Use a custom animator like BetterAnimate, or make your own. Roblox’s built in animator is not good at all.
Could I get a video example of this and the accompanied script?
i don’t think a video is needed, when you stand still and go below 50 hp it changes the animations but it doesn’t visually change anything, the animations only start playing when you move (I think its something to do with roblox’s animation thing starting the animation then only changing it if the player stops standing still)
my code
local plr = game.Players.LocalPlayer
while true do
wait(0)
if plr.Character.Humanoid.Health <= plr.Character.Humanoid.MaxHealth / 2 then
plr.Character.Animate.idle.Animation1.AnimationId = "rbxassetid://117587303616136"
plr.Character.Animate.walk.WalkAnim.AnimationId = "rbxassetid://79233145735842"
else
plr.Character.Animate.idle.Animation1.AnimationId = "rbxassetid://125378170305037"
plr.Character.Animate.walk.WalkAnim.AnimationId = "rbxassetid://85074952084158"
end
end
I need to know if i can manually update the animations without the player having to move.
Don’t do this., there are better alternatives.
One idea that I can give you from the top of my head is manually creating and playing a looping animation. Depending on whether it’s an idle or walking animation, you can use the HumanoidState to play it accordingly.
I might try this, I’ll let you know if it works.
this works perfectly, thank you so much
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.