How can I fix this script to play animations

local changeAni = game.ReplicatedStorage.ChangeAnimation
local ani = workspace.Model1:WaitForChild(“Rig”).Animation
local humanoid = workspace.Model1:WaitForChild(“Rig”).Humanoid

changeAni.OnServerEvent:Connect(function(plr,ContentText)
ani.AnimationId = “rbxassetid://”…ContentText
wait(1)
local emote = humanoid:LoadAnimation(ani)
emote:Play()
end)
I want the animation to play once someone changes the animation ID. The Event sends the ID to be played but I get this error:Failed to load animation - sanitized ID: rbxassetid://510235063

I believe Sanitized ID error is caused because you’re trying to import an animation that either doesn’t exist or is not in your inventory. You must publish an animation as your own inorder to use it for any project, if I’m wrong please let me know!

Oh I didn’t know it had to be mine I was trying to use ones from marketplace the Rthro Idle.

You can use some from the toolbox or marketplace, but you would just have to remember to publish it as your own. To publish something, right click the animation you’d like to publish and find ‘Publish To Roblox’

Thank you it worked :slight_smile: sucks that I have to make the animations tho lol.

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