Custom model's animations not loading outside roblox studio

Hello, I’ve been recently working on custom model and tried to load animations into it that I made using MoonAnimator2 (I’m kinda new to MoonAnimator2).

Anyway the issue is that the animations load to Humanoid in roblox studio while testing it but they don’t load in the actuall game for some reason.

I tried looking some solutions online but can’t seem to find any.

Here’s the ServerScript “Animate” I made and put inside the model

`local Character = script.Parent
local Humanoid = Character:WaitForChild(“Humanoid”)

local Idle = Humanoid:WaitForChild(“Idle”)
local attack = Humanoid:WaitForChild(“attack”)
local walk = Humanoid:WaitForChild(“walk”)

task.wait()

local IdleTrack = Humanoid:LoadAnimation(Idle)
local WalkTrack = Humanoid:LoadAnimation(walk)
local AttackTrack = Humanoid:LoadAnimation(attack)

Humanoid:LoadAnimation(Idle):Play()

Humanoid.Running:Connect(function(speed)
if speed > 0 then
if not WalkTrack.IsPlaying then
WalkTrack:Play()
end
else
if not IdleTrack.IsPlaying then
IdleTrack:Play()
end
end
end)

while true do

Humanoid:MoveTo(Vector3.new(math.random(1,1000),0,math.random(1,1000)))

task.wait(math.random(1,3))

end`

Screenshot from console in the game outside roblox studio:
error1

I have had a similar issue before and for me the problem was that the animations were owned by me but the game was owned by my group so it couldn’t access the animations. Maybe try changing the saved location of the animations?

Thanks! It worked just had to reupload animations as group creation since the game is group creation.

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