Advertisement
debanhiescobar171

piggy script

Dec 8th, 2024
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.48 KB | None | 0 0
  1. -- Configuración de la Interfaz
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local MainFrame = Instance.new("Frame")
  4. local Title = Instance.new("TextLabel")
  5. local ButtonESP = Instance.new("TextButton")
  6. local ButtonSpeed = Instance.new("TextButton")
  7. local ButtonFly = Instance.new("TextButton")
  8. local CloseButton = Instance.new("TextButton")
  9.  
  10. -- Propiedades del Menú
  11. ScreenGui.Name = "PiggyScriptGUI"
  12. ScreenGui.Parent = game.CoreGui
  13.  
  14. MainFrame.Name = "MainFrame"
  15. MainFrame.Parent = ScreenGui
  16. MainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  17. MainFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
  18. MainFrame.Size = UDim2.new(0, 250, 0, 300)
  19.  
  20. Title.Name = "Title"
  21. Title.Parent = MainFrame
  22. Title.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  23. Title.Size = UDim2.new(0, 250, 0, 50)
  24. Title.Font = Enum.Font.SourceSans
  25. Title.Text = "Piggy Script Menu"
  26. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  27. Title.TextSize = 20
  28.  
  29. ButtonESP.Name = "ButtonESP"
  30. ButtonESP.Parent = MainFrame
  31. ButtonESP.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  32. ButtonESP.Position = UDim2.new(0.1, 0, 0.25, 0)
  33. ButtonESP.Size = UDim2.new(0, 200, 0, 30)
  34. ButtonESP.Text = "Activar ESP"
  35.  
  36. ButtonSpeed.Name = "ButtonSpeed"
  37. ButtonSpeed.Parent = MainFrame
  38. ButtonSpeed.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  39. ButtonSpeed.Position = UDim2.new(0.1, 0, 0.4, 0)
  40. ButtonSpeed.Size = UDim2.new(0, 200, 0, 30)
  41. ButtonSpeed.Text = "Aumentar Velocidad"
  42.  
  43. ButtonFly.Name = "ButtonFly"
  44. ButtonFly.Parent = MainFrame
  45. ButtonFly.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  46. ButtonFly.Position = UDim2.new(0.1, 0, 0.55, 0)
  47. ButtonFly.Size = UDim2.new(0, 200, 0, 30)
  48. ButtonFly.Text = "Activar Vuelo"
  49.  
  50. CloseButton.Name = "CloseButton"
  51. CloseButton.Parent = MainFrame
  52. CloseButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  53. CloseButton.Position = UDim2.new(0.1, 0, 0.7, 0)
  54. CloseButton.Size = UDim2.new(0, 200, 0, 30)
  55. CloseButton.Text = "Cerrar Menú"
  56.  
  57. -- Función para cerrar el menú
  58. CloseButton.MouseButton1Click:Connect(function()
  59.     ScreenGui:Destroy()
  60. end)
  61.  
  62. -- Función ESP
  63. ButtonESP.MouseButton1Click:Connect(function()
  64.     for _, obj in pairs(game.Workspace:GetDescendants()) do
  65.         if obj:IsA("Tool") or obj.Name == "Piggy" then
  66.             local Billboard = Instance.new("BillboardGui", obj)
  67.             Billboard.Size = UDim2.new(1, 0, 1, 0)
  68.             Billboard.AlwaysOnTop = true
  69.  
  70.             local TextLabel = Instance.new("TextLabel", Billboard)
  71.             TextLabel.Text = obj.Name
  72.             TextLabel.Size = UDim2.new(1, 0, 1, 0)
  73.             TextLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  74.             TextLabel.BackgroundTransparency = 1
  75.             TextLabel.TextSize = 14
  76.         end
  77.     end
  78. end)
  79.  
  80. -- Función de Velocidad
  81. ButtonSpeed.MouseButton1Click:Connect(function()
  82.     local player = game.Players.LocalPlayer
  83.     if player and player.Character and player.Character:FindFirstChild("Humanoid") then
  84.         player.Character.Humanoid.WalkSpeed = 50 -- Cambia a la velocidad deseada
  85.     end
  86. end)
  87.  
  88. -- Función de Vuelo
  89. ButtonFly.MouseButton1Click:Connect(function()
  90.     local player = game.Players.LocalPlayer
  91.     local character = player.Character or player.CharacterAdded:Wait()
  92.  
  93.     local bodyVelocity = Instance.new("BodyVelocity", character:FindFirstChild("HumanoidRootPart"))
  94.     bodyVelocity.MaxForce = Vector3.new(4000, 4000, 4000)
  95.     bodyVelocity.Velocity = Vector3.new(0, 50, 0) -- Cambia la velocidad de vuelo
  96.  
  97.     wait(5) -- Duración del vuelo
  98.     bodyVelocity:Destroy()
  99. end)
  100.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement