-- Create ScreenGui local gui = Instance.new("ScreenGui") gui.Name = "AdminRankGUI" gui.Parent = LocalPlayer:WaitForChild("PlayerGui")

-- 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

-- Function to give admin rank local function giveAdmin(targetPlayer) -- Attempt to give rank via common remote events local success = false

-- Method 2: Try command chat pcall(function() game:GetService("ReplicatedStorage"):FindFirstChild("DefaultChatSystemChatEvents"):FindFirstChild("SayMessageRequest"):FireServer("/giveadmin " .. targetPlayer.Name, "All") success = true end)