local TradeEvent = game:GetService("ReplicatedStorage"):WaitForChild("TradeEvent") local ScreenGui = Instance.new("ScreenGui", game.CoreGui) local Frame = Instance.new("Frame", ScreenGui) Frame.Size = UDim2.new(0, 250, 0, 140) Frame.Position = UDim2.new(0.5, -125, 0.5, -70) local TextBox = Instance.new("TextBox", Frame) TextBox.Size = UDim2.new(0, 230, 0, 30) TextBox.Position = UDim2.new(0, 10, 0, 10) TextBox.PlaceholderText = "اكتب الرسالة هنا" local SpeedBox = Instance.new("TextBox", Frame) SpeedBox.Size = UDim2.new(0, 230, 0, 30) SpeedBox.Position = UDim2.new(0, 10, 0, 50) SpeedBox.PlaceholderText = "السرعة بالثواني (مثال 1)" SpeedBox.Text = "1" local Running = false local Button = Instance.new("TextButton", Frame) Button.Size = UDim2.new(0, 230, 0, 30) Button.Position = UDim2.new(0, 10, 0, 90) Button.Text = "Start" Button.MouseButton1Click:Connect(function() Running = not Running Button.Text = Running and "Stop" or "Start" if Running then task.spawn(function() while Running do local msg = TextBox.Text local delayTime = tonumber(SpeedBox.Text) or 1 TradeEvent:FireServer(msg) task.wait(delayTime) end end) end end)