Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- local frame = Instance.new("Frame", screenGui)
- frame.Size = UDim2.new(0, 300, 0, 500)
- frame.Position = UDim2.new(0, 10, 0, 10)
- frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- local panelVisible = true
- local function createButton(text, position, callback)
- local button = Instance.new("TextButton", frame)
- button.Size = UDim2.new(0, 250, 0, 40)
- button.Position = position
- button.Text = text
- button.BackgroundColor3 = Color3.new(0.3, 0.3, 0.8)
- button.TextColor3 = Color3.new(1, 1, 1)
- button.Font = Enum.Font.SourceSansBold
- button.TextSize = 18
- local buttonCorner = Instance.new("UICorner", button)
- buttonCorner.CornerRadius = UDim.new(0, 5)
- button.MouseButton1Click:Connect(callback)
- end
- local dragActive, dragStart, startPos
- frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragActive, dragStart, startPos = true, input.Position, frame.Position
- end
- end)
- frame.InputChanged:Connect(function(input)
- if dragActive and input.UserInputType == Enum.UserInputType.MouseMovement then
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end)
- frame.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then dragActive = false end
- end)
- local boxesEnabled, godModeEnabled, noClipEnabled, speedBoostEnabled, flyModeEnabled, infiniteAmmoEnabled = false, false, false, false, false, false
- local function toggleGodMode()
- godModeEnabled = not godModeEnabled
- local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
- if godModeEnabled then
- spawn(function()
- while godModeEnabled do
- humanoid.Health = 100
- wait(0.1)
- end
- end)
- end
- end
- local function toggleBoxes()
- boxesEnabled = not boxesEnabled
- for _, plr in pairs(game.Players:GetPlayers()) do
- if plr ~= player and plr.Team ~= player.Team and plr.Character and plr.Character:FindFirstChild("Head") then
- local head = plr.Character.Head
- local existingBox = head:FindFirstChild("NameBox")
- if boxesEnabled then
- if not existingBox then
- local billboardGui = Instance.new("BillboardGui", head)
- billboardGui.Size = UDim2.new(4, 0, 1, 0)
- billboardGui.Adornee = head
- billboardGui.AlwaysOnTop = true
- local frame = Instance.new("Frame", billboardGui)
- frame.Size = UDim2.new(1, 0, 1, 0)
- frame.BackgroundColor3 = Color3.new(1, 0, 0)
- frame.BackgroundTransparency = 0.5
- frame.BorderSizePixel = 2
- end
- elseif existingBox then
- existingBox:Destroy()
- end
- end
- end
- spawn(function()
- while boxesEnabled do
- local closestPlayer, shortestDistance = nil, math.huge
- for _, plr in pairs(game.Players:GetPlayers()) do
- if plr ~= player and plr.Team ~= player.Team and plr.Character and plr.Character:FindFirstChild("Head") then
- local head = plr.Character.Head
- local screenPoint, onScreen = workspace.CurrentCamera:WorldToScreenPoint(head.Position)
- if onScreen then
- local distance = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(screenPoint.X, screenPoint.Y)).Magnitude
- if distance < shortestDistance then
- shortestDistance, closestPlayer = distance, plr
- end
- end
- end
- end
- if closestPlayer and closestPlayer.Character and closestPlayer.Character:FindFirstChild("Head") then
- workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position, closestPlayer.Character.Head.Position)
- end
- wait()
- end
- end)
- end
- local function toggleNoClip()
- noClipEnabled = not noClipEnabled
- spawn(function()
- while noClipEnabled do
- local character = player.Character
- if character then
- for _, part in pairs(character:GetDescendants()) do
- if part:IsA("BasePart") then part.CanCollide = false end
- end
- end
- wait()
- end
- end)
- end
- local function toggleSpeedBoost()
- speedBoostEnabled = not speedBoostEnabled
- local character = player.Character
- if character then
- local humanoid = character:FindFirstChild("Humanoid")
- if humanoid then
- humanoid.WalkSpeed = speedBoostEnabled and 100 or 16
- end
- end
- end
- local function toggleFlyMode()
- flyModeEnabled = not flyModeEnabled
- local character = player.Character
- if character then
- local humanoid = character:FindFirstChild("Humanoid")
- local bodyVelocity = character:FindFirstChild("BodyVelocity")
- if flyModeEnabled then
- if humanoid then
- humanoid.PlatformStand = true
- end
- if not bodyVelocity then
- bodyVelocity = Instance.new("BodyVelocity", character)
- bodyVelocity.MaxForce = Vector3.new(100000, 100000, 100000)
- bodyVelocity.Velocity = Vector3.new(0, 50, 0)
- end
- else
- if humanoid then
- humanoid.PlatformStand = false
- end
- if bodyVelocity then
- bodyVelocity:Destroy()
- end
- end
- end
- end
- local function toggleInfiniteAmmo()
- infiniteAmmoEnabled = not infiniteAmmoEnabled
- local character = player.Character
- if character then
- local backpack = player:FindFirstChild("Backpack")
- for _, tool in pairs(backpack:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Ammo = infiniteAmmoEnabled and math.huge or 30 -- Change max ammo value as necessary
- end
- end
- end
- end
- local function togglePanelVisibility()
- panelVisible = not panelVisible
- frame.Visible = panelVisible
- end
- createButton("Enable God Mode", UDim2.new(0, 25, 0, 20), toggleGodMode)
- createButton("Enable Boxes", UDim2.new(0, 25, 0, 70), toggleBoxes)
- createButton("Enable NoClip", UDim2.new(0, 25, 0, 120), toggleNoClip)
- createButton("Enable Speed Boost", UDim2.new(0, 25, 0, 170), toggleSpeedBoost)
- createButton("Enable Fly Mode", UDim2.new(0, 25, 0, 220), toggleFlyMode)
- createButton("Enable Infinite Ammo", UDim2.new(0, 25, 0, 270), toggleInfiniteAmmo)
- createButton("Open/Close Panel", UDim2.new(0, 25, 0, 320), togglePanelVisibility)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement