Aidenrightyt

Polerex Hub (Blocks n' Props)

Oct 1st, 2025
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.79 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local teleportPosition = Vector3.new(-65, 97, -18.5)
  3.  
  4. -- Create main GUI
  5. local gui = Instance.new("ScreenGui")
  6. gui.Name = "TeleportScrollUI"
  7. gui.ResetOnSpawn = false
  8. gui.Parent = player:WaitForChild("PlayerGui")
  9.  
  10. -- POLEREX Title
  11. local title = Instance.new("TextLabel")
  12. title.Size = UDim2.new(0, 300, 0, 50)
  13. title.Position = UDim2.new(0.5, -150, 0.5, -160)
  14. title.Text = "POLEREX"
  15. title.Font = Enum.Font.GothamBold
  16. title.TextSize = 32
  17. title.TextColor3 = Color3.new(1, 1, 1)
  18. title.BackgroundTransparency = 1
  19. title.Parent = gui
  20.  
  21. local titleGradient = Instance.new("UIGradient")
  22. titleGradient.Color = ColorSequence.new{
  23.     ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 170, 0)),
  24.     ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 85, 0))
  25. }
  26. titleGradient.Rotation = 90
  27. titleGradient.Parent = title
  28.  
  29. -- Create ScrollingFrame
  30. local scroll = Instance.new("ScrollingFrame")
  31. scroll.Size = UDim2.new(0, 300, 0, 200)
  32. scroll.Position = UDim2.new(0.5, -150, 0.5, -100)
  33. scroll.CanvasSize = UDim2.new(0, 0, 0, 400)
  34. scroll.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  35. scroll.BorderSizePixel = 0
  36. scroll.ScrollBarThickness = 8
  37. scroll.Parent = gui
  38.  
  39. local corner = Instance.new("UICorner")
  40. corner.CornerRadius = UDim.new(0, 12)
  41. corner.Parent = scroll
  42.  
  43. local layout = Instance.new("UIListLayout")
  44. layout.Padding = UDim.new(0, 10)
  45. layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  46. layout.SortOrder = Enum.SortOrder.LayoutOrder
  47. layout.Parent = scroll
  48.  
  49. -- Teleport Button
  50. local button = Instance.new("TextButton")
  51. button.Size = UDim2.new(0, 200, 0, 50)
  52. button.Text = "End Game"
  53. button.Font = Enum.Font.GothamBold
  54. button.TextSize = 18
  55. button.TextColor3 = Color3.new(1, 1, 1)
  56. button.BackgroundColor3 = Color3.fromRGB(255, 85, 0)
  57. button.AutoButtonColor = true
  58. button.Parent = scroll
  59.  
  60. local btnCorner = Instance.new("UICorner")
  61. btnCorner.CornerRadius = UDim.new(0, 8)
  62. btnCorner.Parent = button
  63.  
  64. button.MouseButton1Click:Connect(function()
  65.     local char = player.Character or player.CharacterAdded:Wait()
  66.     local hrp = char:WaitForChild("HumanoidRootPart")
  67.     hrp.CFrame = CFrame.new(teleportPosition)
  68. end)
  69.  
  70. -- Noclip Toggle Button
  71. local noclipEnabled = false
  72. local noclipButton = Instance.new("TextButton")
  73. noclipButton.Size = UDim2.new(0, 200, 0, 50)
  74. noclipButton.Text = "Toggle Noclip"
  75. noclipButton.Font = Enum.Font.GothamBold
  76. noclipButton.TextSize = 18
  77. noclipButton.TextColor3 = Color3.new(1, 1, 1)
  78. noclipButton.BackgroundColor3 = Color3.fromRGB(255, 85, 0)
  79. noclipButton.AutoButtonColor = true
  80. noclipButton.Parent = scroll
  81.  
  82. local ncCorner = Instance.new("UICorner")
  83. ncCorner.CornerRadius = UDim.new(0, 8)
  84. ncCorner.Parent = noclipButton
  85.  
  86. noclipButton.MouseButton1Click:Connect(function()
  87.     noclipEnabled = not noclipEnabled
  88. end)
  89.  
  90. game:GetService("RunService").Stepped:Connect(function()
  91.     if noclipEnabled then
  92.         local char = player.Character
  93.         if char then
  94.             for _, part in pairs(char:GetDescendants()) do
  95.                 if part:IsA("BasePart") then
  96.                     part.CanCollide = false
  97.                 end
  98.             end
  99.         end
  100.     end
  101. end)
  102.  
  103. -- Draggable Toggle Button
  104. local toggleGui = Instance.new("ScreenGui")
  105. toggleGui.Name = "ToggleButtonUI"
  106. toggleGui.ResetOnSpawn = false
  107. toggleGui.Parent = player:WaitForChild("PlayerGui")
  108.  
  109. local toggleButton = Instance.new("ImageButton")
  110. toggleButton.Size = UDim2.new(0, 60, 0, 60)
  111. toggleButton.Position = UDim2.new(0, 10, 0, 10)
  112. toggleButton.Image = "rbxassetid://133744312808716"
  113. toggleButton.BackgroundTransparency = 1
  114. toggleButton.Active = true
  115. toggleButton.Parent = toggleGui
  116.  
  117. toggleButton.MouseButton1Click:Connect(function()
  118.     gui.Enabled = not gui.Enabled
  119. end)
  120.  
  121. -- Tweened Drag Logic
  122. local UIS = game:GetService("UserInputService")
  123. local TweenService = game:GetService("TweenService")
  124.  
  125. local dragging = false
  126. local dragStart = nil
  127. local startPos = nil
  128.  
  129. toggleButton.InputBegan:Connect(function(input)
  130.     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  131.         dragging = true
  132.         dragStart = input.Position
  133.         startPos = toggleButton.Position
  134.         input.Changed:Connect(function()
  135.             if input.UserInputState == Enum.UserInputState.End then
  136.                 dragging = false
  137.             end
  138.         end)
  139.     end
  140. end)
  141.  
  142. UIS.InputChanged:Connect(function(input)
  143.     if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  144.         local delta = input.Position - dragStart
  145.         local newPos = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  146.  
  147.         TweenService:Create(toggleButton, TweenInfo.new(0.15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
  148.             Position = newPos
  149.         }):Play()
  150.     end
  151. end)
  152.  
Advertisement
Add Comment
Please, Sign In to add comment