Animation not playing on player's humanoid

So… I can’t run custom animations for the player? D:

you did it but on the server now do it on the client and what do you mean no? try it and you will see that it does, then why does the Animate script play it? and mine from starterplayers script does? why?

I’ve done a bit of debugging

workspace.Part.ProximityPrompt.Triggered:Connect(function()
	local char = plr.Character or plr.CharacterAdded:Wait()
	local hum = char:WaitForChild("Humanoid")
	
	local animator = hum:WaitForChild("Animator")
	if animator:IsA("Animator") then
		local animation = workspace.Part.SeatedReading
		if animation:IsA("Animation") then
			local animationTrack = animator:LoadAnimation(animation)
			if animationTrack:IsA("AnimationTrack") then
				animationTrack.Priority = Enum.AnimationPriority.Action
				animationTrack.Looped = true
				animationTrack:Play()
				print("animating")
				print(animationTrack.IsPlaying)
				wait(0.2)
				print(animationTrack.TimePosition)
			end
		end
	end
end)

output:
image

I’ve even tried loading a new game, and trying this code:

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()

local hum = char:WaitForChild("Humanoid")

local animation = script:WaitForChild("Animation")

local animator = hum:WaitForChild("Animator")

local track = animator:LoadAnimation(animation)

track.Priority = Enum.AnimationPriority.Action
track.Looped = true
track:Play()
while wait() do
	print(track.TimePosition)
end

The animation is literally playing but it just doesn’t show D:

I’m so dumb!!!

My avatar is R6. And the animations were R15.

Man I should really stop scripting at 4 am

Thank you for helping me anyway! I learned a lot about animations doing all this research :sweat_smile:

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