Advertisement
IgotScripts

[IgotScripts] One Piece Unleashed: OPUHx

May 18th, 2019
2,945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.46 KB | None | 0 0
  1. if game.CoreGui:FindFirstChild("OPUHx") then
  2. game.CoreGui:FindFirstChild("OPUHx"):Destroy()
  3. end
  4. local OPUHx = Instance.new("ScreenGui")
  5. local MainFrame = Instance.new("Frame")
  6. local TopBar = Instance.new("Frame")
  7. local Name = Instance.new("TextLabel")
  8. local Exit = Instance.new("TextButton")
  9. local Functions = Instance.new("TextButton")
  10. local Sep = Instance.new("TextLabel")
  11. local BringX = Instance.new("TextButton")
  12. local FunctionsFrame = Instance.new("Frame")
  13. local FastPunchOn = Instance.new("TextButton")
  14. local BringAllChests = Instance.new("TextButton")
  15. local FFGrid = Instance.new("UIGridLayout")
  16. local BringMaterials = Instance.new("TextButton")
  17. local InfBeli = Instance.new("TextButton")
  18. local GiveBounty = Instance.new("TextButton")
  19. local BuyDf = Instance.new("TextButton")
  20. local Farm = Instance.new("TextButton")
  21. local BringXFrame = Instance.new("Frame")
  22. local Holder = Instance.new("ScrollingFrame")
  23. local BXFGrid = Instance.new("UIGridLayout")
  24. local BXFInput = Instance.new("TextBox")
  25. OPUHx.Name = "OPUHx"
  26. OPUHx.Parent = game.CoreGui
  27. OPUHx.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28. MainFrame.Name = "MainFrame"
  29. MainFrame.Parent = OPUHx
  30. MainFrame.Active = true
  31. MainFrame.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  32. MainFrame.BorderColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  33. MainFrame.Position = UDim2.new(0.0209854022, 0, 0.156826571, 0)
  34. MainFrame.Size = UDim2.new(0.227189779, 0, 0.536900342, 0)
  35. TopBar.Name = "TopBar"
  36. TopBar.Parent = MainFrame
  37. TopBar.Active = true
  38. TopBar.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  39. TopBar.BorderSizePixel = 0
  40. TopBar.Size = UDim2.new(1, 0, 0.0821114406, 0)
  41. Name.Name = "Name"
  42. Name.Parent = TopBar
  43. Name.Active = true
  44. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  45. Name.BackgroundTransparency = 1
  46. Name.BorderSizePixel = 0
  47. Name.Position = UDim2.new(0.292613655, 0, 0, 0)
  48. Name.Size = UDim2.new(0.414772719, 0, 1, 0)
  49. Name.Font = Enum.Font.SourceSansBold
  50. Name.Text = "OPUHx"
  51. Name.TextColor3 = Color3.new(1, 1, 1)
  52. Name.TextSize = 30
  53. Exit.Name = "Exit"
  54. Exit.Parent = TopBar
  55. Exit.BackgroundColor3 = Color3.new(1, 1, 1)
  56. Exit.BackgroundTransparency = 1
  57. Exit.BorderSizePixel = 0
  58. Exit.Position = UDim2.new(0.897727251, 0, 0, 0)
  59. Exit.Size = UDim2.new(0.102272727, 0, 1, 0)
  60. Exit.AutoButtonColor = false
  61. Exit.Font = Enum.Font.SourceSansBold
  62. Exit.Text = "X"
  63. Exit.TextColor3 = Color3.new(1, 1, 1)
  64. Exit.TextSize = 30
  65. Functions.Name = "Functions"
  66. Functions.Parent = MainFrame
  67. Functions.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  68. Functions.BorderSizePixel = 0
  69. Functions.Position = UDim2.new(0.213068128, 0, 0.105571851, 0)
  70. Functions.Size = UDim2.new(0.269886374, 0, 0.0645161271, 0)
  71. Functions.AutoButtonColor = false
  72. Functions.Font = Enum.Font.SourceSansBold
  73. Functions.Text = "Functions"
  74. Functions.TextColor3 = Color3.new(1, 1, 1)
  75. Functions.TextSize = 16
  76. Sep.Name = "Sep"
  77. Sep.Parent = MainFrame
  78. Sep.Active = true
  79. Sep.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  80. Sep.BorderSizePixel = 0
  81. Sep.Position = UDim2.new(0.0255681816, 0, 0.196480945, 0)
  82. Sep.Size = UDim2.new(0.948863626, 0, 0.00879765395, 0)
  83. Sep.Font = Enum.Font.SourceSansBold
  84. Sep.Text = ""
  85. Sep.TextColor3 = Color3.new(1, 1, 1)
  86. Sep.TextSize = 30
  87. BringX.Name = "BringX"
  88. BringX.Parent = MainFrame
  89. BringX.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  90. BringX.BorderSizePixel = 0
  91. BringX.Position = UDim2.new(0.514204502, 0, 0.105571851, 0)
  92. BringX.Size = UDim2.new(0.269886374, 0, 0.0645161271, 0)
  93. BringX.AutoButtonColor = false
  94. BringX.Font = Enum.Font.SourceSansBold
  95. BringX.Text = "BringX"
  96. BringX.TextColor3 = Color3.new(1, 1, 1)
  97. BringX.TextSize = 16
  98. FunctionsFrame.Name = "FunctionsFrame"
  99. FunctionsFrame.Parent = MainFrame
  100. FunctionsFrame.Active = true
  101. FunctionsFrame.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  102. FunctionsFrame.BorderColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  103. FunctionsFrame.Position = UDim2.new(0.0255681816, 0, 0.225806445, 0)
  104. FunctionsFrame.Size = UDim2.new(0.948863626, 0, 0.739003003, 0)
  105. FastPunchOn.Name = "FastPunchOn"
  106. FastPunchOn.Parent = FunctionsFrame
  107. FastPunchOn.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  108. FastPunchOn.BorderSizePixel = 0
  109. FastPunchOn.Position = UDim2.new(0.0973223522, 0, 0.0450123325, 0)
  110. FastPunchOn.Size = UDim2.new(0.383658826, 0, 0.104198627, 0)
  111. FastPunchOn.AutoButtonColor = false
  112. FastPunchOn.Font = Enum.Font.SourceSansBold
  113. FastPunchOn.Text = "Fast Punch: On"
  114. FastPunchOn.TextColor3 = Color3.new(1, 1, 1)
  115. FastPunchOn.TextSize = 14
  116. BringAllChests.Name = "BringAllChests"
  117. BringAllChests.Parent = FunctionsFrame
  118. BringAllChests.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  119. BringAllChests.BorderSizePixel = 0
  120. BringAllChests.Position = UDim2.new(0.0973223522, 0, 0.195805967, 0)
  121. BringAllChests.Size = UDim2.new(0.383658826, 0, 0.104198627, 0)
  122. BringAllChests.AutoButtonColor = false
  123. BringAllChests.Font = Enum.Font.SourceSansBold
  124. BringAllChests.Text = "Bring All Chests"
  125. BringAllChests.TextColor3 = Color3.new(1, 1, 1)
  126. BringAllChests.TextSize = 14
  127. FFGrid.Name = "FFGrid"
  128. FFGrid.Parent = FunctionsFrame
  129. FFGrid.HorizontalAlignment = Enum.HorizontalAlignment.Center
  130. FFGrid.CellPadding = UDim2.new(0.00999999978, 0, 0.00999999978, 0)
  131. FFGrid.CellSize = UDim2.new(0.384000003, 0, 0.104000002, 0)
  132. BringMaterials.Name = "BringMaterials"
  133. BringMaterials.Parent = FunctionsFrame
  134. BringMaterials.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  135. BringMaterials.BorderSizePixel = 0
  136. BringMaterials.Position = UDim2.new(0.0973223522, 0, 0.195805967, 0)
  137. BringMaterials.Size = UDim2.new(0.383658826, 0, 0.104198627, 0)
  138. BringMaterials.AutoButtonColor = false
  139. BringMaterials.Font = Enum.Font.SourceSansBold
  140. BringMaterials.Text = "Bring Materials"
  141. BringMaterials.TextColor3 = Color3.new(1, 1, 1)
  142. BringMaterials.TextSize = 14
  143. InfBeli.Name = "InfBeli"
  144. InfBeli.Parent = FunctionsFrame
  145. InfBeli.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  146. InfBeli.BorderSizePixel = 0
  147. InfBeli.Position = UDim2.new(0.0973223522, 0, 0.0450123325, 0)
  148. InfBeli.Size = UDim2.new(0.383658826, 0, 0.104198627, 0)
  149. InfBeli.AutoButtonColor = false
  150. InfBeli.Font = Enum.Font.SourceSansBold
  151. InfBeli.Text = "Inf Beli"
  152. InfBeli.TextColor3 = Color3.new(1, 1, 1)
  153. InfBeli.TextSize = 14
  154. GiveBounty.Name = "GiveBounty"
  155. GiveBounty.Parent = FunctionsFrame
  156. GiveBounty.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  157. GiveBounty.BorderSizePixel = 0
  158. GiveBounty.Position = UDim2.new(0.0973223522, 0, 0.0450123325, 0)
  159. GiveBounty.Size = UDim2.new(0.383658826, 0, 0.104198627, 0)
  160. GiveBounty.AutoButtonColor = false
  161. GiveBounty.Font = Enum.Font.SourceSansBold
  162. GiveBounty.Text = "Give Bounty"
  163. GiveBounty.TextColor3 = Color3.new(1, 1, 1)
  164. GiveBounty.TextSize = 14
  165. BuyDf.Name = "BuyDf"
  166. BuyDf.Parent = FunctionsFrame
  167. BuyDf.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  168. BuyDf.BorderSizePixel = 0
  169. BuyDf.Position = UDim2.new(0.0973223522, 0, 0.0450123325, 0)
  170. BuyDf.Size = UDim2.new(0.383658826, 0, 0.104198627, 0)
  171. BuyDf.AutoButtonColor = false
  172. BuyDf.Font = Enum.Font.SourceSansBold
  173. BuyDf.Text = "Buy DF"
  174. BuyDf.TextColor3 = Color3.new(1, 1, 1)
  175. BuyDf.TextSize = 14
  176. Farm.Name = "Farm"
  177. Farm.Parent = FunctionsFrame
  178. Farm.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  179. Farm.BorderSizePixel = 0
  180. Farm.Position = UDim2.new(0.0973223522, 0, 0.0450123325, 0)
  181. Farm.Size = UDim2.new(0.383658826, 0, 0.104198627, 0)
  182. Farm.AutoButtonColor = false
  183. Farm.Font = Enum.Font.SourceSansBold
  184. Farm.Text = "Farm"
  185. Farm.TextColor3 = Color3.new(1, 1, 1)
  186. Farm.TextSize = 14
  187. BringXFrame.Name = "BringXFrame"
  188. BringXFrame.Parent = MainFrame
  189. BringXFrame.Active = true
  190. BringXFrame.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  191. BringXFrame.BorderColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  192. BringXFrame.Position = UDim2.new(0.0255681816, 0, 0.225806445, 0)
  193. BringXFrame.Size = UDim2.new(0.948863626, 0, 0.739003003, 0)
  194. BringXFrame.Visible = false
  195. Holder.Name = "Holder"
  196. Holder.Parent = BringXFrame
  197. Holder.Active = true
  198. Holder.BackgroundColor3 = Color3.new(1, 1, 1)
  199. Holder.BackgroundTransparency = 1
  200. Holder.BorderSizePixel = 0
  201. Holder.Position = UDim2.new(0.038922064, 0, 0.170634955, 0)
  202. Holder.Size = UDim2.new(0.922155678, 0, 0.797618926, 0)
  203. Holder.CanvasSize = UDim2.new(0, 0, 5, 0)
  204. Holder.BottomImage = ""
  205. Holder.ScrollBarThickness = 4
  206. Holder.TopImage = ""
  207. BXFGrid.Name = "BXFGrid"
  208. BXFGrid.Parent = Holder
  209. BXFGrid.HorizontalAlignment = Enum.HorizontalAlignment.Center
  210. BXFGrid.CellSize = UDim2.new(0.493999988, 0, 0.0220000011, 0)
  211. BXFInput.Name = "BXFInput"
  212. BXFInput.Parent = BringXFrame
  213. BXFInput.BackgroundColor3 = Color3.new(0.207843, 0.439216, 0.623529)
  214. BXFInput.BorderSizePixel = 0
  215. BXFInput.Position = UDim2.new(0.0359281451, 0, 0.0317460261, 0)
  216. BXFInput.Size = UDim2.new(0.925149679, 0, 0.10317459, 0)
  217. BXFInput.Font = Enum.Font.SourceSansBold
  218. BXFInput.PlaceholderColor3 = Color3.new(1, 1, 1)
  219. BXFInput.Text = ""
  220. BXFInput.TextColor3 = Color3.new(1, 1, 1)
  221. BXFInput.TextSize = 14
  222.  
  223. local OPUHx = game.CoreGui.OPUHx
  224. local MainFrame = OPUHx.MainFrame
  225. local TopBar = MainFrame.TopBar
  226. local BringXFrame = MainFrame.BringXFrame
  227. local FunctionsFrame = MainFrame.FunctionsFrame
  228. local Holder = BringXFrame.Holder
  229.  
  230. local Exit = TopBar.Exit
  231. local BringX = MainFrame.BringX
  232. local Functions = MainFrame.Functions
  233.  
  234. local FastPunchOn = FunctionsFrame.FastPunchOn
  235. local BringAllChests = FunctionsFrame.BringAllChests
  236. local BringMaterials = FunctionsFrame.BringMaterials
  237. local Farm = FunctionsFrame.Farm
  238. local BuyDf = FunctionsFrame.BuyDf
  239. local InfBeli = FunctionsFrame.InfBeli
  240. local GiveBounty = FunctionsFrame.GiveBounty
  241.  
  242. local BXFInput = BringXFrame.BXFInput
  243.  
  244. MainFrame.Draggable = true
  245. local plr = game.Players.LocalPlayer
  246. local char = plr.Character
  247. local root = char:WaitForChild("HumanoidRootPart")
  248. local UserInputService = game:GetService("UserInputService")
  249. local UI_Open = true
  250. UserInputService.InputBegan:Connect(function(input)
  251. if input.KeyCode == Enum.KeyCode.RightShift then
  252. if UI_Open == true then
  253. MainFrame:TweenPosition(UDim2.new(-2, 0, 0.168, 0), "Out", "Quad", 0.4)
  254. wait(0.45)
  255. UI_Open = false
  256. elseif UI_Open == false then
  257. MainFrame:TweenPosition(UDim2.new(0.009, 0, 0.168, 0), "Out", "Quad", 0.4)
  258. wait(0.45)
  259. UI_Open = true
  260. end
  261. end
  262. end)
  263. local FastPunchFunc = coroutine.wrap(function()
  264. while wait() do
  265. local combat = game["ReplicatedStorage"]["rems"]["combat"]
  266. local args = {[1] = 1, [2] = "com", [3] = "സസ്നേഹം"}
  267. combat:FireServer(unpack(args))
  268. end
  269. end)
  270.  
  271. BringX.MouseButton1Click:Connect(function()
  272. BringXFrame.Visible = true
  273. FunctionsFrame.Visible = false
  274. end)
  275. Functions.MouseButton1Click:Connect(function()
  276. BringXFrame.Visible = false
  277. FunctionsFrame.Visible = true
  278. end)
  279. Exit.MouseButton1Click:Connect(function()
  280. MainFrame:TweenPosition(UDim2.new(-2, 0, 0.168, 0), "Out", "Quad", 0.4)
  281. wait(0.41)
  282. OPUHx:Destroy()
  283. end)
  284. FastPunchOn.MouseButton1Click:Connect(function()
  285. FastPunchFunc()
  286. end)
  287. BringAllChests.MouseButton1Click:Connect(function()
  288. for i, v in pairs(workspace.chests:GetChildren()) do
  289. if v.Name == "chest" then
  290. v.base.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(5,0,5)
  291. end
  292. end
  293. for i, v in pairs(workspace.chests:GetChildren()) do
  294. if v.Name == "goldchest" then
  295. v.base.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(5,0,5)
  296. end
  297. end
  298. end)
  299. BringMaterials.MouseButton1Click:Connect(function()
  300. for i, v in pairs(workspace.materials:GetChildren()) do
  301. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(5, 0, 0)
  302. end
  303. end)
  304. Farm.MouseButton1Click:Connect(function()
  305. local p = game.Players.LocalPlayer.Character.HumanoidRootPart
  306. _G.toggled = true
  307. while _G.toggled == true do
  308. for i, v in pairs(workspace.mobs:GetChildren()) do
  309. if v.Name == "Pirate" then
  310. v.HumanoidRootPart.CFrame = p.CFrame + Vector3.new(3.5,0,0)
  311. wait()
  312. v.HumanoidRootPart.CFrame = p.CFrame + Vector3.new(3.5,0,0)
  313. wait()
  314. end
  315. end
  316. end
  317. end)
  318. BuyDf.MouseButton1Click:Connect(function()
  319. game.ReplicatedStorage.rems.dps:FireServer("buydf")
  320. end)
  321. InfBeli.MouseButton1Click:Connect(function()
  322. local _1 = "\224\180\184\224\180\184\224\181\141\224\180\168\224\181\135\224\180\185\224\180\130"
  323. local _2 = "Torch"
  324. local _3 = -1000000
  325. game.ReplicatedStorage.rems.shop:FireServer("tools", _2, _3, _1)
  326. end)
  327. GiveBounty.MouseButton1Click:Connect(function()
  328. local me = game.Players.LocalPlayer
  329. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  330. if v ~= me then
  331. game.ReplicatedStorage.rems.cdmg:FireServer("\224\180\184\224\180\184\224\181\141\224\180\168\224\181\135\224\180\185\224\180\130", me.Data, v.Data, v.Character.Humanoid, 2500, nil, nil, 1, true, "combat", true, true)
  332. end
  333. end
  334. end)
  335.  
  336. local focused = false
  337. local searching = false
  338. function createBtn(name, text)
  339. local Btn = Instance.new("TextButton")
  340. Btn.Name = tostring(name)
  341. Btn.Parent = Holder
  342. Btn.BackgroundColor3 = Color3.new(0.258824, 0.529412, 0.764706)
  343. Btn.BorderSizePixel = 0
  344. Btn.Position = UDim2.new(0.260146052, 0, 0.10341996, 0)
  345. Btn.Size = UDim2.new(0.49391228, 0, 0.0523191057, 0)
  346. Btn.AutoButtonColor = false
  347. Btn.Font = Enum.Font.SourceSansBold
  348. Btn.Text = tostring(text)
  349. Btn.TextColor3 = Color3.new(1, 1, 1)
  350. Btn.TextSize = 20
  351. Btn.MouseButton1Click:Connect(function()
  352. workspace[name].Handle.CFrame = root.CFrame + Vector3.new(2,0,0)
  353. searching = false
  354. end)
  355. end
  356. BXFInput.Focused:Connect(function()
  357. focused = true
  358. while focused do
  359. wait()
  360. for a,b in pairs(Holder:GetChildren()) do
  361. if b.ClassName == "TextButton" then
  362. b.Visible = false
  363. end
  364. end
  365. for i,v in pairs(Holder:GetChildren()) do
  366. if v.ClassName ~= "UIGridLayout" then
  367. if string.find(tostring(string.lower(v.Text)), tostring(string.lower(BXFInput.Text))) then
  368. if v.ClassName == "TextButton" then
  369. searching = true
  370. v.Visible = true
  371. end
  372. end
  373. end
  374. end
  375. end
  376. end)
  377. function removeBtn(name)
  378. Holder[name]:Destroy()
  379. end
  380. local objCheck = coroutine.wrap(function()
  381. while wait(1) do
  382. if searching == true then
  383. wait()
  384. else
  385. for x, z in pairs(Holder:GetChildren()) do
  386. if z.ClassName == "TextButton" then
  387. z:Destroy()
  388. end
  389. end
  390. for i, v in pairs(workspace:GetChildren()) do
  391. if v.ClassName == "Tool" then
  392. createBtn(v.Name, v.Name)
  393. end
  394. end
  395. end
  396. end
  397. end)
  398. objCheck()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement