Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PiggyHub = Instance.new("ScreenGui")
- PiggyHub.Name = "PiggyHub"
- PiggyHub.Parent = game:GetService("CoreGui")
- PiggyHub.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- -- Servicios
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local LocalPlayer = Players.LocalPlayer
- -- Variables globales
- local Settings = {
- Speed = 16,
- Jump = 50,
- ESP = false,
- Noclip = false,
- AutoCollect = false,
- KillAura = false,
- Fullbright = false,
- AntiRagdoll = false
- }
- -- Crear GUI principal
- local MainFrame = Instance.new("Frame")
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = PiggyHub
- MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- MainFrame.Position = UDim2.new(0.5, -175, 0.5, -200)
- MainFrame.Size = UDim2.new(0, 350, 0, 400)
- MainFrame.Active = true
- MainFrame.Draggable = true
- -- Crear título
- local Title = Instance.new("TextLabel")
- Title.Name = "Title"
- Title.Parent = MainFrame
- Title.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- Title.Size = UDim2.new(1, 0, 0, 30)
- Title.Text = "PiggyHub v2.4.1"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 16
- -- Crear botón minimizar
- local MinimizeButton = Instance.new("TextButton")
- MinimizeButton.Name = "MinimizeButton"
- MinimizeButton.Parent = Title
- MinimizeButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- MinimizeButton.Position = UDim2.new(1, -25, 0, 5)
- MinimizeButton.Size = UDim2.new(0, 20, 0, 20)
- MinimizeButton.Text = "-"
- MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- -- Crear contenedor de pestañas
- local TabContainer = Instance.new("Frame")
- TabContainer.Name = "TabContainer"
- TabContainer.Parent = MainFrame
- TabContainer.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- TabContainer.Position = UDim2.new(0, 0, 0, 30)
- TabContainer.Size = UDim2.new(0, 100, 1, -30)
- -- Funciones principales
- local function CreateTab(name)
- local Tab = Instance.new("TextButton")
- Tab.Name = name
- Tab.Parent = TabContainer
- Tab.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- Tab.Size = UDim2.new(1, 0, 0, 30)
- Tab.Text = name
- Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
- return Tab
- end
- -- Funciones de jugador
- local function SetSpeed(value)
- if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- LocalPlayer.Character.Humanoid.WalkSpeed = value
- end
- end
- local function SetJumpPower(value)
- if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
- LocalPlayer.Character.Humanoid.JumpPower = value
- end
- end
- local function ToggleNoclip()
- Settings.Noclip = not Settings.Noclip
- local connection
- if Settings.Noclip then
- connection = RunService.Stepped:Connect(function()
- if LocalPlayer.Character then
- for _, part in pairs(LocalPlayer.Character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide = false
- end
- end
- end
- end)
- else
- if connection then
- connection:Disconnect()
- end
- end
- end
- -- ESP Function
- local function ToggleESP()
- Settings.ESP = not Settings.ESP
- while Settings.ESP do
- wait(0.1)
- for _, player in pairs(Players:GetPlayers()) do
- if player ~= LocalPlayer and player.Character then
- if not player.Character:FindFirstChild("ESP") then
- local esp = Instance.new("BoxHandleAdornment")
- esp.Name = "ESP"
- esp.Size = player.Character:WaitForChild("HumanoidRootPart").Size
- esp.Color3 = Color3.new(1, 0, 0)
- esp.Transparency = 0.5
- esp.Adornee = player.Character.HumanoidRootPart
- esp.AlwaysOnTop = true
- esp.ZIndex = 5
- esp.Parent = player.Character
- end
- end
- end
- end
- end
- -- Anti-Ragdoll
- local function ToggleAntiRagdoll()
- Settings.AntiRagdoll = not Settings.AntiRagdoll
- if Settings.AntiRagdoll then
- local mt = getrawmetatable(game)
- local old = mt.__namecall
- setreadonly(mt, false)
- mt.__namecall = newcclosure(function(self, ...)
- local args = {...}
- if getnamecallmethod() == "FireServer" and tostring(self) == "Ragdoll" then
- return
- end
- return old(self, ...)
- end)
- setreadonly(mt, true)
- end
- end
- -- Auto-Collect Items
- local function ToggleAutoCollect()
- Settings.AutoCollect = not Settings.AutoCollect
- while Settings.AutoCollect do
- wait(0.1)
- for _, v in pairs(workspace:GetDescendants()) do
- if v:IsA("TouchTransmitter") and v.Parent.Name == "Collectable" then
- firetouchinterest(LocalPlayer.Character.HumanoidRootPart, v.Parent, 0)
- wait()
- firetouchinterest(LocalPlayer.Character.HumanoidRootPart, v.Parent, 1)
- end
- end
- end
- end
- -- Crear pestañas
- local PlayerTab = CreateTab("Player")
- local VisualsTab = CreateTab("Visuals")
- local UtilityTab = CreateTab("Utility")
- -- Crear contenido de pestañas
- local function CreateToggleButton(parent, text, callback)
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(0.9, 0, 0, 30)
- button.Position = UDim2.new(0.05, 0, 0, #parent:GetChildren() * 35)
- button.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- button.Text = text
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Parent = parent
- button.MouseButton1Click:Connect(callback)
- return button
- end
- -- Eventos de minimizar
- local minimized = false
- MinimizeButton.MouseButton1Click:Connect(function()
- minimized = not minimized
- if minimized then
- MainFrame.Size = UDim2.new(0, 350, 0, 30)
- MinimizeButton.Text = "+"
- else
- MainFrame.Size = UDim2.new(0, 350, 0, 400)
- MinimizeButton.Text = "-"
- end
- end)
- -- Anti-Detección
- local mt = getrawmetatable(game)
- setreadonly(mt, false)
- local oldindex = mt.__index
- mt.__index = newcclosure(function(self,k)
- if checkcaller() then return oldindex(self,k) end
- if k == "WalkSpeed" or k == "JumpPower" then
- return 16
- end
- return oldindex(self,k)
- end)
- setreadonly(mt, true)
- -- Keybinds
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if not gameProcessed then
- if input.KeyCode == Enum.KeyCode.RightControl then
- PiggyHub.Enabled = not PiggyHub.Enabled
- end
- end
- end)
- -- Inicialización
- local function Init()
- print("PiggyHub initialized successfully!")
- end
- Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement