AZ0-9--_

Sla

Apr 11th, 2025 (edited)
2,526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.50 KB | None | 0 0
  1. -- Doors HubV6
  2. -- Feito por Fã do Doors e ChatGPT
  3.  
  4. local player = game.Players.LocalPlayer
  5. local char = player.Character or player.CharacterAdded:Wait()
  6.  
  7. -- GUI
  8. local gui = Instance.new("ScreenGui", game.CoreGui)
  9. gui.Name = "DoorsHubV6"
  10. gui.ResetOnSpawn = false
  11.  
  12. local main = Instance.new("Frame", gui)
  13. main.Size = UDim2.new(0, 300, 0, 350)
  14. main.Position = UDim2.new(0.5, -150, 0.5, -175)
  15. main.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
  16. Instance.new("UICorner", main).CornerRadius = UDim.new(0, 12)
  17.  
  18. -- Drag
  19. local dragging, dragInput, dragStart, startPos
  20. main.InputBegan:Connect(function(input)
  21. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  22. dragging = true
  23. dragStart = input.Position
  24. startPos = main.Position
  25.  
  26. input.Changed:Connect(function()
  27. if input.UserInputState == Enum.UserInputState.End then
  28. dragging = false
  29. end
  30. end)
  31. end
  32. end)
  33.  
  34. main.InputChanged:Connect(function(input)
  35. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  36. local delta = input.Position - dragStart
  37. main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  38. end
  39. end)
  40.  
  41. -- Título
  42. local title = Instance.new("TextLabel", main)
  43. title.Size = UDim2.new(1, 0, 0, 35)
  44. title.Text = "Doors HubV6"
  45. title.TextColor3 = Color3.new(1, 1, 1)
  46. title.Font = Enum.Font.GothamBold
  47. title.TextSize = 20
  48. title.BackgroundTransparency = 1
  49.  
  50. -- Aba Buttons
  51. local tabFrame = Instance.new("Frame", main)
  52. tabFrame.Size = UDim2.new(1, 0, 0, 30)
  53. tabFrame.Position = UDim2.new(0, 0, 0, 35)
  54. tabFrame.BackgroundTransparency = 1
  55.  
  56. local tabs = {}
  57. local currentTab
  58.  
  59. local function createTab(name)
  60. local btn = Instance.new("TextButton", tabFrame)
  61. btn.Size = UDim2.new(0, 100, 1, 0)
  62. btn.Text = name
  63. btn.Font = Enum.Font.GothamBold
  64. btn.TextSize = 14
  65. btn.BackgroundColor3 = Color3.fromRGB(45, 45, 60)
  66. btn.TextColor3 = Color3.new(1, 1, 1)
  67. Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
  68.  
  69. local content = Instance.new("ScrollingFrame", main)
  70. content.Size = UDim2.new(1, -20, 1, -75)
  71. content.Position = UDim2.new(0, 10, 0, 70)
  72. content.CanvasSize = UDim2.new(0, 0, 0, 0)
  73. content.ScrollBarThickness = 5
  74. content.BackgroundTransparency = 1
  75. content.Visible = false
  76.  
  77. local layout = Instance.new("UIListLayout", content)
  78. layout.Padding = UDim.new(0, 6)
  79.  
  80. tabs[name] = {Button = btn, Frame = content, Layout = layout}
  81.  
  82. btn.MouseButton1Click:Connect(function()
  83. if currentTab then currentTab.Visible = false end
  84. currentTab = content
  85. content.Visible = true
  86. end)
  87. end
  88.  
  89. createTab("Proteção")
  90. createTab("Diversão")
  91. createTab("Config")
  92.  
  93. tabs["Proteção"].Button.Position = UDim2.new(0, 10, 0, 0)
  94. tabs["Diversão"].Button.Position = UDim2.new(0, 115, 0, 0)
  95. tabs["Config"].Button.Position = UDim2.new(0, 220, 0, 0)
  96.  
  97. -- Botão Criador
  98. local function addButton(tab, text, callback)
  99. local btn = Instance.new("TextButton", tabs[tab].Frame)
  100. btn.Size = UDim2.new(1, 0, 0, 35)
  101. btn.Text = text
  102. btn.BackgroundColor3 = Color3.fromRGB(50, 50, 70)
  103. btn.TextColor3 = Color3.new(1, 1, 1)
  104. btn.Font = Enum.Font.Gotham
  105. btn.TextSize = 16
  106. Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
  107. btn.MouseButton1Click:Connect(callback)
  108.  
  109. tabs[tab].Frame.CanvasSize = UDim2.new(0, 0, 0, tabs[tab].Layout.AbsoluteContentSize.Y + 10)
  110. end
  111.  
  112. -- Botões Proteção
  113. addButton("Proteção", "GodMode", function()
  114. local godOn = false
  115. if godOn then return end
  116. godOn = true
  117. local function protect()
  118. char = player.Character or player.CharacterAdded:Wait()
  119. local hum = char:WaitForChild("Humanoid")
  120. hum:GetPropertyChangedSignal("Health"):Connect(function()
  121. if hum.Health < hum.MaxHealth then
  122. hum.Health = hum.MaxHealth
  123. end
  124. end)
  125. hum.Health = hum.MaxHealth
  126. end
  127. protect()
  128. player.CharacterAdded:Connect(protect)
  129. end)
  130.  
  131. addButton("Proteção", "Desativar Screech", function()
  132. for _, v in pairs(getgc(true)) do
  133. if typeof(v) == "table" and rawget(v, "Screech") then
  134. v.Screech = function() end
  135. end
  136. end
  137. end)
  138.  
  139. -- Botões Config
  140. local modoEscuro = true
  141. addButton("Config", "Alternar Modo Claro/Escuro", function()
  142. if modoEscuro then
  143. main.BackgroundColor3 = Color3.fromRGB(200, 200, 220)
  144. title.TextColor3 = Color3.new(0, 0, 0)
  145. else
  146. main.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
  147. title.TextColor3 = Color3.new(1, 1, 1)
  148. end
  149. modoEscuro = not modoEscuro
  150. end)
  151.  
  152. -- Tab padrão
  153. tabs["Proteção"].Frame.Visible = true
  154. currentTab = tabs["Proteção"].Frame
Advertisement
Add Comment
Please, Sign In to add comment