Advertisement
debanhiescobar171

piggy

Dec 20th, 2024
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.03 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 MENU V2024", "BloodTheme")
  3.  
  4. -- Variables
  5. local Players = game:GetService("Players")
  6. local LocalPlayer = Players.LocalPlayer
  7. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  8. local Humanoid = Character:WaitForChild("Humanoid")
  9. local Root = Character:WaitForChild("HumanoidRootPart")
  10.  
  11. -- Main Tab
  12. local Main = Window:NewTab("Principal")
  13. local MainSection = Main:NewSection("Funciones Principales")
  14.  
  15. -- God Mode
  16. MainSection:NewToggle("God Mode", "Activar/Desactivar Invencibilidad", function(state)
  17.     if state then
  18.         local function godMode()
  19.             if Character and Character:FindFirstChild("Humanoid") then
  20.                 Character.Humanoid.MaxHealth = math.huge
  21.                 Character.Humanoid.Health = math.huge
  22.             end
  23.         end
  24.         godMode()
  25.         LocalPlayer.CharacterAdded:Connect(godMode)
  26.     end
  27. end)
  28.  
  29. -- No Piggy Damage
  30. MainSection:NewToggle("Inmunidad Piggy", "No recibir daño de Piggy", function(state)
  31.     if state then
  32.         local function noPiggyDamage()
  33.             for _, v in pairs(workspace:GetDescendants()) do
  34.                 if v.Name == "Piggy" then
  35.                     if v:FindFirstChild("TouchInterest") then
  36.                         v.TouchInterest:Destroy()
  37.                     end
  38.                 end
  39.             end
  40.         end
  41.         noPiggyDamage()
  42.         workspace.DescendantAdded:Connect(function(desc)
  43.             if desc.Name == "Piggy" then
  44.                 wait(0.1)
  45.                 noPiggyDamage()
  46.             end
  47.         end)
  48.     end
  49. end)
  50.  
  51. -- ESP Tab
  52. local ESP = Window:NewTab("ESP")
  53. local ESPSection = ESP:NewSection("Visualización")
  54.  
  55. -- ESP Players
  56. ESPSection:NewToggle("ESP Jugadores", "Ver jugadores a través de paredes", function(state)
  57.     if state then
  58.         local function createESP(player)
  59.             local highlight = Instance.new("Highlight")
  60.             highlight.Name = "ESP"
  61.             highlight.FillColor = Color3.fromRGB(255, 0, 0)
  62.             highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  63.             highlight.FillTransparency = 0.5
  64.             highlight.OutlineTransparency = 0
  65.             highlight.Parent = player.Character
  66.         end
  67.        
  68.         for _, player in pairs(Players:GetPlayers()) do
  69.             if player ~= LocalPlayer and player.Character then
  70.                 createESP(player)
  71.             end
  72.         end
  73.        
  74.         Players.PlayerAdded:Connect(function(player)
  75.             player.CharacterAdded:Connect(function()
  76.                 createESP(player)
  77.             end)
  78.         end)
  79.     else
  80.         for _, player in pairs(Players:GetPlayers()) do
  81.             if player.Character then
  82.                 local esp = player.Character:FindFirstChild("ESP")
  83.                 if esp then esp:Destroy() end
  84.             end
  85.         end
  86.     end
  87. end)
  88.  
  89. -- ESP Items
  90. ESPSection:NewToggle("ESP Objetos", "Ver objetos importantes", function(state)
  91.     if state then
  92.         local function createItemESP(item)
  93.             local highlight = Instance.new("Highlight")
  94.             highlight.Name = "ItemESP"
  95.             highlight.FillColor = Color3.fromRGB(0, 255, 0)
  96.             highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  97.             highlight.FillTransparency = 0.3
  98.             highlight.Parent = item
  99.         end
  100.        
  101.         for _, v in pairs(workspace:GetDescendants()) do
  102.             if v:IsA("Tool") or v.Name:match("Key") or v.Name:match("Gear") then
  103.                 createItemESP(v)
  104.             end
  105.         end
  106.        
  107.         workspace.DescendantAdded:Connect(function(desc)
  108.             if desc:IsA("Tool") or desc.Name:match("Key") or desc.Name:match("Gear") then
  109.                 wait(0.1)
  110.                 createItemESP(desc)
  111.             end
  112.         end)
  113.     else
  114.         for _, v in pairs(workspace:GetDescendants()) do
  115.             if v:FindFirstChild("ItemESP") then
  116.                 v.ItemESP:Destroy()
  117.             end
  118.         end
  119.     end
  120. end)
  121.  
  122. -- Player Tab
  123. local Player = Window:NewTab("Jugador")
  124. local PlayerSection = Player:NewSection("Modificaciones")
  125.  
  126. -- Noclip
  127. PlayerSection:NewToggle("Noclip", "Atravesar paredes", function(state)
  128.     if state then
  129.         local function noclip()
  130.             for _, v in pairs(Character:GetDescendants()) do
  131.                 if v:IsA("BasePart") then
  132.                     v.CanCollide = false
  133.                 end
  134.             end
  135.         end
  136.        
  137.         game:GetService("RunService").Stepped:Connect(function()
  138.             if Character then
  139.                 noclip()
  140.             end
  141.         end)
  142.     else
  143.         for _, v in pairs(Character:GetDescendants()) do
  144.             if v:IsA("BasePart") then
  145.                 v.CanCollide = true
  146.             end
  147.         end
  148.     end
  149. end)
  150.  
  151. -- No Fall Damage
  152. PlayerSection:NewToggle("No Daño por Caída", "Desactivar daño por caída", function(state)
  153.     if state then
  154.         local function noFallDamage()
  155.             if Character and Character:FindFirstChild("FallDamageScript") then
  156.                 Character.FallDamageScript:Destroy()
  157.             end
  158.         end
  159.         noFallDamage()
  160.         LocalPlayer.CharacterAdded:Connect(noFallDamage)
  161.     end
  162. end)
  163.  
  164. -- Minimizar GUI
  165. local MinimizeButton = Instance.new("TextButton")
  166. MinimizeButton.Position = UDim2.new(1, -25, 0, 0)
  167. MinimizeButton.Size = UDim2.new(0, 25, 0, 25)
  168. MinimizeButton.Text = "-"
  169. MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  170. MinimizeButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  171. MinimizeButton.Parent = Window.Frame
  172.  
  173. local minimized = false
  174. MinimizeButton.MouseButton1Click:Connect(function()
  175.     minimized = not minimized
  176.     if minimized then
  177.         Window.Frame.Size = UDim2.new(0, Window.Frame.Size.X.Offset, 0, 30)
  178.         MinimizeButton.Text = "+"
  179.     else
  180.         Window.Frame.Size = UDim2.new(0, Window.Frame.Size.X.Offset, 0, 400)
  181.         MinimizeButton.Text = "-"
  182.     end
  183. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement