-- Function to refresh player list local function refreshList() -- Clear existing buttons for _, child in pairs(listFrame:GetChildren()) do if child:IsA("TextButton") then child:Destroy() end end
-- Close button local closeBtn = Instance.new("TextButton") closeBtn.Size = UDim2.new(0.45, 0, 0, 30) closeBtn.Position = UDim2.new(0.52, 0, 1, -40) closeBtn.Text = "Close" closeBtn.BackgroundColor3 = Color3.fromRGB(150, 0, 0) closeBtn.TextColor3 = Color3.fromRGB(255, 255, 255) closeBtn.Font = Enum.Font.Gotham closeBtn.TextSize = 14 closeBtn.Parent = frame - OP - Admin Rank Giver Script
if not success then warn("Could not give admin rank automatically. Game may not support it.") end end -- Function to refresh player list local function