Animation doesn't play on server, plays fine in studio

I have an animation that when I play in studio, works fine. But when I test online in a server, it doesn’t seem too load. Any ideas?

Script:
– Note, no errors reported in server console logs.

local humanoid = script.Parent:WaitForChild("D_Humanoid")

local main = script.Parent
local humanoid = main:WaitForChild("D_Humanoid")
local Animator = humanoid:WaitForChild("Animator")

local shockAnimation = Instance.new("Animation")
shockAnimation.AnimationId = "rbxassetid://13369134090"

local shockAnimationTrack = Animator:LoadAnimation(shockAnimation)
shockAnimationTrack.Priority = Enum.AnimationPriority.Action
shockAnimationTrack.Looped = true
shockAnimationTrack:Play()
1 Like

did you upload it to the game or your own inventory?

I apply this to a dummy Humanoid. I have saved the animation to ROBLOX myself. Is that what you mean?

Ah that might be the issue. You have to publish the animation to the game or group

Oh, it’s a group game. I published under me, do I need to publish under the group?

Yes you do need to publish under the group, because if you publish under yourself only you can access it.

That is quite annoying. Okay thank you. Is there a way to edit the published animation so that it can be owned under the group? Or do I have to republish the animation?

Yea just republish the animation under the group

1 Like

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