Advertisement
debanhiescobar171

piggy script

Nov 29th, 2024
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.87 KB | None | 0 0
  1. local PiggyHub = Instance.new("ScreenGui")
  2. PiggyHub.Name = "PiggyHub"
  3. PiggyHub.Parent = game:GetService("CoreGui")
  4. PiggyHub.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  5.  
  6. -- Servicios
  7. local Players = game:GetService("Players")
  8. local RunService = game:GetService("RunService")
  9. local UserInputService = game:GetService("UserInputService")
  10. local TweenService = game:GetService("TweenService")
  11. local LocalPlayer = Players.LocalPlayer
  12.  
  13. -- Variables globales
  14. local Settings = {
  15.     Speed = 16,
  16.     Jump = 50,
  17.     ESP = false,
  18.     Noclip = false,
  19.     AutoCollect = false,
  20.     KillAura = false,
  21.     Fullbright = false,
  22.     AntiRagdoll = false
  23. }
  24.  
  25. -- Crear GUI principal
  26. local MainFrame = Instance.new("Frame")
  27. MainFrame.Name = "MainFrame"
  28. MainFrame.Parent = PiggyHub
  29. MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  30. MainFrame.Position = UDim2.new(0.5, -175, 0.5, -200)
  31. MainFrame.Size = UDim2.new(0, 350, 0, 400)
  32. MainFrame.Active = true
  33. MainFrame.Draggable = true
  34.  
  35. -- Crear título
  36. local Title = Instance.new("TextLabel")
  37. Title.Name = "Title"
  38. Title.Parent = MainFrame
  39. Title.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  40. Title.Size = UDim2.new(1, 0, 0, 30)
  41. Title.Text = "PiggyHub v2.4.1"
  42. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. Title.TextSize = 16
  44.  
  45. -- Crear botón minimizar
  46. local MinimizeButton = Instance.new("TextButton")
  47. MinimizeButton.Name = "MinimizeButton"
  48. MinimizeButton.Parent = Title
  49. MinimizeButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  50. MinimizeButton.Position = UDim2.new(1, -25, 0, 5)
  51. MinimizeButton.Size = UDim2.new(0, 20, 0, 20)
  52. MinimizeButton.Text = "-"
  53. MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  54.  
  55. -- Crear contenedor de pestañas
  56. local TabContainer = Instance.new("Frame")
  57. TabContainer.Name = "TabContainer"
  58. TabContainer.Parent = MainFrame
  59. TabContainer.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  60. TabContainer.Position = UDim2.new(0, 0, 0, 30)
  61. TabContainer.Size = UDim2.new(0, 100, 1, -30)
  62.  
  63. -- Funciones principales
  64. local function CreateTab(name)
  65.     local Tab = Instance.new("TextButton")
  66.     Tab.Name = name
  67.     Tab.Parent = TabContainer
  68.     Tab.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  69.     Tab.Size = UDim2.new(1, 0, 0, 30)
  70.     Tab.Text = name
  71.     Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
  72.     return Tab
  73. end
  74.  
  75. -- Funciones de jugador
  76. local function SetSpeed(value)
  77.     if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  78.         LocalPlayer.Character.Humanoid.WalkSpeed = value
  79.     end
  80. end
  81.  
  82. local function SetJumpPower(value)
  83.     if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
  84.         LocalPlayer.Character.Humanoid.JumpPower = value
  85.     end
  86. end
  87.  
  88. local function ToggleNoclip()
  89.     Settings.Noclip = not Settings.Noclip
  90.     local connection
  91.     if Settings.Noclip then
  92.         connection = RunService.Stepped:Connect(function()
  93.             if LocalPlayer.Character then
  94.                 for _, part in pairs(LocalPlayer.Character:GetDescendants()) do
  95.                     if part:IsA("BasePart") then
  96.                         part.CanCollide = false
  97.                     end
  98.                 end
  99.             end
  100.         end)
  101.     else
  102.         if connection then
  103.             connection:Disconnect()
  104.         end
  105.     end
  106. end
  107.  
  108. -- ESP Function
  109. local function ToggleESP()
  110.     Settings.ESP = not Settings.ESP
  111.     while Settings.ESP do
  112.         wait(0.1)
  113.         for _, player in pairs(Players:GetPlayers()) do
  114.             if player ~= LocalPlayer and player.Character then
  115.                 if not player.Character:FindFirstChild("ESP") then
  116.                     local esp = Instance.new("BoxHandleAdornment")
  117.                     esp.Name = "ESP"
  118.                     esp.Size = player.Character:WaitForChild("HumanoidRootPart").Size
  119.                     esp.Color3 = Color3.new(1, 0, 0)
  120.                     esp.Transparency = 0.5
  121.                     esp.Adornee = player.Character.HumanoidRootPart
  122.                     esp.AlwaysOnTop = true
  123.                     esp.ZIndex = 5
  124.                     esp.Parent = player.Character
  125.                 end
  126.             end
  127.         end
  128.     end
  129. end
  130.  
  131. -- Anti-Ragdoll
  132. local function ToggleAntiRagdoll()
  133.     Settings.AntiRagdoll = not Settings.AntiRagdoll
  134.     if Settings.AntiRagdoll then
  135.         local mt = getrawmetatable(game)
  136.         local old = mt.__namecall
  137.         setreadonly(mt, false)
  138.         mt.__namecall = newcclosure(function(self, ...)
  139.             local args = {...}
  140.             if getnamecallmethod() == "FireServer" and tostring(self) == "Ragdoll" then
  141.                 return
  142.             end
  143.             return old(self, ...)
  144.         end)
  145.         setreadonly(mt, true)
  146.     end
  147. end
  148.  
  149. -- Auto-Collect Items
  150. local function ToggleAutoCollect()
  151.     Settings.AutoCollect = not Settings.AutoCollect
  152.     while Settings.AutoCollect do
  153.         wait(0.1)
  154.         for _, v in pairs(workspace:GetDescendants()) do
  155.             if v:IsA("TouchTransmitter") and v.Parent.Name == "Collectable" then
  156.                 firetouchinterest(LocalPlayer.Character.HumanoidRootPart, v.Parent, 0)
  157.                 wait()
  158.                 firetouchinterest(LocalPlayer.Character.HumanoidRootPart, v.Parent, 1)
  159.             end
  160.         end
  161.     end
  162. end
  163.  
  164. -- Crear pestañas
  165. local PlayerTab = CreateTab("Player")
  166. local VisualsTab = CreateTab("Visuals")
  167. local UtilityTab = CreateTab("Utility")
  168.  
  169. -- Crear contenido de pestañas
  170. local function CreateToggleButton(parent, text, callback)
  171.     local button = Instance.new("TextButton")
  172.     button.Size = UDim2.new(0.9, 0, 0, 30)
  173.     button.Position = UDim2.new(0.05, 0, 0, #parent:GetChildren() * 35)
  174.     button.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  175.     button.Text = text
  176.     button.TextColor3 = Color3.fromRGB(255, 255, 255)
  177.     button.Parent = parent
  178.     button.MouseButton1Click:Connect(callback)
  179.     return button
  180. end
  181.  
  182. -- Eventos de minimizar
  183. local minimized = false
  184. MinimizeButton.MouseButton1Click:Connect(function()
  185.     minimized = not minimized
  186.     if minimized then
  187.         MainFrame.Size = UDim2.new(0, 350, 0, 30)
  188.         MinimizeButton.Text = "+"
  189.     else
  190.         MainFrame.Size = UDim2.new(0, 350, 0, 400)
  191.         MinimizeButton.Text = "-"
  192.     end
  193. end)
  194.  
  195. -- Anti-Detección
  196. local mt = getrawmetatable(game)
  197. setreadonly(mt, false)
  198. local oldindex = mt.__index
  199. mt.__index = newcclosure(function(self,k)
  200.     if checkcaller() then return oldindex(self,k) end
  201.     if k == "WalkSpeed" or k == "JumpPower" then
  202.         return 16
  203.     end
  204.     return oldindex(self,k)
  205. end)
  206. setreadonly(mt, true)
  207.  
  208. -- Keybinds
  209. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  210.     if not gameProcessed then
  211.         if input.KeyCode == Enum.KeyCode.RightControl then
  212.             PiggyHub.Enabled = not PiggyHub.Enabled
  213.         end
  214.     end
  215. end)
  216.  
  217. -- Inicialización
  218. local function Init()
  219.     print("PiggyHub initialized successfully!")
  220. end
  221.  
  222. Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement