repeat wait () until game.Players.LocalPlayer.Character
local Player = game.Players.LocalPlayer local Character = Player.Character
local PlayedAnim = false script.Parent.Equipped:Connect(function() script.Parent.Activated:Connect(function() PlayedAnim = true local Anim = Instance.new('Animation') Anim.AnimationId = 'rbxassetid://5088481339' local PlayAnim = Character:FindFirstChild('Humanoid'):LoadAnimation(Anim) PlayAnim:Play() end) end)

2 comments
pls edit your question by selecting the code and clicking in the Lua icon, and give a propper explanation
You have to set PlayedAnim back to false after the animation plays (you should wait a couple seconds though).