Advertisement
debanhiescobar171

Piggy Ultimate Script

Nov 26th, 2024
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.02 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 Script", "Ocean")
  3.  
  4. -- Variables Globales
  5. local Players = game:GetService("Players")
  6. local LocalPlayer = Players.LocalPlayer
  7. local RunService = game:GetService("RunService")
  8. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  9.  
  10. -- Función de minimizar mejorada
  11. local function createMinimizeButton()
  12.     local CoreGui = game:GetService("CoreGui")
  13.     local MainGui = CoreGui:WaitForChild("Piggy Script")
  14.    
  15.     local MinimizeBtn = Instance.new("TextButton")
  16.     MinimizeBtn.Name = "MinimizeButton"
  17.     MinimizeBtn.Size = UDim2.new(0, 30, 0, 30)
  18.     MinimizeBtn.Position = UDim2.new(1, -35, 0, 5)
  19.     MinimizeBtn.Text = "-"
  20.     MinimizeBtn.TextSize = 20
  21.     MinimizeBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  22.     MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  23.     MinimizeBtn.Parent = MainGui
  24.    
  25.     local minimized = false
  26.     MinimizeBtn.MouseButton1Click:Connect(function()
  27.         minimized = not minimized
  28.         MainGui.Size = minimized and UDim2.new(0, MainGui.AbsoluteSize.X, 0, 35) or UDim2.new(0, MainGui.AbsoluteSize.X, 0, 400)
  29.         MinimizeBtn.Text = minimized and "+" or "-"
  30.     end)
  31. end
  32.  
  33. spawn(createMinimizeButton)
  34.  
  35. -- Main Tab
  36. local Main = Window:NewTab("Main")
  37. local MainSection = Main:NewSection("Principal")
  38.  
  39. -- God Mode mejorado para Piggy
  40. MainSection:NewToggle("God Mode", "Invencibilidad total", function(state)
  41.     if state then
  42.         spawn(function()
  43.             while state do
  44.                 pcall(function()
  45.                     if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  46.                         LocalPlayer.Character.Humanoid.MaxHealth = math.huge
  47.                         LocalPlayer.Character.Humanoid.Health = math.huge
  48.                        
  49.                         -- Protección adicional para Piggy
  50.                         for _, v in pairs(LocalPlayer.Character:GetChildren()) do
  51.                             if v:IsA("BasePart") then
  52.                                 v.CanCollide = true
  53.                                 v.CanTouch = false
  54.                             end
  55.                         end
  56.                        
  57.                         -- Prevenir daño de Piggy
  58.                         if LocalPlayer.Character:FindFirstChild("CollisionPart") then
  59.                             LocalPlayer.Character.CollisionPart:Destroy()
  60.                         end
  61.                     end
  62.                 end)
  63.                 wait(0.1)
  64.             end
  65.         end)
  66.     end
  67. end)
  68.  
  69. -- Maps Tab con forzador mejorado
  70. local Maps = Window:NewTab("Maps")
  71. local MapsSection = Maps:NewSection("Forzador de Mapas")
  72.  
  73. local mapList = {
  74.     "House", "Station", "Gallery", "Forest", "School",
  75.     "Hospital", "Metro", "City", "Factory", "Mall",
  76.     "Carnival", "Outpost"
  77. }
  78.  
  79. local function forceMap(mapName)
  80.     local methods = {
  81.         function()
  82.             ReplicatedStorage.RemoteEvents.GameEvent:FireServer("Map", mapName, true)
  83.         end,
  84.         function()
  85.             ReplicatedStorage.RemoteEvents.GameEvent:FireServer("Vote", mapName)
  86.         end,
  87.         function()
  88.             ReplicatedStorage.RemoteEvents.GameEvent:FireServer("MapVote", mapName)
  89.         end,
  90.         function()
  91.             if ReplicatedStorage:FindFirstChild("Map") then
  92.                 ReplicatedStorage.Map.Value = mapName
  93.             end
  94.         end,
  95.         function()
  96.             ReplicatedStorage.RemoteEvents.UpdateMap:FireServer(mapName)
  97.         end
  98.     }
  99.    
  100.     for _, method in ipairs(methods) do
  101.         pcall(method)
  102.         wait(0.1)
  103.     end
  104. end
  105.  
  106. for _, mapName in ipairs(mapList) do
  107.     MapsSection:NewToggle(mapName, "Forzar " .. mapName, function(state)
  108.         if state then
  109.             spawn(function()
  110.                 while state and wait(0.5) do
  111.                     forceMap(mapName)
  112.                 end
  113.             end)
  114.         end
  115.     end)
  116. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement