Advertisement
debanhiescobar171

piggy script 2024

Dec 20th, 2024
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.78 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  2. local Window = Library.CreateLib("Piggy Hack | Temporada 7", "DarkTheme")
  3.  
  4. -- Main Tab
  5. local Main = Window:NewTab("Principal")
  6. local MainSection = Main:NewSection("Funciones Principales")
  7.  
  8. -- Variables
  9. local Players = game:GetService("Players")
  10. local LocalPlayer = Players.LocalPlayer
  11. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  12. local Humanoid = Character:WaitForChild("Humanoid")
  13. local RunService = game:GetService("RunService")
  14. local UserInputService = game:GetService("UserInputService")
  15.  
  16. -- God Mode
  17. MainSection:NewToggle("God Mode", "Activar/Desactivar Invencibilidad", function(state)
  18.     if state then
  19.         local function godMode()
  20.             if Character and Character:FindFirstChild("Humanoid") then
  21.                 Character.Humanoid.MaxHealth = math.huge
  22.                 Character.Humanoid.Health = math.huge
  23.                 Character:WaitForChild("Humanoid").HealthChanged:Connect(function(health)
  24.                     if health < math.huge then
  25.                         Character.Humanoid.Health = math.huge
  26.                     end
  27.                 end)
  28.             end
  29.         end
  30.         godMode()
  31.         LocalPlayer.CharacterAdded:Connect(godMode)
  32.     end
  33. end)
  34.  
  35. -- ESP Players
  36. MainSection:NewToggle("ESP Jugadores", "Ver jugadores a través de paredes", function(state)
  37.     local function createESP(player)
  38.         local highlight = Instance.new("Highlight")
  39.         highlight.Name = "ESP"
  40.         highlight.FillColor = Color3.fromRGB(255, 0, 0)
  41.         highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  42.         highlight.FillTransparency = 0.5
  43.         highlight.OutlineTransparency = 0
  44.  
  45.         local function updateESP()
  46.             if player.Character then
  47.                 highlight.Parent = player.Character
  48.             end
  49.         end
  50.  
  51.         updateESP()
  52.         player.CharacterAdded:Connect(updateESP)
  53.     end
  54.  
  55.     if state then
  56.         for _, player in ipairs(Players:GetPlayers()) do
  57.             if player ~= LocalPlayer then
  58.                 createESP(player)
  59.             end
  60.         end
  61.         Players.PlayerAdded:Connect(createESP)
  62.     else
  63.         for _, player in ipairs(Players:GetPlayers()) do
  64.             if player.Character then
  65.                 local esp = player.Character:FindFirstChild("ESP")
  66.                 if esp then esp:Destroy() end
  67.             end
  68.         end
  69.     end
  70. end)
  71.  
  72. -- ESP Items
  73. MainSection:NewToggle("ESP Objetos", "Ver objetos importantes", function(state)
  74.     local function createItemESP()
  75.         local items = workspace:GetDescendants()
  76.         for _, item in ipairs(items) do
  77.             if item:IsA("Tool") or item:IsA("Model") and item:FindFirstChild("Handle") then
  78.                 local highlight = Instance.new("Highlight")
  79.                 highlight.Name = "ItemESP"
  80.                 highlight.FillColor = Color3.fromRGB(0, 255, 0)
  81.                 highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  82.                 highlight.FillTransparency = 0.5
  83.                 highlight.Parent = item
  84.             end
  85.         end
  86.     end
  87.  
  88.     if state then
  89.         createItemESP()
  90.         workspace.DescendantAdded:Connect(function(item)
  91.             if item:IsA("Tool") or item:IsA("Model") and item:FindFirstChild("Handle") then
  92.                 local highlight = Instance.new("Highlight")
  93.                 highlight.Name = "ItemESP"
  94.                 highlight.FillColor = Color3.fromRGB(0, 255, 0)
  95.                 highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  96.                 highlight.FillTransparency = 0.5
  97.                 highlight.Parent = item
  98.             end
  99.         end)
  100.     else
  101.         for _, v in ipairs(workspace:GetDescendants()) do
  102.             if v:FindFirstChild("ItemESP") then
  103.                 v.ItemESP:Destroy()
  104.             end
  105.         end
  106.     end
  107. end)
  108.  
  109. -- Noclip
  110. MainSection:NewToggle("Noclip", "Atravesar paredes", function(state)
  111.     local noclip = false
  112.     local function updateNoclip()
  113.         if Character then
  114.             for _, part in pairs(Character:GetDescendants()) do
  115.                 if part:IsA("BasePart") then
  116.                     part.CanCollide = not noclip
  117.                 end
  118.             end
  119.         end
  120.     end
  121.    
  122.     if state then
  123.         noclip = true
  124.         RunService.Stepped:Connect(function()
  125.             if noclip then
  126.                 updateNoclip()
  127.             end
  128.         end)
  129.     else
  130.         noclip = false
  131.         updateNoclip()
  132.     end
  133. end)
  134.  
  135. -- Anti Fall Damage
  136. MainSection:NewToggle("Anti Caída", "No morir por caídas", function(state)
  137.     if state then
  138.         local function preventFallDamage()
  139.             if Character and Character:FindFirstChild("FallDamage") then
  140.                 Character.FallDamage:Destroy()
  141.             end
  142.         end
  143.         preventFallDamage()
  144.         LocalPlayer.CharacterAdded:Connect(preventFallDamage)
  145.     end
  146. end)
  147.  
  148. -- Anti Piggy
  149. MainSection:NewToggle("Anti Piggy", "Inmunidad contra Piggy", function(state)
  150.     if state then
  151.         local function antiPiggy()
  152.             local function protectFromPiggy(descendant)
  153.                 if descendant.Name == "Piggy" or descendant.Name == "Bot" then
  154.                     local connection
  155.                     connection = descendant.Touched:Connect(function(hit)
  156.                         if hit:IsDescendantOf(Character) then
  157.                             return false
  158.                         end
  159.                     end)
  160.                 end
  161.             end
  162.            
  163.             for _, descendant in ipairs(workspace:GetDescendants()) do
  164.                 protectFromPiggy(descendant)
  165.             end
  166.             workspace.DescendantAdded:Connect(protectFromPiggy)
  167.         end
  168.         antiPiggy()
  169.     end
  170. end)
  171.  
  172. -- Minimizar GUI
  173. local MinimizeButton = Instance.new("TextButton")
  174. MinimizeButton.Size = UDim2.new(0, 20, 0, 20)
  175. MinimizeButton.Position = UDim2.new(1, -25, 0, 5)
  176. MinimizeButton.Text = "-"
  177. MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  178. MinimizeButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  179. MinimizeButton.Parent = Window.Main
  180.  
  181. local minimized = false
  182. MinimizeButton.MouseButton1Click:Connect(function()
  183.     minimized = not minimized
  184.     if minimized then
  185.         Window.Main.Visible = false
  186.         MinimizeButton.Text = "+"
  187.     else
  188.         Window.Main.Visible = true
  189.         MinimizeButton.Text = "-"
  190.     end
  191. end)
  192.  
  193. -- Anti Ban/Kick
  194. local mt = getrawmetatable(game)
  195. local old = mt.__namecall
  196. setreadonly(mt, false)
  197. mt.__namecall = newcclosure(function(self, ...)
  198.     local args = {...}
  199.     local method = getnamecallmethod()
  200.     if method == "Kick" or method == "kick" then
  201.         return nil
  202.     end
  203.     return old(self, ...)
  204. end)
  205. setreadonly(mt, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement