Advertisement
rObl0xexpl0it3r

GAMBLING!

Nov 29th, 2024 (edited)
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.21 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3. local RunService = game:GetService("RunService")
  4. local Workspace = game:GetService("Workspace")
  5. local Lighting = game:GetService("Lighting")
  6. local player = Players.LocalPlayer
  7. local character = player.Character or player.CharacterAdded:Wait()
  8.  
  9. -- **Functions for Each Command**
  10.  
  11. -- Pack 1: Basic Utility Commands
  12. local function activateGodMode()
  13. if character:FindFirstChild("Humanoid") then
  14. character.Humanoid.MaxHealth = math.huge
  15. character.Humanoid.Health = math.huge
  16. print("God Mode Activated!")
  17. end
  18. end
  19.  
  20. local function speedBoost(multiplier)
  21. if character:FindFirstChild("Humanoid") then
  22. character.Humanoid.WalkSpeed = 16 * multiplier
  23. print("Speed Boost Applied: " .. multiplier .. "x")
  24. end
  25. end
  26.  
  27. local function toggleFly(enable)
  28. if enable then
  29. local fly = Instance.new("BodyVelocity")
  30. fly.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  31. fly.Velocity = Vector3.zero
  32. fly.Name = "Fly"
  33. fly.Parent = character:FindFirstChild("HumanoidRootPart")
  34. print("Fly Mode Activated!")
  35. else
  36. local fly = character:FindFirstChild("HumanoidRootPart"):FindFirstChild("Fly")
  37. if fly then fly:Destroy() end
  38. print("Fly Mode Deactivated!")
  39. end
  40. end
  41.  
  42. local function teleportToPosition(position)
  43. if character:FindFirstChild("HumanoidRootPart") then
  44. character.HumanoidRootPart.CFrame = CFrame.new(position)
  45. print("Teleported to: " .. tostring(position))
  46. end
  47. end
  48.  
  49. -- Pack 2: Advanced Commands
  50. local function adjustGravity(value)
  51. Workspace.Gravity = value
  52. print("Gravity Set To: " .. value)
  53. end
  54.  
  55. local function toggleInvisibility(enable)
  56. for _, part in ipairs(character:GetDescendants()) do
  57. if part:IsA("BasePart") then
  58. part.Transparency = enable and 1 or 0
  59. part.CanCollide = not enable
  60. end
  61. end
  62. print("Invisibility " .. (enable and "Enabled!" or "Disabled!"))
  63. end
  64.  
  65. local function addForceField()
  66. local forceField = Instance.new("ForceField", character)
  67. print("Force Field Added!")
  68. end
  69.  
  70. local function cloneCharacter()
  71. local clone = character:Clone()
  72. clone.Parent = Workspace
  73. clone:SetPrimaryPartCFrame(character.HumanoidRootPart.CFrame + Vector3.new(5, 0, 0))
  74. print("Character Cloned!")
  75. end
  76.  
  77. local function controlTime(speed)
  78. Lighting.ClockTime = speed
  79. print("Time speed set to: " .. speed)
  80. end
  81.  
  82. -- Pack 3: Fun Commands
  83. local function enableESP()
  84. for _, target in ipairs(Players:GetPlayers()) do
  85. if target ~= player and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  86. local highlight = Instance.new("Highlight")
  87. highlight.Adornee = target.Character
  88. highlight.FillColor = Color3.new(1, 0, 0) -- Red for enemy players
  89. highlight.OutlineColor = Color3.new(1, 1, 1) -- White outline
  90. highlight.Parent = target.Character
  91. end
  92. end
  93. print("ESP Enabled!")
  94. end
  95.  
  96. local function disableESP()
  97. for _, target in ipairs(Players:GetPlayers()) do
  98. if target.Character then
  99. for _, child in ipairs(target.Character:GetChildren()) do
  100. if child:IsA("Highlight") then
  101. child:Destroy()
  102. end
  103. end
  104. end
  105. end
  106. print("ESP Disabled!")
  107. end
  108.  
  109. local function enableAimbot()
  110. RunService.RenderStepped:Connect(function()
  111. local closestTarget = nil
  112. local closestDistance = math.huge
  113.  
  114. for _, target in ipairs(Players:GetPlayers()) do
  115. if target ~= player and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  116. local targetPart = target.Character:FindFirstChild("HumanoidRootPart")
  117. local distance = (player.Character.HumanoidRootPart.Position - targetPart.Position).Magnitude
  118.  
  119. if distance < closestDistance then
  120. closestDistance = distance
  121. closestTarget = targetPart
  122. end
  123. end
  124. end
  125.  
  126. if closestTarget then
  127. local camera = Workspace.CurrentCamera
  128. camera.CFrame = CFrame.new(camera.CFrame.Position, closestTarget.Position)
  129. end
  130. end)
  131. print("Aimbot Enabled!")
  132. end
  133.  
  134. local function triggerExplosion(position, radius)
  135. local explosion = Instance.new("Explosion")
  136. explosion.Position = position
  137. explosion.BlastRadius = radius
  138. explosion.Parent = Workspace
  139. print("Explosion Triggered at: " .. tostring(position))
  140. end
  141.  
  142. local function resizeCharacter(scale)
  143. for _, part in ipairs(character:GetDescendants()) do
  144. if part:IsA("BasePart") then
  145. part.Size = part.Size * scale
  146. end
  147. end
  148. print("Character Resized by Scale: " .. scale)
  149. end
  150.  
  151. -- Pack 4: Environmental/Global Commands
  152. local function setWeather(weather)
  153. if weather == "rain" then
  154. Lighting.FogEnd = 200
  155. Lighting.Brightness = 0.2
  156. elseif weather == "sunny" then
  157. Lighting.FogEnd = 100000
  158. Lighting.Brightness = 2
  159. elseif weather == "fog" then
  160. Lighting.FogEnd = 50
  161. Lighting.Brightness = 0.5
  162. end
  163. print("Weather Set to: " .. weather)
  164. end
  165.  
  166. local function toggleLockdown(enable)
  167. for _, p in ipairs(Players:GetPlayers()) do
  168. if enable then
  169. p.Character.HumanoidRootPart.Anchored = true
  170. else
  171. p.Character.HumanoidRootPart.Anchored = false
  172. end
  173. end
  174. print("Lockdown " .. (enable and "Enabled!" or "Disabled!"))
  175. end
  176.  
  177. local function globalAnnouncement(message)
  178. for _, p in ipairs(Players:GetPlayers()) do
  179. p:Kick(message)
  180. end
  181. end
  182.  
  183. local function spawnNPC(modelName, position)
  184. local npc = ReplicatedStorage:FindFirstChild(modelName):Clone()
  185. npc.Parent = Workspace
  186. npc:SetPrimaryPartCFrame(CFrame.new(position))
  187. print("Spawned NPC: " .. modelName)
  188. end
  189.  
  190. -- **Create GUI Programmatically**
  191. local gui = Instance.new("ScreenGui")
  192. gui.Parent = player:WaitForChild("PlayerGui")
  193.  
  194. local frame = Instance.new("Frame")
  195. frame.Size = UDim2.new(0, 300, 0, 500)
  196. frame.Position = UDim2.new(0, 10, 0, 10)
  197. frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  198. frame.Parent = gui
  199.  
  200. local UIListLayout = Instance.new("UIListLayout")
  201. UIListLayout.Parent = frame
  202. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  203. UIListLayout.Padding = UDim.new(0, 5)
  204.  
  205. -- **Define Button Creation Function**
  206. local function createButton(name, func)
  207. local button = Instance.new("TextButton")
  208. button.Size = UDim2.new(1, 0, 0, 40)
  209. button.Text = name
  210. button.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  211. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  212. button.Font = Enum.Font.SourceSans
  213. button.TextSize = 20
  214. button.Parent = frame
  215. button.MouseButton1Click:Connect(func)
  216. end
  217.  
  218. -- **Pack 1: Basic Utility**
  219. createButton("God Mode", activateGodMode)
  220. createButton("Speed Boost x2", function() speedBoost(2) end)
  221. createButton("Fly Mode", function() toggleFly(true) end)
  222. createButton("Teleport", function() teleportToPosition(Vector3.new(0, 50, 0)) end)
  223.  
  224. -- **Pack 2: Advanced**
  225. createButton("Gravity Low", function() adjustGravity(50) end)
  226. createButton("Invisibility", function() toggleInvisibility(true) end)
  227. createButton("Add Force Field", addForceField)
  228. createButton("Clone Character", cloneCharacter)
  229.  
  230. -- **Pack 3: Fun**
  231. createButton("Enable ESP", enableESP)
  232. createButton("Enable Aimbot", enableAimbot)
  233. createButton("Explosion", function() triggerExplosion(Vector3.new(0, 0, 0), 10) end)
  234. createButton("Resize Player", function() resizeCharacter(2) end)
  235.  
  236. -- **Pack 4: Environmental/Global**
  237. createButton("Rain Weather", function() setWeather("rain") end)
  238. createButton("Sunny Weather", function() setWeather("sunny") end)
  239. createButton("Lockdown", function() toggleLockdown(true) end)
  240. createButton("Global Message", function() globalAnnouncement("Hello, players!") end)
  241. createButton("Spawn NPC", function() spawnNPC("DummyNPC", Vector3.new(0, 0, 0)) end)
  242.  
  243. print("GUI Created!")
  244.  
  245.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement