Animations aren't playing even though no other animations are playing and it has the same owner as the game!

  1. What do you want to achieve? Keep it simple and clear!

I want these animations to play in studio so I can test the game without publishing the new update and see it right away

  1. What is the issue? Include screenshots / videos if possible!

The animations play in the game but not in roblox studio

Animations in-game:
image

Animations in roblox studio:
image

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried copying the ids multiple times.

Most dev forums told me that they need to have the same owner but it already does
image
image

code from tutorial:

local function animateMob(object)
	local humanoid = object:WaitForChild("Humanoid")
	local animationsFolder = object:WaitForChild("Animations")
	
	if humanoid and animationsFolder then
		local walkAnimation = animationsFolder:WaitForChild("Walk")
		if walkAnimation then
			local animator = humanoid:FindFirstChild("Animator") or Instance.new("Animator", humanoid)
			local walkTrack = animator:LoadAnimation(walkAnimation)
			wait()
			walkTrack:Play()
		end
	else
		warn("ong what happened to the mob")
	end
end

workspace.Mobs.Enemies.ChildAdded:Connect(animateMob)

Nvm the problem was that I put the load animation in the starter player which only happens when I join the game as a player and I’m just pressing run

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