Advertisement
rObl0xexpl0it3r

Untitled

Nov 29th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.02 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3. local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
  4. local frame = Instance.new("Frame", screenGui)
  5. frame.Size = UDim2.new(0, 300, 0, 500)
  6. frame.Position = UDim2.new(0, 10, 0, 10)
  7. frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  8.  
  9. local panelVisible = true
  10.  
  11. local function createButton(text, position, callback)
  12. local button = Instance.new("TextButton", frame)
  13. button.Size = UDim2.new(0, 250, 0, 40)
  14. button.Position = position
  15. button.Text = text
  16. button.BackgroundColor3 = Color3.new(0.3, 0.3, 0.8)
  17. button.TextColor3 = Color3.new(1, 1, 1)
  18. button.Font = Enum.Font.SourceSansBold
  19. button.TextSize = 18
  20. local buttonCorner = Instance.new("UICorner", button)
  21. buttonCorner.CornerRadius = UDim.new(0, 5)
  22. button.MouseButton1Click:Connect(callback)
  23. end
  24.  
  25. local dragActive, dragStart, startPos
  26. frame.InputBegan:Connect(function(input)
  27. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  28. dragActive, dragStart, startPos = true, input.Position, frame.Position
  29. end
  30. end)
  31. frame.InputChanged:Connect(function(input)
  32. if dragActive and input.UserInputType == Enum.UserInputType.MouseMovement then
  33. local delta = input.Position - dragStart
  34. frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  35. end
  36. end)
  37. frame.InputEnded:Connect(function(input)
  38. if input.UserInputType == Enum.UserInputType.MouseButton1 then dragActive = false end
  39. end)
  40.  
  41. local boxesEnabled, godModeEnabled, noClipEnabled, speedBoostEnabled, flyModeEnabled, infiniteAmmoEnabled = false, false, false, false, false, false
  42.  
  43. local function toggleGodMode()
  44. godModeEnabled = not godModeEnabled
  45. local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
  46. if godModeEnabled then
  47. spawn(function()
  48. while godModeEnabled do
  49. humanoid.Health = 100
  50. wait(0.1)
  51. end
  52. end)
  53. end
  54. end
  55.  
  56. local function toggleBoxes()
  57. boxesEnabled = not boxesEnabled
  58. for _, plr in pairs(game.Players:GetPlayers()) do
  59. if plr ~= player and plr.Team ~= player.Team and plr.Character and plr.Character:FindFirstChild("Head") then
  60. local head = plr.Character.Head
  61. local existingBox = head:FindFirstChild("NameBox")
  62. if boxesEnabled then
  63. if not existingBox then
  64. local billboardGui = Instance.new("BillboardGui", head)
  65. billboardGui.Size = UDim2.new(4, 0, 1, 0)
  66. billboardGui.Adornee = head
  67. billboardGui.AlwaysOnTop = true
  68. local frame = Instance.new("Frame", billboardGui)
  69. frame.Size = UDim2.new(1, 0, 1, 0)
  70. frame.BackgroundColor3 = Color3.new(1, 0, 0)
  71. frame.BackgroundTransparency = 0.5
  72. frame.BorderSizePixel = 2
  73. end
  74. elseif existingBox then
  75. existingBox:Destroy()
  76. end
  77. end
  78. end
  79. spawn(function()
  80. while boxesEnabled do
  81. local closestPlayer, shortestDistance = nil, math.huge
  82. for _, plr in pairs(game.Players:GetPlayers()) do
  83. if plr ~= player and plr.Team ~= player.Team and plr.Character and plr.Character:FindFirstChild("Head") then
  84. local head = plr.Character.Head
  85. local screenPoint, onScreen = workspace.CurrentCamera:WorldToScreenPoint(head.Position)
  86. if onScreen then
  87. local distance = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(screenPoint.X, screenPoint.Y)).Magnitude
  88. if distance < shortestDistance then
  89. shortestDistance, closestPlayer = distance, plr
  90. end
  91. end
  92. end
  93. end
  94. if closestPlayer and closestPlayer.Character and closestPlayer.Character:FindFirstChild("Head") then
  95. workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position, closestPlayer.Character.Head.Position)
  96. end
  97. wait()
  98. end
  99. end)
  100. end
  101.  
  102. local function toggleNoClip()
  103. noClipEnabled = not noClipEnabled
  104. spawn(function()
  105. while noClipEnabled do
  106. local character = player.Character
  107. if character then
  108. for _, part in pairs(character:GetDescendants()) do
  109. if part:IsA("BasePart") then part.CanCollide = false end
  110. end
  111. end
  112. wait()
  113. end
  114. end)
  115. end
  116.  
  117. local function toggleSpeedBoost()
  118. speedBoostEnabled = not speedBoostEnabled
  119. local character = player.Character
  120. if character then
  121. local humanoid = character:FindFirstChild("Humanoid")
  122. if humanoid then
  123. humanoid.WalkSpeed = speedBoostEnabled and 100 or 16
  124. end
  125. end
  126. end
  127.  
  128. local function toggleFlyMode()
  129. flyModeEnabled = not flyModeEnabled
  130. local character = player.Character
  131. if character then
  132. local humanoid = character:FindFirstChild("Humanoid")
  133. local bodyVelocity = character:FindFirstChild("BodyVelocity")
  134. if flyModeEnabled then
  135. if humanoid then
  136. humanoid.PlatformStand = true
  137. end
  138. if not bodyVelocity then
  139. bodyVelocity = Instance.new("BodyVelocity", character)
  140. bodyVelocity.MaxForce = Vector3.new(100000, 100000, 100000)
  141. bodyVelocity.Velocity = Vector3.new(0, 50, 0)
  142. end
  143. else
  144. if humanoid then
  145. humanoid.PlatformStand = false
  146. end
  147. if bodyVelocity then
  148. bodyVelocity:Destroy()
  149. end
  150. end
  151. end
  152. end
  153.  
  154. local function toggleInfiniteAmmo()
  155. infiniteAmmoEnabled = not infiniteAmmoEnabled
  156. local character = player.Character
  157. if character then
  158. local backpack = player:FindFirstChild("Backpack")
  159. for _, tool in pairs(backpack:GetChildren()) do
  160. if tool:IsA("Tool") then
  161. tool.Ammo = infiniteAmmoEnabled and math.huge or 30 -- Change max ammo value as necessary
  162. end
  163. end
  164. end
  165. end
  166.  
  167. local function togglePanelVisibility()
  168. panelVisible = not panelVisible
  169. frame.Visible = panelVisible
  170. end
  171.  
  172. createButton("Enable God Mode", UDim2.new(0, 25, 0, 20), toggleGodMode)
  173. createButton("Enable Boxes", UDim2.new(0, 25, 0, 70), toggleBoxes)
  174. createButton("Enable NoClip", UDim2.new(0, 25, 0, 120), toggleNoClip)
  175. createButton("Enable Speed Boost", UDim2.new(0, 25, 0, 170), toggleSpeedBoost)
  176. createButton("Enable Fly Mode", UDim2.new(0, 25, 0, 220), toggleFlyMode)
  177. createButton("Enable Infinite Ammo", UDim2.new(0, 25, 0, 270), toggleInfiniteAmmo)
  178. createButton("Open/Close Panel", UDim2.new(0, 25, 0, 320), togglePanelVisibility)
  179.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement