Advertisement
debanhiescobar171

Untitled

Nov 26th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.90 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 Ultimate Script", "Ocean")
  3.  
  4. -- Variables globales
  5. local godModeEnabled = false
  6. local forceMapEnabled = false
  7.  
  8. -- MAIN
  9. local Main = Window:NewTab("Main")
  10. local MainSection = Main:NewSection("Principal")
  11.  
  12. -- God Mode mejorado y probado
  13. MainSection:NewToggle("God Mode", "Te hace invencible", function(state)
  14.     godModeEnabled = state
  15.    
  16.     if state then
  17.         spawn(function()
  18.             while godModeEnabled do
  19.                 pcall(function()
  20.                     local player = game.Players.LocalPlayer
  21.                     if player.Character and player.Character:FindFirstChild("Humanoid") then
  22.                         player.Character.Humanoid.MaxHealth = 999999
  23.                         player.Character.Humanoid.Health = 999999
  24.                        
  25.                         -- Prevenir daño
  26.                         for _, v in pairs(player.Character:GetDescendants()) do
  27.                             if v:IsA("BasePart") then
  28.                                 v.CanCollide = true
  29.                             end
  30.                         end
  31.                     end
  32.                 end)
  33.                 wait(0.1)
  34.             end
  35.         end)
  36.     end
  37. end)
  38.  
  39. -- Minimizar (Mejorado)
  40. local MainGui = game:GetService("CoreGui"):FindFirstChild("Piggy Ultimate Script")
  41. if MainGui then
  42.     local MinimizeBtn = Instance.new("TextButton")
  43.     MinimizeBtn.Size = UDim2.new(0, 30, 0, 30)
  44.     MinimizeBtn.Position = UDim2.new(1, -35, 0, 5)
  45.     MinimizeBtn.Text = "-"
  46.     MinimizeBtn.TextSize = 20
  47.     MinimizeBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  48.     MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  49.     MinimizeBtn.Parent = MainGui
  50.  
  51.     local minimized = false
  52.     MinimizeBtn.MouseButton1Click:Connect(function()
  53.         minimized = not minimized
  54.         if minimized then
  55.             MainGui.Size = UDim2.new(0, MainGui.AbsoluteSize.X, 0, 35)
  56.             MinimizeBtn.Text = "+"
  57.         else
  58.             MainGui.Size = UDim2.new(0, MainGui.AbsoluteSize.X, 0, 400)
  59.             MinimizeBtn.Text = "-"
  60.         end
  61.     end)
  62. end
  63.  
  64. -- MAPAS (Forzador completamente reescrito)
  65. local Maps = Window:NewTab("Maps")
  66. local MapsSection = Maps:NewSection("Forzador de Mapas")
  67.  
  68. local mapList = {
  69.     "House", "Station", "Gallery", "Forest", "School",
  70.     "Hospital", "Metro", "City", "Factory", "Mall",
  71.     "Carnival", "Outpost"
  72. }
  73.  
  74. local function forceMap(mapName)
  75.     local args1 = {
  76.         [1] = "Map",
  77.         [2] = mapName,
  78.         [3] = true
  79.     }
  80.    
  81.     local args2 = {
  82.         [1] = "Vote",
  83.         [2] = mapName
  84.     }
  85.    
  86.     local args3 = {
  87.         [1] = "MapVote",
  88.         [2] = mapName
  89.     }
  90.    
  91.     -- Múltiples intentos de forzado
  92.     for i = 1, 3 do
  93.         pcall(function()
  94.             game:GetService("ReplicatedStorage").RemoteEvents.GameEvent:FireServer(unpack(args1))
  95.             wait(0.1)
  96.             game:GetService("ReplicatedStorage").RemoteEvents.GameEvent:FireServer(unpack(args2))
  97.             wait(0.1)
  98.             game:GetService("ReplicatedStorage").RemoteEvents.GameEvent:FireServer(unpack(args3))
  99.            
  100.             if game:GetService("ReplicatedStorage"):FindFirstChild("Map") then
  101.                 game:GetService("ReplicatedStorage").Map.Value = mapName
  102.             end
  103.            
  104.             -- Método adicional de forzado
  105.             game:GetService("ReplicatedStorage").RemoteEvents.UpdateMap:FireServer(mapName)
  106.         end)
  107.         wait(0.2)
  108.     end
  109. end
  110.  
  111. for _, mapName in ipairs(mapList) do
  112.     MapsSection:NewToggle(mapName, "Forzar "..mapName, function(state)
  113.         if state then
  114.             spawn(function()
  115.                 while wait(0.5) and state do
  116.                     forceMap(mapName)
  117.                 end
  118.             end)
  119.         end
  120.     end)
  121. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement