Advertisement
debanhiescobar171

Piggy Ultimate Script

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