Animation Script Error in Roblox Studio

Hello, I make animation script, but there is an error, the program said “HTTP 403 (Forbidden)”, here is my script

local animationId = 8278867702

game.InsertService:LoadAsset(animationId).Parent = game.ReplicatedStorage

local controller = script.Parent.Humanoid

controller:LoadAnimation(script.Animation):Play()

Then there is an ERROR


May I know how to fix it?
Thanks for the answer, this is my first Topic :grin:

I would recommend creating an animation / storing one in the animation controller, to begin with

local Animation = Instance.new('Animation')
Animation.AnimationId = 'rbxassetid://8278867702'

script.Parent.Humanoid:LoadAnimation(Animation):Play()
1 Like

Oh ok, thank you for the information. I will try later. :grin:

403 forbidden means you do not have permission to request that item. Animations can only be inserted if you own them.

1 Like

Thank you! It worked now :grin:
So, I must make my own animation.

1 Like