local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local LocalPlayer = Players.LocalPlayer local CoreGui = game:GetService("CoreGui") local function kickPlayer(targetName, reason) local args = { [1] = targetName, [2] = reason or "No reason provided." } ReplicatedStorage:WaitForChild("VoteKickInProgress"):WaitForChild("VoteEvent"):FireServer(unpack(args)) end local function scaleplayer(size) local allsizes = size for _, part in ipairs({"Depth", "Width", "Height", "Head"}) do local args = {[1] = allsizes} ReplicatedStorage:WaitForChild("PlayerScale"):WaitForChild(part):FireServer(unpack(args)) task.wait() end end local function winVote() for _, player in ipairs(Players:GetPlayers()) do ReplicatedStorage:WaitForChild("VoteKickInProgress"):WaitForChild("VoteAdded"):FireServer() end end local function kickAll(reason) local excludeLocalPlayer = { [LocalPlayer.Name] = true } for _, player in ipairs(Players:GetPlayers()) do if not excludeLocalPlayer[player.Name] then kickPlayer(player.Name, reason) for _, p in ipairs(Players:GetPlayers()) do task.wait() ReplicatedStorage:WaitForChild("VoteKickInProgress"):WaitForChild("VoteAdded"):FireServer() end task.wait(15.7) end end end local function addHealth(healthInput) local timesToFire = math.floor(healthInput / 100) for i = 1, timesToFire do task.spawn(function() ReplicatedStorage:WaitForChild("MoreHealth"):FireServer() end) end end local function giveAddons() local localAddons = LocalPlayer.PlayerGui.Spawner.SpawnFrame.Addons local RSAddons = ReplicatedStorage:WaitForChild("AddonStorage"):GetChildren() for _, addon in ipairs(RSAddons) do local clonedAddon = addon:Clone() clonedAddon.Parent = localAddons end end local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "TrashAdminUI" ScreenGui.Parent = CoreGui local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 300, 0, 100) Frame.Position = UDim2.new(0.3, 0, 0.3, 0) Frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) Frame.Active = true Frame.Draggable = true Frame.Parent = ScreenGui local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 30) Title.BackgroundColor3 = Color3.fromRGB(40, 40, 40) Title.Text = "Trash Admin Commands" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.Parent = Frame local TextBox = Instance.new("TextBox") TextBox.Size = UDim2.new(1, -10, 0, 40) TextBox.Position = UDim2.new(0, 5, 0, 40) TextBox.BackgroundColor3 = Color3.fromRGB(80, 80, 80) TextBox.TextColor3 = Color3.fromRGB(255, 255, 255) TextBox.PlaceholderText = "Enter command..." TextBox.ClearTextOnFocus = false TextBox.Parent = Frame TextBox.FocusLost:Connect(function(enterPressed) if not enterPressed then return end local message = TextBox.Text TextBox.Text = "" local command, arg1, arg2 = string.match(message, "(%w+)%s*(%S*)%s*(.*)") if command == "kick" and arg1 then kickPlayer(arg1, arg2) for _, player in ipairs(Players:GetPlayers()) do task.wait() ReplicatedStorage:WaitForChild("VoteKickInProgress"):WaitForChild("VoteAdded"):FireServer() end elseif command == "kickall" then kickAll(arg1) elseif command == "HP" and tonumber(arg1) then addHealth(tonumber(arg1)) elseif command == "addons" then giveAddons() elseif command == "win" then winVote() elseif command == "size" and tonumber(arg1) then scaleplayer(tonumber(arg1)) end end) print("Trash Admin Commands (UI Version) loaded") print("Commands available: kick, kickall, HP, addons, win, size")