--Made By johndeer2233
player = game.Players.LocalPlayer
mouse = player:GetMouse()
tool = script.Parent
AnimationIdle = script.IdleGun
idleenabled = true

--All the Animations
script.Parent.Activated:connect(function()
		local AnimationTrackIdle = player.Character.Humanoid:LoadAnimation(script.IdleGun)
		AnimationTrackIdle:Play()
		print("It Worked!")
end)

it sais Animation failed to load : Workspace.Player1.Gun.LocalScript.IdleGun I know they have to be an action but this one is an idle. I think it is because it's not the asset id but I don't know where to find it

My layout is this

  • Gun"(Tool)" - LocalScript - IdleGun"(Animation)" - Handle

Help?

3 comments

0

Are you sure what you're loading is a proper Animation? Make sure you're not trying to load the Blue Square instance from the editor, but one that has been published to the website.

0

This could be due to you not uploading an animation you own. The animation must be in your inventory to work.

0

Oh thats why its the owners it is a team create but still how would I get this animation to load for other players?