I am trying to play a sit animation, however it does not work properly it looks fine on the rig, but in testing it doesn’t work
(it’s not an issue with the script that plays it) Edit: it was indeed an issue with the script
Dumbed down version of the script:
script.Parent.RemoteFunction.OnServerInvoke = function()
local Anim = workspace.goldenSlendermen1.Humanoid.Animator:LoadAnimation(workspace.Sit)
Anim:Play()
wait(0.97)
Anim:Stop(99999999999)
wait(3)
Anim:Play(0, nil, 9999999)
end
AnimationPriority is a way of ranking animations. Core being general roblox animations (Run,Walk,Swim etc). Idle being higher than that, Movement being higher than idle, then Action, Action 2, 3 and finally 4 being the highest.
Basically its used to override animations so Action 4 will override all below and so on.
script.Parent.RemoteFunction.OnServerInvoke = function()
local Anim = workspace.goldenSlendermen1.Humanoid.Animator:LoadAnimation(workspace.Sit)
Anim.Priority = Enum.AnimationPriority.Idle
Anim:Play(0,1,1)
wait(0.97)
Anim:Stop(99999999999)
wait(3)
Anim:Play(0, 1, 9999999) -- It could be due to weight being nil as well.
end