Advertisement
Astyll

Big Paintball 2 Hack

Mar 16th, 2025
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.78 KB | Gaming | 0 0
  1. Keybind = "F"
  2. local SessionID = string.gsub(tostring(math.random()):sub(3), "%d", function(c)
  3.     return string.char(96 + math.random(1, 26))
  4. end)
  5.  
  6. local Enabled = false
  7. local UserInputService = game:GetService("UserInputService")
  8. local Players = game:GetService("Players")
  9. local LocalPlayer = Players.LocalPlayer
  10. local Workspace = game:GetService("Workspace")
  11.  
  12. -- Error logging and protection
  13. local function safeExecute(func)
  14.     pcall(func)
  15. end
  16.  
  17. -- Teleport enemies and players to fixed positions
  18. local function teleportEntities(cframe, team)
  19.     local spawnPosition = cframe * CFrame.new(0, 0, -15)
  20.  
  21.     -- Process entities
  22.     for _, entity in ipairs(Workspace.__THINGS.__ENTITIES:GetChildren()) do
  23.         if entity:FindFirstChild("HumanoidRootPart") then
  24.             local humanoidRootPart = entity.HumanoidRootPart
  25.             humanoidRootPart.CanCollide = false
  26.             humanoidRootPart.Anchored = true
  27.             humanoidRootPart.CFrame = spawnPosition
  28.         elseif entity:FindFirstChild("Hitbox") then
  29.             local directory = entity:GetAttribute("Directory")
  30.             if not (directory == "White" and entity:GetAttribute("OwnerUID") == LocalPlayer.UserId) and
  31.                (not team or directory ~= team.Name) then
  32.                 entity.Hitbox.CanCollide = false
  33.                 entity.Hitbox.Anchored = true
  34.                 entity.Hitbox.CFrame = spawnPosition * CFrame.new(math.random(-5, 5), 0, math.random(-5, 5))
  35.             end
  36.         end
  37.     end
  38.  
  39.     -- Process players
  40.     for _, player in ipairs(Players:GetPlayers()) do
  41.         if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  42.             if not team or team.Name ~= player.Team.Name then
  43.                 if not player.Character:FindFirstChild("ForceField") then
  44.                     local humanoidRootPart = player.Character.HumanoidRootPart
  45.                     humanoidRootPart.CanCollide = false
  46.                     humanoidRootPart.Anchored = true
  47.                     humanoidRootPart.CFrame = spawnPosition * CFrame.new(math.random(-5, 5), 0, math.random(-5, 5))
  48.                 end
  49.             end
  50.         end
  51.     end
  52. end
  53.  
  54. -- Input detection for toggling
  55. UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  56.     if input.KeyCode == Enum.KeyCode[Keybind] and not gameProcessedEvent then
  57.         Enabled = not Enabled
  58.     end
  59. end)
  60.  
  61. -- Main loop
  62. while wait(0.1) do
  63.     safeExecute(function()
  64.         if not Enabled or not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  65.             return
  66.         end
  67.  
  68.         local cframe = LocalPlayer.Character.HumanoidRootPart.CFrame
  69.         local team = LocalPlayer.Team
  70.         teleportEntities(cframe, team)
  71.     end)
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement