Advertisement
Me_Hker

Two Piece (old)

Apr 17th, 2024 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.09 KB | Gaming | 0 0
  1. -- Get the player
  2. local player = game.Players.LocalPlayer
  3.  
  4. -- Create ScreenGui
  5. local gui = Instance.new("ScreenGui")
  6. gui.ResetOnSpawn = false -- Disable ResetOnSpawn
  7. gui.Parent = player.PlayerGui
  8.  
  9. -- Create Frame
  10. local frame = Instance.new("Frame")
  11. frame.Size = UDim2.new(0, 150, 0, 200)
  12. frame.Position = UDim2.new(0.5, -75, 0.5, -75)
  13. frame.BackgroundColor3 = Color3.fromRGB(125, 255, 255)
  14. frame.BorderSizePixel = 2
  15. frame.Active = true
  16. frame.Draggable = true -- Make the UI movable
  17. frame.Parent = gui
  18.  
  19. -- Create Loop Button
  20. local loopButton = Instance.new("TextButton")
  21. loopButton.Size = UDim2.new(0, 120, 0, 30)
  22. loopButton.Position = UDim2.new(0.5, -60, 0.1, 0)
  23. loopButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  24. loopButton.Text = "เปิดลูป"
  25. loopButton.Parent = frame
  26.  
  27. -- Create Get Drop Button
  28. local getdropButton = Instance.new("TextButton")
  29. getdropButton.Size = UDim2.new(0, 120, 0, 30)
  30. getdropButton.Position = UDim2.new(0.5, -60, 0.25, 0)
  31. getdropButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  32. getdropButton.Text = "เปิดดูดของดรอป"
  33. getdropButton.Parent = frame
  34.  
  35. -- Create Get Spawn1 Button
  36. local spawnoneButton = Instance.new("TextButton")
  37. spawnoneButton.Size = UDim2.new(0, 120, 0, 30)
  38. spawnoneButton.Position = UDim2.new(0.5, -60, 0.4, 0)
  39. spawnoneButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  40. spawnoneButton.Text = "เปิดดูดของเกิด"
  41. spawnoneButton.Parent = frame
  42.  
  43. -- Create Get Spawn2 Button
  44. local spawntwoButton = Instance.new("TextButton")
  45. spawntwoButton.Size = UDim2.new(0, 120, 0, 30)
  46. spawntwoButton.Position = UDim2.new(0.5, -60, 0.55, 0)
  47. spawntwoButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  48. spawntwoButton.Text = "เปิดดูดผลตื่น"
  49. spawntwoButton.Parent = frame
  50.  
  51. -- Create Steal Item Button
  52. local stealButton = Instance.new("TextButton")
  53. stealButton.Size = UDim2.new(0, 120, 0, 30)
  54. stealButton.Position = UDim2.new(0.5, -60, 0.7, 0)
  55. stealButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  56. stealButton.Text = "Steal!"
  57. stealButton.Parent = frame
  58.  
  59. -- Create Close Button
  60. local closeButton = Instance.new("TextButton")
  61. closeButton.Size = UDim2.new(0, 120, 0, 30)
  62. closeButton.Position = UDim2.new(0.5, -60, 0.9, 0)
  63. closeButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  64. closeButton.Text = "ปิดเมนู(ปิดลูปก่อน)"
  65. closeButton.Parent = frame
  66.  
  67. -- Function to toggle loop
  68. local isLooping = false
  69.  
  70. loopButton.MouseButton1Click:Connect(function()
  71.     isLooping = not isLooping
  72.     loopButton.Text = isLooping and "ปิดลูป" or "เปิดลูป"
  73.    
  74.     while isLooping do
  75.         player.Character:FindFirstChild("Haki full").FullHaki.A:FireServer()
  76.         player.Character:FindFirstChild("Haki full").FullHaki.B:FireServer()
  77.         wait(0.2)
  78.     end
  79. end)
  80.  
  81. -- Function to toggle Get Drop
  82. local isGetDrop = false
  83.  
  84. getdropButton.MouseButton1Click:Connect(function()
  85.     isGetDrop = not isGetDrop
  86.     getdropButton.Text = isGetDrop and "ปิดดูของดรอป" or "เปิดดูดของดรอป"
  87.    
  88.     while isGetDrop do
  89.         local head = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Head")
  90.         if head then
  91.             for _, tool in pairs(game.Workspace:GetChildren()) do
  92.                 if tool:IsA("Tool") then
  93.                     tool.Handle.CFrame = head.CFrame
  94.                 end
  95.             end
  96.         end
  97.         wait(0.2)
  98.     end
  99. end)
  100.  
  101. -- Function to toggle Get Spawn1
  102. local isSpawnOne = false
  103.  
  104. spawnoneButton.MouseButton1Click:Connect(function()
  105.     isSpawnOne = not isSpawnOne
  106.     spawnoneButton.Text = isSpawnOne and "ปิดดูดของเกิด" or "เปิดดูดของเกิด"
  107.    
  108.     while isSpawnOne do
  109.         local head = game.Players.LocalPlayer.Character:WaitForChild("Head")
  110.         local tools = game.Workspace.DevilFruitSpawner.SpawnedDFS:GetChildren()
  111.  
  112.         for _, tool in ipairs(tools) do
  113.             if tool:IsA("Tool") then
  114.                 tool.Handle.CFrame = head.CFrame
  115.             end
  116.         end
  117.         wait(0.2)
  118.     end
  119. end)
  120.  
  121. -- Function to toggle Get Spawn 2
  122. local isSpawnTwo = false
  123.  
  124. spawntwoButton.MouseButton1Click:Connect(function()
  125.     isSpawnTwo = not isSpawnTwo
  126.     spawntwoButton.Text = isSpawnTwo and "ปิดดูดผลตื่น" or "เปิดดูดผลตื่น"
  127.    
  128.     while isSpawnTwo do
  129.         local head = game.Players.LocalPlayer.Character:WaitForChild("Head")
  130.         local tools = game.Workspace.DevilFruitSpawner2.SpawnedDFS:GetChildren()
  131.  
  132.         for _, tool in ipairs(tools) do
  133.             if tool:IsA("Tool") then
  134.                 tool.Handle.CFrame = head.CFrame
  135.             end
  136.         end
  137.         wait(0.2)
  138.     end
  139. end)
  140.  
  141. -- Function to steal item
  142. stealButton.MouseButton1Click:Connect(function()
  143.     loadstring(game:HttpGet("https://scriptblox.com/raw/Universal-Script-Steal-items-or-universal-4118"))()
  144. end)
  145.  
  146. -- Function to close UI
  147. closeButton.MouseButton1Click:Connect(function()
  148.     gui:Destroy()
  149. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement