Wont run and i placed as a local script in starterpack and yes i did make and publish the animation. But it wont work when i join the game
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) local script = game.StarterPack.LocalScript if character:FindFirstChild("Humanoid") then local animation = Instance.new("Animation") animation.AnimationId = "http://www.roblox.com/Asset?ID=222080965" local animtrack = character.Humanoid:LoadAnimation(animation) animtrack:play() end end) end)
LocalScripts can use the PlayerAdded functions, therefore it cannot use the CharacterAdded event and it cannot reach the humanoid to load the animation and play it.