animation is playing on the server; priority is action but it turns out like this:
I do not want the default walking animation to override it.
THIS IS THE CODE:
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChild("Humanoid")
local phone = character:FindFirstChild("Phone")
if not phone then
warn(player.Name, "'s does not have a phone.")
return
end
if not humanoid then
warn(player.Name, "'s does not have a humanoid.")
return
end
local animator = humanoid:FindFirstChild("Animator")
local animation = phone:FindFirstChild("Equipped")
if not animation then
warn(player.Name, "'s phone does not have an animation.")
return
end
if not animator then
warn(player.Name, "'s does not have an animator.")
return
end
local animationTrack = animator:LoadAnimation(animation)
if outcome then
hideModel(phone, transparency)
animationTrack:Play(0.2)
else
hideModel(phone, transparency)
for animationCount, animation2 in pairs(animator:GetPlayingAnimationTracks()) do
if animation.Name == animation2.Name then
animation2:Stop(0.2)
break
end
end
end
hello! Same problem as me last time . U need to know how animation works . The arm will only lock there if they are given a position. Thus , add a node for the lower arms and hands in the animation editor
sometimes changing properties of animation tracks does not work very well in scripts. i have experience of changing track.Looped = false not working
what i recommend is importing the keyframe sequence from toolbox into workspace and then changing the priority in the properties window then saving it to roblox again.
I would also refer to @VerySillySausages’s post about how to play an animation track with desired properties if you are concerned about animation weight.