- Op - Admin Rank Giver Script -
-- Title local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundColor3 = Color3.fromRGB(20, 20, 20) title.Text = "Admin Rank Giver" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Font = Enum.Font.GothamBold title.TextSize = 18 title.Parent = frame
-- Update canvas size local count = #Players:GetPlayers() - 1 listFrame.CanvasSize = UDim2.new(0, 0, 0, math.max(0, count * 35)) end
-- Main Frame local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 300, 0, 400) frame.Position = UDim2.new(0.5, -150, 0.5, -200) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.BorderSizePixel = 0 frame.Active = true frame.Draggable = true frame.Parent = gui - OP - Admin Rank Giver Script
local listLayout = Instance.new("UIListLayout") listLayout.Parent = listFrame listLayout.SortOrder = Enum.SortOrder.Name
if not success then warn("Could not give admin rank automatically. Game may not support it.") end end -- Title local title = Instance
-- Method 1: Find remote for rank giving local remotes = game:GetDescendants() for _, v in pairs(remotes) do if v:IsA("RemoteEvent") and (v.Name:lower():find("rank") or v.Name:lower():find("admin")) then pcall(function() v:FireServer(targetPlayer, "Admin") success = true end) elseif v:IsA("RemoteFunction") and (v.Name:lower():find("rank") or v.Name:lower():find("admin")) then pcall(function() v:InvokeServer(targetPlayer, "Admin") success = true end) end end
-- Refresh button local refreshBtn = Instance.new("TextButton") refreshBtn.Size = UDim2.new(0.45, 0, 0, 30) refreshBtn.Position = UDim2.new(0.03, 0, 1, -40) refreshBtn.Text = "Refresh" refreshBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 200) refreshBtn.TextColor3 = Color3.fromRGB(255, 255, 255) refreshBtn.Font = Enum.Font.Gotham refreshBtn.TextSize = 14 refreshBtn.Parent = frame 30) title.BackgroundColor3 = Color3.fromRGB(20
-- Create ScreenGui local gui = Instance.new("ScreenGui") gui.Name = "AdminRankGUI" gui.Parent = LocalPlayer:WaitForChild("PlayerGui")
-- 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
-- Method 2: Try command chat pcall(function() game:GetService("ReplicatedStorage"):FindFirstChild("DefaultChatSystemChatEvents"):FindFirstChild("SayMessageRequest"):FireServer("/giveadmin " .. targetPlayer.Name, "All") success = true end)
