Advertisement
debanhiescobar171

Piggy Ultimate Script

Nov 26th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.92 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3. local LocalPlayer = Players.LocalPlayer
  4. local RunService = game:GetService("RunService")
  5.  
  6. -- Mejorado God Mode con múltiples capas de protección
  7. local function enhancedGodMode()
  8.     local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  9.     local humanoid = character:WaitForChild("Humanoid")
  10.    
  11.     -- Protección principal
  12.     humanoid.HealthChanged:Connect(function(health)
  13.         if health < humanoid.MaxHealth then
  14.             humanoid.Health = humanoid.MaxHealth
  15.         end
  16.     end)
  17.    
  18.     -- Bloqueo de eventos de daño
  19.     for _, v in pairs(ReplicatedStorage:GetDescendants()) do
  20.         if v:IsA("RemoteEvent") then
  21.             if v.Name:match("Damage") or v.Name:match("Kill") or v.Name:match("Hit") then
  22.                 local old
  23.                 old = hookfunction(v.FireServer, function(self, ...)
  24.                     local args = {...}
  25.                     if self == v then
  26.                         return nil
  27.                     end
  28.                     return old(self, ...)
  29.                 end)
  30.             end
  31.         end
  32.     end
  33.    
  34.     -- Protección adicional
  35.     RunService.Heartbeat:Connect(function()
  36.         if character and humanoid then
  37.             humanoid.Health = humanoid.MaxHealth
  38.         end
  39.     end)
  40. end
  41.  
  42. -- Sistema mejorado de forzado de mapas
  43. local function enhancedMapForcer()
  44.     local VotingRemote = ReplicatedStorage:WaitForChild("RemoteEvents"):WaitForChild("Vote")
  45.     local MapSelectionRemote = ReplicatedStorage:WaitForChild("RemoteEvents"):WaitForChild("MapSelection")
  46.    
  47.     -- Bypass de votación
  48.     local function forceMap(mapName)
  49.         for i = 1, 150 do
  50.             VotingRemote:FireServer(mapName)
  51.         end
  52.         MapSelectionRemote:FireServer(mapName)
  53.     end
  54.    
  55.     -- Hook al sistema de votación
  56.     for _, remote in pairs(ReplicatedStorage:GetDescendants()) do
  57.         if remote:IsA("RemoteEvent") and remote.Name:match("Vote") then
  58.             local oldVote
  59.             oldVote = hookfunction(remote.FireServer, function(self, ...)
  60.                 local args = {...}
  61.                 if self == remote then
  62.                     forceMap(args[1])
  63.                     return
  64.                 end
  65.                 return oldVote(self, ...)
  66.             end)
  67.         end
  68.     end
  69. end
  70.  
  71. -- Anti-Kick y Anti-Detección
  72. local function setupAntiDetection()
  73.     local namecall
  74.     namecall = hookmetamethod(game, "__namecall", function(self, ...)
  75.         local method = getnamecallmethod()
  76.         if method == "Kick" or method == "kick" then
  77.             return nil
  78.         end
  79.         return namecall(self, ...)
  80.     end)
  81. end
  82.  
  83. -- Inicialización
  84. local function init()
  85.     enhancedGodMode()
  86.     enhancedMapForcer()
  87.     setupAntiDetection()
  88.    
  89.     LocalPlayer.CharacterAdded:Connect(enhancedGodMode)
  90. end
  91.  
  92. init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement