local M=panel.Pages.MainButtonsFrame.ButtonsScroller.SelectPlayerFrame local b=M.PlayersScroller local Q=M.SelectedPlayerFrame Q.Visible=false function updatePlayers()for M,b in pairs(b:GetChildren())do if b:IsA("\084\101\120\116\066\117\116\116\111\110")then b:Destroy()end end for M,a in pairs(game.Players:GetPlayers())do local V=script.PlayerButton:Clone()local F=a.Name V.PlayerName.Text=F local L=game.Players:GetUserThumbnailAsync(a.UserId,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size100x100)V.PlayerImage.Image=L V.MouseButton1Click:Connect(function()Q.PlayerName.Text=F Q.DisplayName.Text="\064"..a.DisplayName Q.UserId.Text=a.UserId Q.InGame.Text="\067\117\114\114\101\110\116\108\121 \105\110 \115\101\114\118\101\114 \240\159\159\162"Q.PlayerImage.Image=L Q.Visible=true end)V.Parent=b end end updatePlayers()game.Players.PlayerAdded:Connect(updatePlayers)game.Players.PlayerRemoving:Connect(updatePlayers)

local selectPlrFrame = panel.Pages.MainButtonsFrame.ButtonsScroller.SelectPlayerFrame
local scroller = selectPlrFrame.PlayersScroller
local selectedFrame = selectPlrFrame.SelectedPlayerFrame
selectedFrame.Visible = false

function updatePlayers()
	for i, child in pairs(scroller:GetChildren()) do
		if child:IsA("TextButton") then
			child:Destroy()
		end
	end
	
	for i, plr in pairs(game.Players:GetPlayers()) do
		
		local btn = script.PlayerButton:Clone()
		
		local name = plr.Name
		btn.PlayerName.Text = name
		
		local image = game.Players:GetUserThumbnailAsync(plr.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100)
		btn.PlayerImage.Image = image
		
		btn.MouseButton1Click:Connect(function()
			
			selectedFrame.PlayerName.Text = name
			selectedFrame.DisplayName.Text = "@" .. plr.DisplayName
			selectedFrame.UserId.Text = plr.UserId
			selectedFrame.InGame.Text = "Currently in server 🟢"
			selectedFrame.PlayerImage.Image = image
			
			selectedFrame.Visible = true
		end)
		
		btn.Parent = scroller
	end
end
updatePlayers()
game.Players.PlayerAdded:Connect(updatePlayers)
game.Players.PlayerRemoving:Connect(updatePlayers)

