Advertisement
Steamhesaproblox

Roblox Spam Chat Script

Apr 29th, 2025
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RBScript 3.43 KB | Gaming | 0 0
  1. local TweenService = game:GetService("TweenService")
  2. local Player = game:GetService("Players").LocalPlayer
  3. local UserInputService = game:GetService("UserInputService")
  4.  
  5. local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
  6. ScreenGui.Name = "ChatSpamGui"
  7.  
  8. local Frame = Instance.new("Frame", ScreenGui)
  9. Frame.Name = "Main"
  10. Frame.AnchorPoint = Vector2.new(0,0)
  11. Frame.Position = UDim2.new(0.1,0,0.1,0)
  12. Frame.Size = UDim2.new(0,250,0,220)
  13. Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  14. Frame.Visible = false
  15.  
  16. local UICorner = Instance.new("UICorner", Frame)
  17. UICorner.CornerRadius = UDim.new(0,8)
  18.  
  19. local UIStroke = Instance.new("UIStroke", Frame)
  20. UIStroke.Thickness = 2
  21. UIStroke.Color = Color3.new(1, 1, 1)
  22.  
  23. local Title = Instance.new("TextLabel", Frame)
  24. Title.Size = UDim2.new(1,0,0,30)
  25. Title.BackgroundTransparency = 1
  26. Title.Text = "💬 Chat Spam 💬"
  27. Title.TextColor3 = Color3.new(1,1,1)
  28. Title.TextScaled = true
  29. Title.Font = Enum.Font.Gotham
  30.  
  31. local Box = Instance.new("TextBox", Frame)
  32. Box.Position = UDim2.new(0.05,0,0.3,0)
  33. Box.Size = UDim2.new(0.9,0,0.2,0)
  34. Box.PlaceholderText = "Type your message..."
  35. Box.Text = ""
  36. Box.TextScaled = true
  37. Box.TextColor3 = Color3.new(1, 1, 1)
  38. Box.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  39. local BoxCorner = Instance.new("UICorner", Box)
  40. BoxCorner.CornerRadius = UDim.new(0,5)
  41.  
  42. local Button = Instance.new("TextButton", Frame)
  43. Button.Position = UDim2.new(0.05,0,0.6,0)
  44. Button.Size = UDim2.new(0.9,0,0.2,0)
  45. Button.Text = "Enable Spam"
  46. Button.TextScaled = true
  47. Button.Font = Enum.Font.Gotham
  48. Button.TextColor3 = Color3.new(1, 1, 1)
  49. Button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  50. local ButtonCorner = Instance.new("UICorner", Button)
  51. ButtonCorner.CornerRadius = UDim.new(0,5)
  52.  
  53. local ToggleButton = Instance.new("TextButton", ScreenGui)
  54. ToggleButton.Position = UDim2.new(0,10,0,10)
  55. ToggleButton.Size = UDim2.new(0,50,0,50)
  56. ToggleButton.Text = "☰"
  57. ToggleButton.TextScaled = true
  58. ToggleButton.Font = Enum.Font.Gotham
  59. ToggleButton.TextColor3 = Color3.new(1,1,1)
  60. ToggleButton.BackgroundColor3 = Color3.fromRGB(40,40,40)
  61. local ToggleCorner = Instance.new("UICorner", ToggleButton)
  62. ToggleCorner.CornerRadius = UDim.new(0,8)
  63.  
  64. local dragging = false
  65. local dragInput, dragStart, startPos
  66.  
  67. local function update(input)
  68.     local delta = input.Position - dragStart
  69.     Frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  70. end
  71.  
  72. Frame.InputBegan:Connect(function(input)
  73.     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  74.         dragging = true
  75.         dragStart = input.Position
  76.         startPos = Frame.Position
  77.         input.Changed:Connect(function()
  78.             if input.UserInputState == Enum.UserInputState.End then
  79.                 dragging = false
  80.             end
  81.         end)
  82.     end
  83. end)
  84.  
  85. UserInputService.InputChanged:Connect(function(input)
  86.     if input.UserInputType == Enum.UserInputType.MouseMovement and dragging then
  87.         update(input)
  88.     end
  89. end)
  90.  
  91. local active = false
  92. local message = ""
  93.  
  94. Box.FocusLost:Connect(function()
  95.     message = Box.Text
  96. end)
  97.  
  98. Button.MouseButton1Click:Connect(function()
  99.     active = not active
  100.     Button.Text = active and "Disable Spam" or "Enable Spam"
  101. end)
  102.  
  103. ToggleButton.MouseButton1Click:Connect(function()
  104.     Frame.Visible = not Frame.Visible
  105. end)
  106.  
  107. while true do
  108.     wait(0.5)
  109.     if active and message ~= "" then
  110.         pcall(function()
  111.             game:GetService("TextChatService").TextChannels.RBXGeneral:SendAsync(message)
  112.         end)
  113.     end
  114. end
  115.  
Tags: RobloxScript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement