Advertisement
PG_MCVN

Gui COmmand One Piece FInal Chapter

Jun 24th, 2018
2,478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.02 KB | None | 0 0
  1. --ORIGINAL SCRIPT MADE BY CLASSYINORI ON: DEC 26 2016, DON'T JUDGE MY SHITTY SCRIPTING.
  2. repeat wait() until game:GetService("Players").LocalPlayer and game:GetService("Players").LocalPlayer.Character
  3. local plr, char = game:GetService("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character
  4.  
  5. local globalStop = false
  6. local globalColor = 33/255
  7. local util = {}
  8.  
  9. --==--==--==--==--==--==--==--
  10. --EDIT STUFF HERE--
  11. local cmds = {
  12. "PRINT COMMANDS | [printcmds/cmds]",
  13. "e.g. : printcmds",
  14. "STOP ALL LOOPS | [stoploops/stop]",
  15. "e.g. : stoploops",
  16. "TELEPORT TO DF | [devilfruit/df] [delay (default = 0.5)] [loop? (true/t)] -- NOTE: IF USING LOOP, YOU MUST SPECIFY A DELAY (E.G 0.5.)",
  17. "e.g. : df 0.75 true",
  18. "TPKILL (BUGGY) | [tpkill/kill] [plrNameHere/mobs] [loop? (true/t)] -- NOTE: YOU CANNOT LOOPKILL PLAYERS.",
  19. "e.g. : tpkill mobs t",
  20. "GOD (FOR TPKILL) | [god]",
  21. "e.g. : god",
  22. }
  23. --END--
  24. --==--==--==--==--==--==
  25.  
  26. -- Objects
  27.  
  28. local UIWorkspace = Instance.new("ScreenGui")
  29. local TextLabel = Instance.new("TextLabel")
  30. local TextBox = Instance.new("TextBox")
  31.  
  32. -- Properties
  33.  
  34. UIWorkspace.Archivable = false
  35. UIWorkspace.Name = "UI Workspace"
  36. UIWorkspace.Parent = game.CoreGui
  37.  
  38. TextLabel.Parent = UIWorkspace
  39. TextLabel.BackgroundColor3 = Color3.new(globalColor, globalColor, globalColor)
  40. TextLabel.BackgroundTransparency = 0.05
  41. TextLabel.BorderSizePixel = 0
  42. TextLabel.Position = UDim2.new(0, 0, 0.800000012, 0)
  43. TextLabel.Size = UDim2.new(0, 80, 0, 30)
  44. TextLabel.Font = Enum.Font.SourceSans
  45. TextLabel.FontSize = Enum.FontSize.Size28
  46. TextLabel.Text = ">"
  47. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  48. TextLabel.TextSize = 26
  49. TextLabel.TextXAlignment = Enum.TextXAlignment.Right
  50.  
  51. TextBox.Parent = UIWorkspace
  52. TextBox.BackgroundColor3 = Color3.new(globalColor, globalColor, globalColor)
  53. TextBox.BackgroundTransparency = 0.05
  54. TextBox.BorderSizePixel = 0
  55. TextBox.Position = UDim2.new(0, 85, 0.800000012, 0)
  56. TextBox.Size = UDim2.new(1, 0, 0, 30)
  57. TextBox.Font = Enum.Font.SciFi
  58. TextBox.FontSize = Enum.FontSize.Size18
  59. TextBox.TextColor3 = Color3.new(1, 1, 1)
  60. TextBox.TextSize = 18
  61. TextBox.TextXAlignment = Enum.TextXAlignment.Left
  62.  
  63. local mouse = game.Players.LocalPlayer:GetMouse()
  64. mouse.KeyDown:Connect(function(Key)
  65. if string.byte(Key) == 13 then
  66. TextBox:CaptureFocus()
  67. TextBox.Text = ""
  68. end
  69. end)
  70.  
  71. TextBox.FocusLost:connect(function(enterPressed)
  72. if enterPressed then
  73. secondaryInit()
  74. local args = util.splitArgs(TextBox.Text)
  75.  
  76. --==--==--==--==--==--==--==--
  77. --EDIT STUFF HERE--
  78. if #args > 0 then
  79.  
  80. if args[1] == "printcmds" or args[1] == "cmds" then
  81. globalStop = false --bugfixing????
  82. util.log("COMMANDS (not case-sensitive):")
  83. for i = 1, #cmds do
  84. util.log(i.." | "..cmds[i])
  85. end
  86.  
  87. elseif args[1] == "devilfruit" or args[1] == "df" then
  88. local delayDf = 0.5
  89. if #args > 2 then
  90. if args[3] == "true" or args[3] == "t" then
  91. globalStop = false
  92. local tempRoutine = coroutine.create(function()
  93. repeat wait()
  94. for _, v in pairs(game:GetService("Workspace"):children()) do
  95. if string.find(string.lower(v.Name), "devilpoint") and not globalStop then
  96. char:FindFirstChild("HumanoidRootPart").CFrame = v.CFrame
  97. if #v:children() > 0 then
  98. globalStop = true
  99. end
  100. if #args > 1 then
  101. if tonumber(args[2]) then
  102. delayDf = args[2]
  103. end
  104. end
  105. wait(delayDf)
  106. end
  107. end
  108. until globalStop
  109. end)
  110. coroutine.resume(tempRoutine)
  111. end
  112. else
  113. globalStop = false
  114. for _, v in pairs(game:GetService("Workspace"):children()) do
  115. if string.find(string.lower(v.Name), "devilpoint") and not globalStop then
  116. char:FindFirstChild("HumanoidRootPart").CFrame = v.CFrame
  117. if #v:children() > 0 then
  118. globalStop = true
  119. end
  120. if #args > 1 then
  121. if tonumber(args[2]) then
  122. delayDf = args[2]
  123. end
  124. end
  125. wait(delayDf)
  126. end
  127. end
  128. end
  129.  
  130. elseif args[1] == "tpkill" or args[1] == "kill" then
  131. if #args > 1 then
  132. if args[2] == "mobs" then
  133. globalStop = false
  134. if #args > 2 then
  135. if args[3] == "true" or args[3] == "t" then
  136. local tempRoutine = coroutine.create(function()
  137. repeat wait()
  138. for _, v in pairs(game:GetService("Workspace"):children()) do
  139. if v:IsA("Model") and not globalStop then
  140. if string.find(v.Name, "Marine") or string.find(v.Name, "Pirate") or string.find(v.Name, "Fishman") then
  141. if not string.find(string.lower(v.Name), string.lower(plr.TextureGui.TextureId.Side.Value)) then
  142. repeat wait()
  143. char:FindFirstChild("HumanoidRootPart").CFrame = v:FindFirstChild("HumanoidRootPart").CFrame + v:FindFirstChild("HumanoidRootPart").CFrame.lookVector.unit * v:FindFirstChild("HumanoidRootPart").Size.Z/2
  144. --char:MoveTo(v:FindFirstChild("HumanoidRootPart").Position)
  145. game:GetService("Workspace").RemoteEvents.Hit:FireServer(.4)
  146. until v:FindFirstChild("Humanoid").Health < 1 or not v or globalStop
  147. end
  148. end
  149. end
  150. end
  151. until globalStop
  152. end)
  153. coroutine.resume(tempRoutine)
  154. end
  155. else
  156. globalStop = false
  157. for _, v in pairs(game:GetService("Workspace"):children()) do
  158. if v:IsA("Model") and not globalStop then
  159. if string.find(v.Name, "Marine") or string.find(v.Name, "Pirate") or string.find(v.Name, "Fishman") then
  160. if not string.find(string.lower(v.Name), string.lower(plr.TextureGui.TextureId.Side.Value)) then
  161. repeat wait()
  162. char:FindFirstChild("HumanoidRootPart").CFrame = v:FindFirstChild("HumanoidRootPart").CFrame + v:FindFirstChild("HumanoidRootPart").CFrame.lookVector.unit * v:FindFirstChild("HumanoidRootPart").Size.Z/2
  163. --char:MoveTo(v:FindFirstChild("HumanoidRootPart").Position)
  164. game:GetService("Workspace").RemoteEvents.Hit:FireServer(.4)
  165. until v:FindFirstChild("Humanoid").Health < 1 or not v or globalStop
  166. end
  167. end
  168. end
  169. end
  170. end
  171. else
  172. globalStop = false
  173. local victimThingy = util.findPlayer(args[2])
  174. if victimThingy and victimThingy.Character and not globalStop then
  175. repeat wait()
  176. char:FindFirstChild("HumanoidRootPart").CFrame = victimThingy:FindFirstChild("HumanoidRootPart").CFrame + victimThingy:FindFirstChild("HumanoidRootPart").CFrame.lookVector.unit * victimThingy:FindFirstChild("HumanoidRootPart").Size.Z/2
  177. --char:MoveTo(victimThingy:FindFirstChild("HumanoidRootPart").Position)
  178. game:GetService("Workspace").RemoteEvents.Hit:FireServer(.4)
  179. until victimThingy.Character:FindFirstChild("Humanoid").Health < 1 or globalStop
  180. end
  181. end
  182.  
  183. end
  184.  
  185. elseif args[1] == "god" then
  186. --took this method off v3rm, don't know original creator so can't credit them ;c
  187. if plr and plr.Character then
  188. if char:FindFirstChild("Humanoid") then
  189. char:FindFirstChild("Humanoid"):Destroy()
  190. local derp = Instance.new("Humanoid", char)
  191. derp.Name = "Humanoid" --idk if this is needed? :thinking:
  192. end
  193. end
  194. --could make it so you can ungod, but I can't be bothered ;3
  195.  
  196. elseif args[1] == "stoploops" or args[1] == "stop" then
  197. globalStop = true
  198.  
  199. end
  200. end
  201. --END--
  202. --==--==--==--==--==--==--==--
  203.  
  204. end
  205. end)
  206.  
  207. function init()
  208. repeat wait() until game:GetService("Players").LocalPlayer and game:GetService("Players").LocalPlayer.Character
  209. plr, char = game:GetService("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character
  210. util.printf("Welcome, "..plr.Name)
  211.  
  212. --==--==--==--==--==--==--==--
  213. --EDIT STUFF HERE--
  214. util.log("GAME INFO: 'ONE PIECE: FINAL CHAPTER'")
  215. util.log("COMMANDS (not case-sensitive):")
  216. for i = 1, #cmds do
  217. util.log(i.." | "..cmds[i])
  218. end
  219. --END--
  220. --==--==--==--==--==--==--==--
  221.  
  222. end
  223.  
  224. function secondaryInit()
  225. repeat wait() until game:GetService("Players").LocalPlayer and game:GetService("Players").LocalPlayer.Character
  226. plr, char = game:GetService("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character
  227. end
  228.  
  229. function util.findPlayer(str)
  230. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  231. if string.lower(v.Name) == string.lower(str) or string.find(string.lower(v.Name), string.lower(str)) then
  232. return v
  233. end
  234. end
  235. end
  236.  
  237. function util.splitArgs(str)
  238. local tempArgs = {}
  239. for i in string.gmatch(str, "%S+") do
  240. table.insert(tempArgs, string.lower(i))
  241. end
  242. return tempArgs
  243. end
  244.  
  245. function util.printf(str)
  246. TextBox.Text = ""
  247. for i = 1, #str do
  248. TextBox.Text = TextBox.Text..string.sub(str, i, i)
  249. wait(.05)
  250. end
  251. wait(1)
  252. TextBox.Text = ""
  253. end
  254.  
  255. function util.log(str)
  256. print("[--INORI--] "..str)
  257. end
  258.  
  259. init()
  260. char:FindFirstChild("Humanoid").Died:connect(function()
  261. secondaryInit()
  262. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement