Animation different on player model

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
2 Likes

Have to put these in a reply since it doesn’t let me put them in the og post


1 Like

Its probably due to script. Please give us the script so we know what you’re doing.

1 Like
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
1 Like
script.Parent.RemoteFunction.OnServerInvoke = function()
	local Anim = workspace.goldenSlendermen1.Humanoid.Animator:LoadAnimation(workspace.Sit)
	Anim.Priority = Enum.AnimationPriority.Idle
	Anim:Play()
	wait(0.97)
	Anim:Stop(99999999999)
	wait(3)
	Anim:Play(0, nil, 9999999)
end

May I ask why you use ridiculous numbers like 999999999 and 0.97?

1 Like

I have it wait that way it stays in the sit position
And 999999999 is used to make sure the animation doesn’t fade out instantly

Also what does Animation Priority do?

1 Like

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
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.