Advertisement
debanhiescobar171

Piggy script

Nov 29th, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.17 KB | None | 0 0
  1. local PiggyHubUltimate = Instance.new("ScreenGui")
  2. local MainFrame = Instance.new("Frame")
  3. local UICorner = Instance.new("UICorner")
  4. local TopBar = Instance.new("Frame")
  5. local UICorner_2 = Instance.new("UICorner")
  6. local Title = Instance.new("TextLabel")
  7. local MinimizeBtn = Instance.new("TextButton")
  8. local TabHolder = Instance.new("Frame")
  9. local UIListLayout = Instance.new("UIListLayout")
  10. local Container = Instance.new("Frame")
  11.  
  12. -- Servicios
  13. local Players = game:GetService("Players")
  14. local RunService = game:GetService("RunService")
  15. local UserInputService = game:GetService("UserInputService")
  16. local TweenService = game:GetService("TweenService")
  17. local LocalPlayer = Players.LocalPlayer
  18. local Mouse = LocalPlayer:GetMouse()
  19.  
  20. -- Variables Globales
  21. _G.Settings = {
  22.     Speed = 16,
  23.     Jump = 50,
  24.     ESP = false,
  25.     Noclip = false,
  26.     AutoCollect = false,
  27.     KillAura = false,
  28.     Fullbright = false,
  29.     AntiRagdoll = false,
  30.     AutoEscape = false,
  31.     HitReach = false,
  32.     WallHack = false
  33. }
  34.  
  35. -- Configuración GUI
  36. PiggyHubUltimate.Name = "PiggyHubUltimate"
  37. PiggyHubUltimate.Parent = game:GetService("CoreGui")
  38. PiggyHubUltimate.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  39.  
  40. MainFrame.Name = "MainFrame"
  41. MainFrame.Parent = PiggyHubUltimate
  42. MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  43. MainFrame.Position = UDim2.new(0.5, -200, 0.5, -175)
  44. MainFrame.Size = UDim2.new(0, 400, 0, 350)
  45. MainFrame.Active = true
  46. MainFrame.Draggable = true
  47.  
  48. -- Funciones de Utilidad
  49. local function CreateTween(instance, properties, duration)
  50.     return TweenService:Create(instance, TweenInfo.new(duration, Enum.EasingStyle.Quart), properties)
  51. end
  52.  
  53. local function CreateButton(text, parent)
  54.     local button = Instance.new("TextButton")
  55.     button.Size = UDim2.new(0.9, 0, 0, 30)
  56.     button.Position = UDim2.new(0.05, 0, 0, #parent:GetChildren() * 35)
  57.     button.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  58.     button.Text = text
  59.     button.TextColor3 = Color3.fromRGB(255, 255, 255)
  60.     button.Parent = parent
  61.    
  62.     local uiCorner = Instance.new("UICorner")
  63.     uiCorner.CornerRadius = UDim.new(0, 6)
  64.     uiCorner.Parent = button
  65.    
  66.     return button
  67. end
  68.  
  69. -- Funciones Principales
  70. local function ToggleNoclip()
  71.     _G.Settings.Noclip = not _G.Settings.Noclip
  72.     if _G.Settings.Noclip then
  73.         RunService.Stepped:Connect(function()
  74.             if LocalPlayer.Character then
  75.                 for _, part in pairs(LocalPlayer.Character:GetDescendants()) do
  76.                     if part:IsA("BasePart") then
  77.                         part.CanCollide = false
  78.                     end
  79.                 end
  80.             end
  81.         end)
  82.     end
  83. end
  84.  
  85. local function ToggleESP()
  86.     _G.Settings.ESP = not _G.Settings.ESP
  87.     while _G.Settings.ESP do
  88.         wait(0.1)
  89.         for _, player in pairs(Players:GetPlayers()) do
  90.             if player ~= LocalPlayer and player.Character then
  91.                 if not player.Character:FindFirstChild("ESP") then
  92.                     local esp = Instance.new("BoxHandleAdornment")
  93.                     esp.Name = "ESP"
  94.                     esp.Size = player.Character:WaitForChild("HumanoidRootPart").Size
  95.                     esp.Color3 = Color3.new(1, 0, 0)
  96.                     esp.Transparency = 0.5
  97.                     esp.Adornee = player.Character.HumanoidRootPart
  98.                     esp.AlwaysOnTop = true
  99.                     esp.ZIndex = 5
  100.                     esp.Parent = player.Character
  101.                 end
  102.             end
  103.         end
  104.     end
  105. end
  106.  
  107. local function ToggleAutoCollect()
  108.     _G.Settings.AutoCollect = not _G.Settings.AutoCollect
  109.     while _G.Settings.AutoCollect do
  110.         wait(0.1)
  111.         for _, v in pairs(workspace:GetDescendants()) do
  112.             if v:IsA("TouchTransmitter") and v.Parent:FindFirstChild("Collectable") then
  113.                 firetouchinterest(LocalPlayer.Character.HumanoidRootPart, v.Parent, 0)
  114.                 wait()
  115.                 firetouchinterest(LocalPlayer.Character.HumanoidRootPart, v.Parent, 1)
  116.             end
  117.         end
  118.     end
  119. end
  120.  
  121. local function ToggleKillAura()
  122.     _G.Settings.KillAura = not _G.Settings.KillAura
  123.     while _G.Settings.KillAura do
  124.         wait(0.1)
  125.         for _, player in pairs(Players:GetPlayers()) do
  126.             if player ~= LocalPlayer and player.Character and
  127.                LocalPlayer.Character and player.Character:FindFirstChild("Humanoid") and
  128.                player.Character.Humanoid.Health > 0 then
  129.                 local distance = (player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
  130.                 if distance <= 15 then
  131.                     local args = {
  132.                         [1] = player.Character.Humanoid
  133.                     }
  134.                     game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(unpack(args))
  135.                 end
  136.             end
  137.         end
  138.     end
  139. end
  140.  
  141. -- Anti-Detección
  142. local mt = getrawmetatable(game)
  143. setreadonly(mt, false)
  144. local oldindex = mt.__index
  145. mt.__index = newcclosure(function(self,k)
  146.     if checkcaller() then return oldindex(self,k) end
  147.     if k == "WalkSpeed" or k == "JumpPower" then
  148.         return 16
  149.     end
  150.     return oldindex(self,k)
  151. end)
  152. setreadonly(mt, true)
  153.  
  154. -- Crear Pestañas
  155. local function CreateTab(name)
  156.     local tab = Instance.new("TextButton")
  157.     tab.Name = name
  158.     tab.Parent = TabHolder
  159.     tab.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  160.     tab.Size = UDim2.new(1, 0, 0, 30)
  161.     tab.Text = name
  162.     tab.TextColor3 = Color3.fromRGB(255, 255, 255)
  163.    
  164.     local uiCorner = Instance.new("UICorner")
  165.     uiCorner.CornerRadius = UDim.new(0, 6)
  166.     uiCorner.Parent = tab
  167.    
  168.     return tab
  169. end
  170.  
  171. -- Inicialización de Pestañas
  172. local PlayerTab = CreateTab("Player")
  173. local CombatTab = CreateTab("Combat")
  174. local VisualsTab = CreateTab("Visuals")
  175. local MiscTab = CreateTab("Misc")
  176.  
  177. -- Crear Contenido de Pestañas
  178. local function CreateToggleButton(parent, text, callback)
  179.     local button = CreateButton(text, parent)
  180.     local enabled = false
  181.    
  182.     button.MouseButton1Click:Connect(function()
  183.         enabled = not enabled
  184.         button.BackgroundColor3 = enabled and Color3.fromRGB(0, 170, 127) or Color3.fromRGB(35, 35, 35)
  185.         callback(enabled)
  186.     end)
  187.    
  188.     return button
  189. end
  190.  
  191. -- Keybinds
  192. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  193.     if not gameProcessed then
  194.         if input.KeyCode == Enum.KeyCode.RightControl then
  195.             MainFrame.Visible = not MainFrame.Visible
  196.         end
  197.     end
  198. end)
  199.  
  200. -- Inicialización
  201. local function Init()
  202.     -- Crear botones y funcionalidad
  203.     CreateToggleButton(PlayerTab, "Speed Hack", function(enabled)
  204.         _G.Settings.Speed = enabled and 32 or 16
  205.         if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  206.             LocalPlayer.Character.Humanoid.WalkSpeed = _G.Settings.Speed
  207.         end
  208.     end)
  209.    
  210.     CreateToggleButton(PlayerTab, "Noclip", ToggleNoclip)
  211.     CreateToggleButton(VisualsTab, "ESP", ToggleESP)
  212.     CreateToggleButton(CombatTab, "Kill Aura", ToggleKillAura)
  213.     CreateToggleButton(MiscTab, "Auto Collect", ToggleAutoCollect)
  214. end
  215.  
  216. Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement