Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Doors HubV6
- -- Feito por Fã do Doors e ChatGPT
- local player = game.Players.LocalPlayer
- local char = player.Character or player.CharacterAdded:Wait()
- -- GUI
- local gui = Instance.new("ScreenGui", game.CoreGui)
- gui.Name = "DoorsHubV6"
- gui.ResetOnSpawn = false
- local main = Instance.new("Frame", gui)
- main.Size = UDim2.new(0, 300, 0, 350)
- main.Position = UDim2.new(0.5, -150, 0.5, -175)
- main.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
- Instance.new("UICorner", main).CornerRadius = UDim.new(0, 12)
- -- Drag
- local dragging, dragInput, dragStart, startPos
- main.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = main.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- main.InputChanged:Connect(function(input)
- if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
- local delta = input.Position - dragStart
- main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end)
- -- Título
- local title = Instance.new("TextLabel", main)
- title.Size = UDim2.new(1, 0, 0, 35)
- title.Text = "Doors HubV6"
- title.TextColor3 = Color3.new(1, 1, 1)
- title.Font = Enum.Font.GothamBold
- title.TextSize = 20
- title.BackgroundTransparency = 1
- -- Aba Buttons
- local tabFrame = Instance.new("Frame", main)
- tabFrame.Size = UDim2.new(1, 0, 0, 30)
- tabFrame.Position = UDim2.new(0, 0, 0, 35)
- tabFrame.BackgroundTransparency = 1
- local tabs = {}
- local currentTab
- local function createTab(name)
- local btn = Instance.new("TextButton", tabFrame)
- btn.Size = UDim2.new(0, 100, 1, 0)
- btn.Text = name
- btn.Font = Enum.Font.GothamBold
- btn.TextSize = 14
- btn.BackgroundColor3 = Color3.fromRGB(45, 45, 60)
- btn.TextColor3 = Color3.new(1, 1, 1)
- Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
- local content = Instance.new("ScrollingFrame", main)
- content.Size = UDim2.new(1, -20, 1, -75)
- content.Position = UDim2.new(0, 10, 0, 70)
- content.CanvasSize = UDim2.new(0, 0, 0, 0)
- content.ScrollBarThickness = 5
- content.BackgroundTransparency = 1
- content.Visible = false
- local layout = Instance.new("UIListLayout", content)
- layout.Padding = UDim.new(0, 6)
- tabs[name] = {Button = btn, Frame = content, Layout = layout}
- btn.MouseButton1Click:Connect(function()
- if currentTab then currentTab.Visible = false end
- currentTab = content
- content.Visible = true
- end)
- end
- createTab("Proteção")
- createTab("Diversão")
- createTab("Config")
- tabs["Proteção"].Button.Position = UDim2.new(0, 10, 0, 0)
- tabs["Diversão"].Button.Position = UDim2.new(0, 115, 0, 0)
- tabs["Config"].Button.Position = UDim2.new(0, 220, 0, 0)
- -- Botão Criador
- local function addButton(tab, text, callback)
- local btn = Instance.new("TextButton", tabs[tab].Frame)
- btn.Size = UDim2.new(1, 0, 0, 35)
- btn.Text = text
- btn.BackgroundColor3 = Color3.fromRGB(50, 50, 70)
- btn.TextColor3 = Color3.new(1, 1, 1)
- btn.Font = Enum.Font.Gotham
- btn.TextSize = 16
- Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
- btn.MouseButton1Click:Connect(callback)
- tabs[tab].Frame.CanvasSize = UDim2.new(0, 0, 0, tabs[tab].Layout.AbsoluteContentSize.Y + 10)
- end
- -- Botões Proteção
- addButton("Proteção", "GodMode", function()
- local godOn = false
- if godOn then return end
- godOn = true
- local function protect()
- char = player.Character or player.CharacterAdded:Wait()
- local hum = char:WaitForChild("Humanoid")
- hum:GetPropertyChangedSignal("Health"):Connect(function()
- if hum.Health < hum.MaxHealth then
- hum.Health = hum.MaxHealth
- end
- end)
- hum.Health = hum.MaxHealth
- end
- protect()
- player.CharacterAdded:Connect(protect)
- end)
- addButton("Proteção", "Desativar Screech", function()
- for _, v in pairs(getgc(true)) do
- if typeof(v) == "table" and rawget(v, "Screech") then
- v.Screech = function() end
- end
- end
- end)
- -- Botões Config
- local modoEscuro = true
- addButton("Config", "Alternar Modo Claro/Escuro", function()
- if modoEscuro then
- main.BackgroundColor3 = Color3.fromRGB(200, 200, 220)
- title.TextColor3 = Color3.new(0, 0, 0)
- else
- main.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
- title.TextColor3 = Color3.new(1, 1, 1)
- end
- modoEscuro = not modoEscuro
- end)
- -- Tab padrão
- tabs["Proteção"].Frame.Visible = true
- currentTab = tabs["Proteção"].Frame
Advertisement
Add Comment
Please, Sign In to add comment