Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local RunService = game:GetService("RunService")
- local Workspace = game:GetService("Workspace")
- local Lighting = game:GetService("Lighting")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- -- **Functions for Each Command**
- -- Pack 1: Basic Utility Commands
- local function activateGodMode()
- if character:FindFirstChild("Humanoid") then
- character.Humanoid.MaxHealth = math.huge
- character.Humanoid.Health = math.huge
- print("God Mode Activated!")
- end
- end
- local function speedBoost(multiplier)
- if character:FindFirstChild("Humanoid") then
- character.Humanoid.WalkSpeed = 16 * multiplier
- print("Speed Boost Applied: " .. multiplier .. "x")
- end
- end
- local function toggleFly(enable)
- if enable then
- local fly = Instance.new("BodyVelocity")
- fly.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- fly.Velocity = Vector3.zero
- fly.Name = "Fly"
- fly.Parent = character:FindFirstChild("HumanoidRootPart")
- print("Fly Mode Activated!")
- else
- local fly = character:FindFirstChild("HumanoidRootPart"):FindFirstChild("Fly")
- if fly then fly:Destroy() end
- print("Fly Mode Deactivated!")
- end
- end
- local function teleportToPosition(position)
- if character:FindFirstChild("HumanoidRootPart") then
- character.HumanoidRootPart.CFrame = CFrame.new(position)
- print("Teleported to: " .. tostring(position))
- end
- end
- -- Pack 2: Advanced Commands
- local function adjustGravity(value)
- Workspace.Gravity = value
- print("Gravity Set To: " .. value)
- end
- local function toggleInvisibility(enable)
- for _, part in ipairs(character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.Transparency = enable and 1 or 0
- part.CanCollide = not enable
- end
- end
- print("Invisibility " .. (enable and "Enabled!" or "Disabled!"))
- end
- local function addForceField()
- local forceField = Instance.new("ForceField", character)
- print("Force Field Added!")
- end
- local function cloneCharacter()
- local clone = character:Clone()
- clone.Parent = Workspace
- clone:SetPrimaryPartCFrame(character.HumanoidRootPart.CFrame + Vector3.new(5, 0, 0))
- print("Character Cloned!")
- end
- local function controlTime(speed)
- Lighting.ClockTime = speed
- print("Time speed set to: " .. speed)
- end
- -- Pack 3: Fun Commands
- local function enableESP()
- for _, target in ipairs(Players:GetPlayers()) do
- if target ~= player and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
- local highlight = Instance.new("Highlight")
- highlight.Adornee = target.Character
- highlight.FillColor = Color3.new(1, 0, 0) -- Red for enemy players
- highlight.OutlineColor = Color3.new(1, 1, 1) -- White outline
- highlight.Parent = target.Character
- end
- end
- print("ESP Enabled!")
- end
- local function disableESP()
- for _, target in ipairs(Players:GetPlayers()) do
- if target.Character then
- for _, child in ipairs(target.Character:GetChildren()) do
- if child:IsA("Highlight") then
- child:Destroy()
- end
- end
- end
- end
- print("ESP Disabled!")
- end
- local function enableAimbot()
- RunService.RenderStepped:Connect(function()
- local closestTarget = nil
- local closestDistance = math.huge
- for _, target in ipairs(Players:GetPlayers()) do
- if target ~= player and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
- local targetPart = target.Character:FindFirstChild("HumanoidRootPart")
- local distance = (player.Character.HumanoidRootPart.Position - targetPart.Position).Magnitude
- if distance < closestDistance then
- closestDistance = distance
- closestTarget = targetPart
- end
- end
- end
- if closestTarget then
- local camera = Workspace.CurrentCamera
- camera.CFrame = CFrame.new(camera.CFrame.Position, closestTarget.Position)
- end
- end)
- print("Aimbot Enabled!")
- end
- local function triggerExplosion(position, radius)
- local explosion = Instance.new("Explosion")
- explosion.Position = position
- explosion.BlastRadius = radius
- explosion.Parent = Workspace
- print("Explosion Triggered at: " .. tostring(position))
- end
- local function resizeCharacter(scale)
- for _, part in ipairs(character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.Size = part.Size * scale
- end
- end
- print("Character Resized by Scale: " .. scale)
- end
- -- Pack 4: Environmental/Global Commands
- local function setWeather(weather)
- if weather == "rain" then
- Lighting.FogEnd = 200
- Lighting.Brightness = 0.2
- elseif weather == "sunny" then
- Lighting.FogEnd = 100000
- Lighting.Brightness = 2
- elseif weather == "fog" then
- Lighting.FogEnd = 50
- Lighting.Brightness = 0.5
- end
- print("Weather Set to: " .. weather)
- end
- local function toggleLockdown(enable)
- for _, p in ipairs(Players:GetPlayers()) do
- if enable then
- p.Character.HumanoidRootPart.Anchored = true
- else
- p.Character.HumanoidRootPart.Anchored = false
- end
- end
- print("Lockdown " .. (enable and "Enabled!" or "Disabled!"))
- end
- local function globalAnnouncement(message)
- for _, p in ipairs(Players:GetPlayers()) do
- p:Kick(message)
- end
- end
- local function spawnNPC(modelName, position)
- local npc = ReplicatedStorage:FindFirstChild(modelName):Clone()
- npc.Parent = Workspace
- npc:SetPrimaryPartCFrame(CFrame.new(position))
- print("Spawned NPC: " .. modelName)
- end
- -- **Create GUI Programmatically**
- local gui = Instance.new("ScreenGui")
- gui.Parent = player:WaitForChild("PlayerGui")
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 300, 0, 500)
- frame.Position = UDim2.new(0, 10, 0, 10)
- frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- frame.Parent = gui
- local UIListLayout = Instance.new("UIListLayout")
- UIListLayout.Parent = frame
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 5)
- -- **Define Button Creation Function**
- local function createButton(name, func)
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(1, 0, 0, 40)
- button.Text = name
- button.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Font = Enum.Font.SourceSans
- button.TextSize = 20
- button.Parent = frame
- button.MouseButton1Click:Connect(func)
- end
- -- **Pack 1: Basic Utility**
- createButton("God Mode", activateGodMode)
- createButton("Speed Boost x2", function() speedBoost(2) end)
- createButton("Fly Mode", function() toggleFly(true) end)
- createButton("Teleport", function() teleportToPosition(Vector3.new(0, 50, 0)) end)
- -- **Pack 2: Advanced**
- createButton("Gravity Low", function() adjustGravity(50) end)
- createButton("Invisibility", function() toggleInvisibility(true) end)
- createButton("Add Force Field", addForceField)
- createButton("Clone Character", cloneCharacter)
- -- **Pack 3: Fun**
- createButton("Enable ESP", enableESP)
- createButton("Enable Aimbot", enableAimbot)
- createButton("Explosion", function() triggerExplosion(Vector3.new(0, 0, 0), 10) end)
- createButton("Resize Player", function() resizeCharacter(2) end)
- -- **Pack 4: Environmental/Global**
- createButton("Rain Weather", function() setWeather("rain") end)
- createButton("Sunny Weather", function() setWeather("sunny") end)
- createButton("Lockdown", function() toggleLockdown(true) end)
- createButton("Global Message", function() globalAnnouncement("Hello, players!") end)
- createButton("Spawn NPC", function() spawnNPC("DummyNPC", Vector3.new(0, 0, 0)) end)
- print("GUI Created!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement