local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer local remote = ReplicatedStorage :WaitForChild("OnServerEvents") :WaitForChild("ChangeMods") local gui = Instance.new("ScreenGui") gui.Name = "ExecuteUI" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 260, 0, 140) frame.Position = UDim2.new(0.5, -130, 0.5, -70) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) corner.Parent = frame local textBox = Instance.new("TextBox") textBox.Size = UDim2.new(1, -20, 0, 40) textBox.Position = UDim2.new(0, 10, 0, 15) textBox.PlaceholderText = "输入执行次数" textBox.Text = "" textBox.TextColor3 = Color3.new(1,1,1) textBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50) textBox.ClearTextOnFocus = false textBox.Parent = frame Instance.new("UICorner", textBox) local button = Instance.new("TextButton") button.Size = UDim2.new(1, -20, 0, 40) button.Position = UDim2.new(0, 10, 0, 75) button.Text = "执行" button.TextColor3 = Color3.new(1,1,1) button.BackgroundColor3 = Color3.fromRGB(80, 80, 80) button.Parent = frame Instance.new("UICorner", button) button.MouseButton1Click:Connect(function() local count = tonumber(textBox.Text) if not count or count <= 0 then return end local total = count * 2 for i = 1, total do local args = { tostring(i) } remote:FireServer(unpack(args)) end end)