Advertisement
debanhiescobar171

piggy script 2024

Nov 26th, 2024
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.82 KB | None | 0 0
  1. UI Library
  2. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  3. local Window = Library.CreateLib("Piggy Script Hub", "Ocean")
  4.  
  5. -- Keybind para minimizar (RightControl)
  6. local FrameworkConfig = {
  7.     Keybind = Enum.KeyCode.RightControl
  8. }
  9.  
  10. -- Main Tab
  11. local MainTab = Window:NewTab("Main")
  12. local MainSection = MainTab:NewSection("Player Mods")
  13.  
  14. -- Settings Tab para la configuración del UI
  15. local SettingsTab = Window:NewTab("Settings")
  16. local SettingsSection = SettingsTab:NewSection("UI Settings")
  17.  
  18. -- Botón para mostrar/ocultar la UI
  19. SettingsSection:NewKeybind("Toggle UI", "Muestra/Oculta la interfaz", FrameworkConfig.Keybind, function()
  20.     Library:ToggleUI()
  21. end)
  22.  
  23. -- God Mode Toggle
  24. MainSection:NewToggle("God Mode", "Activa/Desactiva el modo invencible", function(state)
  25.     if state then
  26.         local Players = game:GetService("Players")
  27.         local ReplicatedStorage = game:GetService("ReplicatedStorage")
  28.         local LocalPlayer = Players.LocalPlayer
  29.         local RunService = game:GetService("RunService")
  30.  
  31.         local function enhancedGodMode()
  32.             local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  33.             local humanoid = character:WaitForChild("Humanoid")
  34.            
  35.             humanoid.HealthChanged:Connect(function(health)
  36.                 if health < humanoid.MaxHealth then
  37.                     humanoid.Health = humanoid.MaxHealth
  38.                 end
  39.             end)
  40.            
  41.             for _, v in pairs(ReplicatedStorage:GetDescendants()) do
  42.                 if v:IsA("RemoteEvent") then
  43.                     if v.Name:match("Damage") or v.Name:match("Kill") or v.Name:match("Hit") then
  44.                         local old
  45.                         old = hookfunction(v.FireServer, function(self, ...)
  46.                             local args = {...}
  47.                             if self == v then
  48.                                 return nil
  49.                             end
  50.                             return old(self, ...)
  51.                         end)
  52.                     end
  53.                 end
  54.             end
  55.            
  56.             RunService.Heartbeat:Connect(function()
  57.                 if character and humanoid then
  58.                     humanoid.Health = humanoid.MaxHealth
  59.                 end
  60.             end)
  61.         end
  62.        
  63.         enhancedGodMode()
  64.         LocalPlayer.CharacterAdded:Connect(enhancedGodMode)
  65.     end
  66. end)
  67.  
  68. -- Map Force Section
  69. local MapSection = MainTab:NewSection("Map Force")
  70.  
  71. MapSection:NewButton("Force Map", "Fuerza la selección del mapa actual", function()
  72.     local function enhancedMapForcer()
  73.         local VotingRemote = ReplicatedStorage:WaitForChild("RemoteEvents"):WaitForChild("Vote")
  74.         local MapSelectionRemote = ReplicatedStorage:WaitForChild("RemoteEvents"):WaitForChild("MapSelection")
  75.        
  76.         local function forceMap(mapName)
  77.             for i = 1, 150 do
  78.                 VotingRemote:FireServer(mapName)
  79.             end
  80.             MapSelectionRemote:FireServer(mapName)
  81.         end
  82.        
  83.         for _, remote in pairs(ReplicatedStorage:GetDescendants()) do
  84.             if remote:IsA("RemoteEvent") and remote.Name:match("Vote") then
  85.                 local oldVote
  86.                 oldVote = hookfunction(remote.FireServer, function(self, ...)
  87.                     local args = {...}
  88.                     if self == remote then
  89.                         forceMap(args[1])
  90.                         return
  91.                     end
  92.                     return oldVote(self, ...)
  93.                 end)
  94.             end
  95.         end
  96.     end
  97.    
  98.     enhancedMapForcer()
  99. end)
  100.  
  101. -- Anti-Kick
  102. local SecuritySection = MainTab:NewSection("Security")
  103.  
  104. SecuritySection:NewToggle("Anti-Kick", "Previene ser expulsado del juego", function(state)
  105.     if state then
  106.         local namecall
  107.         namecall = hookmetamethod(game, "__namecall", function(self, ...)
  108.             local method = getnamecallmethod()
  109.             if method == "Kick" or method == "kick" then
  110.                 return nil
  111.             end
  112.             return namecall(self, ...)
  113.         end)
  114.     end
  115. end)
  116.  
  117. -- Speed Section
  118. local SpeedSection = MainTab:NewSection("Speed Hack")
  119.  
  120. SpeedSection:NewSlider("WalkSpeed", "Cambia la velocidad del jugador", 500, 16, function(s)
  121.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = s
  122. end)
  123.  
  124. -- Jump Section
  125. local JumpSection = MainTab:NewSection("Jump Hack")
  126.  
  127. JumpSection:NewSlider("JumpPower", "Cambia la potencia de salto", 350, 50, function(s)
  128.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = s
  129. end)
  130.  
  131. -- Notificación inicial
  132. game.StarterGui:SetCore("SendNotification", {
  133.     Title = "Script Loaded!";
  134.     Text = "Presiona RightControl para mostrar/ocultar el menú";
  135.     Duration = 5;
  136. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement