Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
- local Window = Library.CreateLib("Piggy Ultimate Script", "Ocean")
- -- Botón para minimizar
- local MinimizeButton = Instance.new("TextButton")
- MinimizeButton.Position = UDim2.new(0.95, 0, 0, 0)
- MinimizeButton.Size = UDim2.new(0, 30, 0, 30)
- MinimizeButton.Text = "-"
- MinimizeButton.Parent = Window.Frame
- local minimized = false
- MinimizeButton.MouseButton1Click:Connect(function()
- minimized = not minimized
- if minimized then
- Window.Frame.Size = UDim2.new(0, Window.Frame.Size.X.Offset, 0, 30)
- MinimizeButton.Text = "+"
- else
- Window.Frame.Size = UDim2.new(0, Window.Frame.Size.X.Offset, 0, Window.Frame.OriginalSize.Y.Offset)
- MinimizeButton.Text = "-"
- end
- end)
- -- MAIN
- local Main = Window:NewTab("Main")
- local MainSection = Main:NewSection("Principal")
- -- God Mode mejorado
- MainSection:NewToggle("God Mode", "Te hace invencible", function(state)
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- if state then
- if Player.Character then
- -- Crear un nuevo humanoid
- local humanoid = Player.Character:FindFirstChild("Humanoid")
- if humanoid then
- local newHumanoid = humanoid:Clone()
- newHumanoid.Parent = Player.Character
- humanoid:Destroy()
- newHumanoid.Health = math.huge
- newHumanoid.MaxHealth = math.huge
- -- Conexión para mantener la salud infinita
- game:GetService("RunService").Heartbeat:Connect(function()
- if state then
- newHumanoid.Health = math.huge
- end
- end)
- end
- -- Prevenir daño
- local function preventDamage()
- if Player.Character then
- local humanoid = Player.Character:FindFirstChild("Humanoid")
- if humanoid then
- humanoid.Health = math.huge
- end
- end
- end
- Player.Character.ChildAdded:Connect(preventDamage)
- Player.Character.ChildRemoved:Connect(preventDamage)
- end
- end
- end)
- -- MAPAS (Forzador mejorado)
- local Maps = Window:NewTab("Maps")
- local MapsSection = Maps:NewSection("Forzador de Mapas")
- local mapList = {
- "House", "Station", "Gallery", "Forest", "School",
- "Hospital", "Metro", "City", "Factory", "Mall",
- "Carnival", "Outpost"
- }
- for _, mapName in ipairs(mapList) do
- MapsSection:NewToggle(mapName, "Forzar "..mapName, function(state)
- if state then
- spawn(function()
- while state do
- -- Método 1: Evento directo
- game:GetService("ReplicatedStorage").RemoteEvents.GameEvent:FireServer("Map", mapName, true)
- -- Método 2: Votación
- game:GetService("ReplicatedStorage").RemoteEvents.GameEvent:FireServer("Vote", mapName)
- -- Método 3: Actualización de valor
- if game:GetService("ReplicatedStorage"):FindFirstChild("Map") then
- game:GetService("ReplicatedStorage").Map.Value = mapName
- end
- -- Método 4: Actualización directa
- pcall(function()
- game:GetService("ReplicatedStorage").RemoteEvents.UpdateMap:FireServer(mapName)
- end)
- -- Método 5: Forzado adicional
- local args = {
- [1] = "MapVote",
- [2] = mapName
- }
- game:GetService("ReplicatedStorage").RemoteEvents.GameEvent:FireServer(unpack(args))
- wait(0.1)
- end
- end)
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement