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: