local function playanimation(player) if playerloaded.hasloaded(player) then pcall(function() local animator = player.Character.Humanoid.Animator local animation for i, v in pairs(serverstorage.Celebrations:GetChildren()) do for index, anim in pairs(v:GetChildren()) do if anim.Name == player.leaderstats2.SelectedAnim.Value then animation = anim break end end end if animation then animator:LoadAnimation(animation):Play() end end) end end