Advertisement
Smartdumgood

Thick of It

Jan 10th, 2025
2,647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local MainFrame = Instance.new("Frame")
  3. local Button = Instance.new("TextButton")
  4.  
  5. -- GUI Setup
  6. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  7.  
  8. MainFrame.Name = "MainFrame"
  9. MainFrame.Parent = ScreenGui
  10. MainFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  11. MainFrame.Position = UDim2.new(0.8, 0, 0.5, -50)
  12. MainFrame.Size = UDim2.new(0, 200, 0, 100)
  13.  
  14. Button.Name = "LyricButton"
  15. Button.Parent = MainFrame
  16. Button.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  17. Button.Position = UDim2.new(0.1, 0, 0.2, 0)
  18. Button.Size = UDim2.new(0.8, 0, 0.6, 0)
  19. Button.Font = Enum.Font.GothamBold
  20. Button.Text = "Drop Lyrics! 🎵"
  21. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  22. Button.TextSize = 18
  23.  
  24. -- Add corners
  25. local UICorner = Instance.new("UICorner")
  26. UICorner.CornerRadius = UDim.new(0, 8)
  27. UICorner.Parent = MainFrame
  28.  
  29. local ButtonCorner = UICorner:Clone()
  30. ButtonCorner.Parent = Button
  31.  
  32. -- Messages array
  33. local messages = {
  34. "From the screen🤣",
  35. "To The ring😙",
  36. "To the Pen😭",
  37. "To The King😫",
  38. "Where's my crown🤑",
  39. "Where's my Bling😡",
  40. "Always Drama when i RIIIIIIIIIIING🤓",
  41. }
  42.  
  43.  
  44. Button.MouseButton1Click:Connect(function()
  45. Button.BackgroundColor3 = Color3.fromRGB(85, 85, 85)
  46. for _, message in ipairs(messages) do
  47. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
  48. wait(0.5) -- Perfect 1-second timing
  49. end
  50. Button.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  51. end)
  52.  
  53. -- Make GUI draggable
  54. local UserInputService = game:GetService("UserInputService")
  55. local dragging
  56. local dragInput
  57. local dragStart
  58. local startPos
  59.  
  60. MainFrame.InputBegan:Connect(function(input)
  61. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  62. dragging = true
  63. dragStart = input.Position
  64. startPos = MainFrame.Position
  65. end
  66. end)
  67.  
  68. MainFrame.InputEnded:Connect(function(input)
  69. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  70. dragging = false
  71. end
  72. end)
  73.  
  74. UserInputService.InputChanged:Connect(function(input)
  75. if input.UserInputType == Enum.UserInputType.MouseMovement then
  76. dragInput = input
  77. end
  78. end)
  79.  
  80. game:GetService("RunService").RenderStepped:Connect(function()
  81. if dragging and dragInput then
  82. local delta = dragInput.Position - dragStart
  83. MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  84. end
  85. end)
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement