Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- made by obpot on roblox
- local plr = game.Players.LocalPlayer
- local Gui =Instance.new("ScreenGui",plr.PlayerGui)
- local frame = Instance.new("Frame",Gui)
- frame.Selectable = true
- frame.Active = true
- frame.Draggable = true
- frame.Position = UDim2.fromScale(0.348,0.383)
- frame.Size = UDim2.fromOffset(251,156)
- local TextBox = Instance.new("TextBox",frame)
- TextBox.Position = UDim2.fromScale(0.1,0.147)
- TextBox.Size = UDim2.fromOffset(200,50)
- TextBox.Text = "Text here"
- TextBox.ClearTextOnFocus = false
- waitbox = Instance.new("TextBox",frame)
- waitbox.ClearTextOnFocus = false
- waitbox.Position = UDim2.fromScale(0.1,0.899)
- waitbox.Size = UDim2.fromOffset(100,25)
- waitbox.Text = "Number in seconds"
- local button1 = Instance.new("TextButton",frame)
- button1.Text = "Chat!"
- button1.TextScaled = true
- button1.Size = UDim2.fromOffset(175,25)
- button1.Position =UDim2.fromScale(0.1400,0.468)
- button1.BackgroundColor3 = Color3.fromRGB(0,255,0)
- button1.TextColor3 = Color3.fromRGB(255,255,255)
- button2 = button1:Clone(frame)
- button2.Parent = frame
- button2.Position = UDim2.fromScale(0.1400,0.699)
- button2.BackgroundColor3 = Color3.fromRGB(255,0,0)
- button2.Text = "Spam/Stop Spam"
- spamming = false
- button1.MouseButton1Click:Connect(function()
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(TextBox.Text, "All")
- end)
- button2.MouseButton1Click:Connect(function()
- if spamming == false then
- spamming = true
- elseif spamming == true then
- spamming = false
- end
- while spamming == true do
- wait(waitbox.Text)
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(TextBox.Text, "All")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement