Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- GUI Principal
- local gui = Instance.new("ScreenGui")
- gui.Name = "BangGui"
- gui.Parent = game.CoreGui
- -- Função para mover o frame pela tela
- local UserInputService = game:GetService("UserInputService")
- local function makeDraggable(frame)
- local dragging = false
- local dragInput, dragStart, startPos
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch 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 dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
- 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
- end)
- end
- -- Main Frame
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0, 300, 0, 300)
- mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- mainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- mainFrame.BackgroundColor3 = Color3.fromRGB(80, 80, 255)
- mainFrame.BorderSizePixel = 0
- mainFrame.Active = true
- mainFrame.Parent = gui
- local uicorner = Instance.new("UICorner")
- uicorner.CornerRadius = UDim.new(0, 20)
- uicorner.Parent = mainFrame
- -- Título
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, -60, 0, 30)
- title.Position = UDim2.new(0, 10, 0, 0)
- title.BackgroundTransparency = 1
- title.Text = "🎨 Choose a Script"
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.Font = Enum.Font.SourceSansBold
- title.TextSize = 24
- title.TextXAlignment = Enum.TextXAlignment.Left
- title.Parent = mainFrame
- -- Botão Fechar
- local closeButton = Instance.new("TextButton")
- closeButton.Size = UDim2.new(0, 30, 0, 30)
- closeButton.Position = UDim2.new(1, -40, 0, 0)
- closeButton.BackgroundColor3 = Color3.fromRGB(255, 100, 100)
- closeButton.Text = "X"
- closeButton.Font = Enum.Font.SourceSansBold
- closeButton.TextSize = 20
- closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- closeButton.Parent = mainFrame
- local closeCorner = Instance.new("UICorner")
- closeCorner.CornerRadius = UDim.new(0, 10)
- closeCorner.Parent = closeButton
- closeButton.MouseButton1Click:Connect(function()
- gui:Destroy()
- end)
- -- Botão Minimizar
- local minimizeButton = Instance.new("TextButton")
- minimizeButton.Size = UDim2.new(0, 30, 0, 30)
- minimizeButton.Position = UDim2.new(1, -80, 0, 0)
- minimizeButton.BackgroundColor3 = Color3.fromRGB(255, 200, 0)
- minimizeButton.Text = "-"
- minimizeButton.Font = Enum.Font.SourceSansBold
- minimizeButton.TextSize = 20
- minimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- minimizeButton.Parent = mainFrame
- local minimizeCorner = Instance.new("UICorner")
- minimizeCorner.CornerRadius = UDim.new(0, 10)
- minimizeCorner.Parent = minimizeButton
- local minimized = false
- minimizeButton.MouseButton1Click:Connect(function()
- minimized = not minimized
- if minimized then
- mainFrame:TweenSize(UDim2.new(0, 300, 0, 30), Enum.EasingDirection.In, Enum.EasingStyle.Quint, 0.5)
- else
- mainFrame:TweenSize(UDim2.new(0, 300, 0, 300), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.5)
- end
- end)
- -- Scrolling Frame
- local scrollingFrame = Instance.new("ScrollingFrame")
- scrollingFrame.Size = UDim2.new(1, -20, 1, -50)
- scrollingFrame.Position = UDim2.new(0, 10, 0, 40)
- scrollingFrame.BackgroundTransparency = 1
- scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 300)
- scrollingFrame.ScrollBarThickness = 6
- scrollingFrame.Parent = mainFrame
- local layout = Instance.new("UIListLayout")
- layout.Padding = UDim.new(0, 10)
- layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- layout.Parent = scrollingFrame
- -- Botões
- local buttons = {
- {name = "🎯 Bang V2", r6 = "https://pastebin.com/raw/aPSHMV6K", r15 = "https://pastebin.com/raw/1ePMTt9n"},
- {name = "🎉 Get Banged", r6 = "https://pastebin.com/raw/zHbw7ND1", r15 = "https://pastebin.com/raw/7hvcjDnW"},
- {name = "💥 Suck", r6 = "https://pastebin.com/raw/SymCfnAW", r15 = "https://pastebin.com/raw/p8yxRfr4"},
- {name = "🔥 Get Suc", r6 = "https://pastebin.com/raw/FPu4e2Qh", r15 = "https://pastebin.com/raw/DyPP2tAF"},
- {name = "⚡ Jerk", r6 = "https://pastefy.app/wa3v2Vgm/raw", r15 = "https://pastefy.app/YZoglOyJ/raw"}
- }
- for _, buttonData in ipairs(buttons) do
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(0.8, 0, 0, 40)
- button.BackgroundColor3 = Color3.fromRGB(math.random(100, 255), math.random(100, 255), math.random(100, 255))
- button.Text = buttonData.name
- button.Font = Enum.Font.SourceSansBold
- button.TextSize = 20
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Parent = scrollingFrame
- local uicorner = Instance.new("UICorner")
- uicorner.CornerRadius = UDim.new(0, 10)
- uicorner.Parent = button
- button.MouseButton1Click:Connect(function()
- if isR6 then
- loadstring(game:HttpGet(buttonData.r6))()
- else
- loadstring(game:HttpGet(buttonData.r15))()
- end
- end)
- end
- -- Ativar o arraste no frame principal
- makeDraggable(mainFrame)
Advertisement
Add Comment
Please, Sign In to add comment