Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Button = Instance.new("TextButton")
- -- GUI Setup
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ScreenGui
- MainFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- MainFrame.Position = UDim2.new(0.8, 0, 0.5, -50)
- MainFrame.Size = UDim2.new(0, 200, 0, 100)
- Button.Name = "LyricButton"
- Button.Parent = MainFrame
- Button.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- Button.Position = UDim2.new(0.1, 0, 0.2, 0)
- Button.Size = UDim2.new(0.8, 0, 0.6, 0)
- Button.Font = Enum.Font.GothamBold
- Button.Text = "Drop Lyrics! 🎵"
- Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- Button.TextSize = 18
- -- Add corners
- local UICorner = Instance.new("UICorner")
- UICorner.CornerRadius = UDim.new(0, 8)
- UICorner.Parent = MainFrame
- local ButtonCorner = UICorner:Clone()
- ButtonCorner.Parent = Button
- -- Messages array
- local messages = {
- "From the screen🤣",
- "To The ring😙",
- "To the Pen😭",
- "To The King😫",
- "Where's my crown🤑",
- "Where's my Bling😡",
- "Always Drama when i RIIIIIIIIIIING🤓",
- }
- Button.MouseButton1Click:Connect(function()
- Button.BackgroundColor3 = Color3.fromRGB(85, 85, 85)
- for _, message in ipairs(messages) do
- game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
- wait(0.5) -- Perfect 1-second timing
- end
- Button.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
- end)
- -- Make GUI draggable
- local UserInputService = game:GetService("UserInputService")
- local dragging
- local dragInput
- local dragStart
- local startPos
- MainFrame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = MainFrame.Position
- end
- end)
- MainFrame.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = false
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- dragInput = input
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- if dragging and dragInput then
- local delta = dragInput.Position - dragStart
- MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement