NPC idle animation not working in-game

Im having trouble getting this NPC play its idle animation in-game, it works fine in play mode but for some reason when i go in-game the animation doesn’t play.
https://gyazo.com/aad53d2c73d8994b74ace63d46bec735
Here’s the script

local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local idle = humanoid:LoadAnimation(animation)
idle:Play()

Can you provide an .rbxl file possibly?

1 Like

Scythe Bot.rbxl (115.9 KB)

1 Like

Does the account that owns the game also own the asset of the animation?
Note: To play animations in a place owned by a group, the animation should be owned by the group as well.

1 Like

Full stop at this point, unless I’m misunderstanding the use of “as well”. Custom animations can only be played if owned by the group. A group owner can’t play their personal animations in group games and vice versa (group animations can’t be used by an owner).

Has to do with asset security.

Not trying to nitpick you here, but this small note makes a pretty major difference when it comes to animation assets.

1 Like

My apologies, I meant “as well” meaning “keep this in mind as well”. I’ll be more clear next time :+1: