Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local Player = game:GetService("Players").LocalPlayer
- local UserInputService = game:GetService("UserInputService")
- local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
- ScreenGui.Name = "ChatSpamGui"
- local Frame = Instance.new("Frame", ScreenGui)
- Frame.Name = "Main"
- Frame.AnchorPoint = Vector2.new(0,0)
- Frame.Position = UDim2.new(0.1,0,0.1,0)
- Frame.Size = UDim2.new(0,250,0,220)
- Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- Frame.Visible = false
- local UICorner = Instance.new("UICorner", Frame)
- UICorner.CornerRadius = UDim.new(0,8)
- local UIStroke = Instance.new("UIStroke", Frame)
- UIStroke.Thickness = 2
- UIStroke.Color = Color3.new(1, 1, 1)
- local Title = Instance.new("TextLabel", Frame)
- Title.Size = UDim2.new(1,0,0,30)
- Title.BackgroundTransparency = 1
- Title.Text = "💬 Chat Spam 💬"
- Title.TextColor3 = Color3.new(1,1,1)
- Title.TextScaled = true
- Title.Font = Enum.Font.Gotham
- local Box = Instance.new("TextBox", Frame)
- Box.Position = UDim2.new(0.05,0,0.3,0)
- Box.Size = UDim2.new(0.9,0,0.2,0)
- Box.PlaceholderText = "Type your message..."
- Box.Text = ""
- Box.TextScaled = true
- Box.TextColor3 = Color3.new(1, 1, 1)
- Box.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- local BoxCorner = Instance.new("UICorner", Box)
- BoxCorner.CornerRadius = UDim.new(0,5)
- local Button = Instance.new("TextButton", Frame)
- Button.Position = UDim2.new(0.05,0,0.6,0)
- Button.Size = UDim2.new(0.9,0,0.2,0)
- Button.Text = "Enable Spam"
- Button.TextScaled = true
- Button.Font = Enum.Font.Gotham
- Button.TextColor3 = Color3.new(1, 1, 1)
- Button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- local ButtonCorner = Instance.new("UICorner", Button)
- ButtonCorner.CornerRadius = UDim.new(0,5)
- local ToggleButton = Instance.new("TextButton", ScreenGui)
- ToggleButton.Position = UDim2.new(0,10,0,10)
- ToggleButton.Size = UDim2.new(0,50,0,50)
- ToggleButton.Text = "☰"
- ToggleButton.TextScaled = true
- ToggleButton.Font = Enum.Font.Gotham
- ToggleButton.TextColor3 = Color3.new(1,1,1)
- ToggleButton.BackgroundColor3 = Color3.fromRGB(40,40,40)
- local ToggleCorner = Instance.new("UICorner", ToggleButton)
- ToggleCorner.CornerRadius = UDim.new(0,8)
- local dragging = false
- local dragInput, dragStart, startPos
- local function update(input)
- local delta = input.Position - dragStart
- Frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- Frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement and dragging then
- update(input)
- end
- end)
- local active = false
- local message = ""
- Box.FocusLost:Connect(function()
- message = Box.Text
- end)
- Button.MouseButton1Click:Connect(function()
- active = not active
- Button.Text = active and "Disable Spam" or "Enable Spam"
- end)
- ToggleButton.MouseButton1Click:Connect(function()
- Frame.Visible = not Frame.Visible
- end)
- while true do
- wait(0.5)
- if active and message ~= "" then
- pcall(function()
- game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync(message)
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement