sonywalker

DONT WORRY XD

Sep 11th, 2020
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.77 KB | None | 0 0
  1. --[[
  2.     King Piece v1.0
  3.     By Jexytd or QuadSquad (@v3rmillion)
  4. ]]
  5.  
  6. -- Destroy GUI already exist --
  7. if game:service'CoreGui':FindFirstChild("FinityUI") then game:service'CoreGui':FindFirstChild("FinityUI"):Destroy() end
  8.  
  9. -- Send a notifications if player on the game --
  10. if game.PlaceId == 4520749081 then
  11.     game:service'StarterGui':SetCore("SendNotification", {
  12.         Title = "Discord Server";
  13.         Text = "> https://discord.gg/fGHVnPN <";
  14.     })
  15.     game:service'StarterGui':SetCore("SendNotification", {
  16.         Title = "Notification";
  17.         Text = "> GUI Loaded! <";
  18.     })
  19. else
  20.     game:service'StarterGui':SetCore("SendNotification", {
  21.         Title = "Notification";
  22.         Text = "GUI not loaded! you are on wrong game lmao";
  23.     })
  24.     return
  25. end
  26.  
  27. -- Local Variable --
  28. local Players = game:service'Players'
  29. local LocalP = Players.LocalPlayer
  30.  
  31. -- Global Variable --
  32. Enabled = false
  33. Disabled = false
  34. TpDF = false
  35. Distance = -12
  36. SkillZ = false
  37. SkillX = false
  38. SkillC = false
  39. SkillV = false
  40. SkillB = false
  41.  
  42. -- NoClip --
  43. Stepped = game:service'RunService'.RenderStepped:Connect(function()
  44.     if Enabled then
  45.         LocalP.Character.Humanoid:ChangeState(11)
  46.     end
  47.     if Disabled then
  48.         Stepped:Disconnect()
  49.     end
  50. end)
  51.  
  52. -- FinityUI Lib --
  53. local Finity = loadstring(game:HttpGet("http://finity.vip/scripts/finity_lib.lua"))()
  54. local FinityWindow = Finity.new(true) -- 'true' dark 'false' white
  55. FinityWindow.ChangeToggleKey(Enum.KeyCode.Insert)
  56.  
  57. -- Categories --
  58. local c1 = FinityWindow:Category("Main")
  59. local c2 = FinityWindow:Category("Teleports")
  60. local c999 = FinityWindow:Category("Credits")
  61.  
  62. -- Credits Sector --
  63. local s1 = c999:Sector("Finity Library Creator")
  64. local s2 = c999:Sector("Script Creator")
  65.  
  66. -- Credits --
  67. s1:Cheat("Label", "detourious (v3rmillion)")
  68. s1:Cheat("Label", "deto#7612 (discord)")
  69. s2:Cheat("Label", "QuadSquad (v3rmillion)")
  70. s2:Cheat("Label", "Jexytd#3339 (discord)")
  71. s2:Cheat("Label", "Discord Server (discord.gg/fGHVnPN)")
  72.  
  73. -- Main Sector --
  74. local s1 = c1:Sector("AutoFarm")
  75. local s2 = c1:Sector("Misc")
  76.  
  77. -- Mobs Dropdown --
  78. local mobs = s1:Cheat("Dropdown", "Mobs", function(SelectedOption)
  79.     SelectedMob = SelectedOption
  80. end, {options = {}, default = ""})
  81.  
  82. -- Remove value duplicated in table/array --
  83. local function removeDuplicates(arr)
  84.     local newArray = {}
  85.     local checkerTbl = {}
  86.     for _, element in ipairs(arr) do
  87.         if not checkerTbl[element] then -- if there is not yet a value at the index of element, then it will be nil, which will operate like false in an if statement
  88.             checkerTbl[element] = true
  89.             table.insert(newArray, element)
  90.         end
  91.     end
  92.     return newArray
  93. end
  94.  
  95. -- Get Mobs and then insert to table/array --
  96. mobA = {}
  97. for _,mob in pairs(game:service'ReplicatedStorage'["MOB"]:GetChildren()) do
  98.     if mob:IsA("Model") and mob:FindFirstChild("Humanoid") and mob:FindFirstChild("HumanoidRootPart") then
  99.         table.insert(mobA, mob.Name)
  100.     end
  101. end
  102.  
  103. mobB = removeDuplicates(mobA)
  104. for i = 1, #mobB do
  105.     mobs:AddOption(mobB[i])
  106. end
  107.  
  108. -- Tool's Dropdown --
  109. local weapon = s1:Cheat("Dropdown", "Weapon", function(SelectedOption)
  110.     SelectedWeapon = SelectedOption
  111. end, {options = {}, default = ""})
  112. for i,v in ipairs(LocalP.Backpack:GetChildren()) do
  113.     if v:IsA("Tool") then
  114.         weapon:AddOption(v.Name)
  115.     end
  116. end
  117. for i2,v2 in pairs(LocalP.Character:GetChildren()) do
  118.     if v2:IsA("Tool") then
  119.         weapon:AddOption(v2.Name)
  120.     end
  121. end
  122.  
  123. -- Distance Textbox --
  124. local distances = s1:Cheat("Textbox", "Distance", function(value)
  125.     valDist = value
  126. end, {placeholder = "Distance"})
  127.  
  128. -- Enabled Checkbox --
  129. local enabled = s1:Cheat("Checkbox", "Enabled", function(state)
  130.     Enabled = state
  131.     while Enabled do
  132.         if Enabled and not Disabled then
  133.             for i,v in pairs(game:service'ReplicatedStorage'["MOB"]:GetChildren()) do
  134.                 if Enabled and not Disabled and v:IsA("Model") and v:FindFirstChild("Humanoid") and v:FindFirstChild("HumanoidRootPart") and v.Humanoid.Health > 0 and v.Name == SelectedMob then
  135.                      if Enabled and not Disabled then
  136.                         repeat
  137.                             pcall(function()
  138.                                 LocalP.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame + Vector3.new(0, Distance, 0)
  139.                             end)
  140.                             wait()
  141.                             pcall(function()
  142.                                 if LocalP:FindFirstChild("Backpack"):FindFirstChild(SelectedWeapon) then
  143.                                     local tool = LocalP:WaitForChild("Backpack"):FindFirstChild(SelectedWeapon)
  144.                                     wait(.4)
  145.                                     LocalP.Character.Humanoid:EquipTool(tool)
  146.                                 end
  147.                                 if LocalP.Character:FindFirstChildOfClass("Tool").Equipped then
  148.                                     local tool = LocalP.Character:FindFirstChildOfClass("Tool")
  149.                                     if tool:FindFirstChildOfClass("RemoteEvent") then
  150.                                         for _,event in pairs(tool:GetChildren()) do
  151.                                             if event:IsA("RemoteEvent") then
  152.                                                 if SkillZ and event.Name == "Z" then
  153.                                                     wait(1)
  154.                                                     event:FireServer(v.HumanoidRootPart.Position, false)
  155.                                                     event:FireServer(v.HumanoidRootPart.Position, true)
  156.                                                 end
  157.                                                 if SkillX and event.Name == "X" then
  158.                                                     wait(1)
  159.                                                     event:FireServer(v.HumanoidRootPart.Position)
  160.                                                 end
  161.                                                 if SkillC and event.Name == "C" then
  162.                                                     wait(1)
  163.                                                     event:FireServer(v.HumanoidRootPart.Position, false)
  164.                                                     event:FireServer(v.HumanoidRootPart.Position, true)
  165.                                                 end
  166.                                                 if SkillV and event.Name == "V" then
  167.                                                     wait(1)
  168.                                                     event:FireServer(LocalP.Character.HumanoidRootPart.Position)
  169.                                                 end
  170.                                                 if SkillB and event.Name == "B" then
  171.                                                     wait(1)
  172.                                                     event:FireServer(LocalP.Character.HumanoidRootPart.Position)
  173.                                                 end
  174.                                             end
  175.                                         end
  176.                                     end
  177.                                 end
  178.                             end)
  179.                         until Disabled or not Enabled or not v.Parent or v.Humanoid.Health <= 0
  180.                     end
  181.                 end
  182.             end
  183.         end
  184.     end
  185. end)
  186.  
  187. -- AutoSkillZ Checkbox --
  188. local z = s1:Cheat("Checkbox", "Z", function(state)
  189.     SkillZ = state
  190. end)
  191.  
  192. -- AutoSkillX Checkbox --
  193. local x = s1:Cheat("Checkbox", "X", function(state)
  194.     SkillX = state
  195. end)
  196.  
  197. -- AutoSkillC Checkbox --
  198. local c = s1:Cheat("Checkbox", "C", function(state)
  199.     SkillC = state
  200. end)
  201.  
  202. -- AutoSkillV Checkbox --
  203. local v = s1:Cheat("Checkbox", "V", function(state)
  204.     SkillV = state
  205. end)
  206.  
  207. -- AutoSkillB Checkbox --
  208. local b = s1:Cheat("Checkbox", "B", function(state)
  209.     SkillB = state
  210. end)
  211.  
  212. -- Devil Fruit TP --
  213. local tpdf = s2:Cheat("Checkbox", "TP Devil Fruit", function(state)
  214.     TpDF = state
  215.     while TPDF and wait() do
  216.         --if workspace:FindFirstChildOfClass("Tool").ChildAdded then
  217.         for i,v in pairs(workspace:GetChildren()) do
  218.             if v:IsA("Tool") then
  219.                 local toolPart = v.Handle.CFrame
  220.                 LocalP.Character.Humanoid:ChangeState(11)
  221.                 LocalP.Character.HumanoidRootPart.CFrame = toolPart + Vector3.new(0, 1, 0)
  222.             end
  223.         end
  224.         --end
  225.     end
  226. end)
  227.  
  228. -- Destroy Gui Button
  229. local disabled = s2:Cheat("Button", "Destroy Gui", function()
  230.     Disabled = true
  231.     Enabled = false
  232.     if Disabled then
  233.         if game:service'CoreGui':FindFirstChild("FinityUI") then game:service'CoreGui':FindFirstChild("FinityUI"):Destroy() end
  234.         return
  235.     end
  236. end, {text = "Destroy Gui"})
  237.  
  238. -- Teleports Sector --
  239. local s1 = c2:Sector("Spawnpoint")
  240. local s2 = c2:Sector("Other")
  241.  
  242. -- Spawn Dropdown --
  243. local spawns = s1:Cheat("Dropdown", "Spawn", function(currentOption)
  244.     reeSpawnpoint = currentOption
  245. end, {options = {}, default = ""})
  246. for _,part in pairs(workspace:GetChildren()) do
  247.     if part:IsA("Part") and part.CanCollide == false and string.find(part.Name, "Spawn%d") then
  248.         spawns:AddOption(part.Name)
  249.     end
  250. end
  251.  
  252. -- Other Dropdown --
  253. local others = s2:Cheat("Dropdown", "Other", function(currentOption)
  254.     reeOthers = currentOption
  255. end, {options = {"DF Shop 1", "Katana", "Soru", "Gear 4", "Bisento", "Shark Blade", "Half Robot", "Buso Haki", "Pipe", "DF Shop 2", "Ken Haki", "Remove Fruit"}, default = ""})
  256.  
  257. -- Teleport Button --
  258. local tpspawn = s1:Cheat("Button", "Teleport", function()
  259.     for _,part in pairs(workspace:GetChildren()) do
  260.         if part:IsA("Part") and part.Name == reeSpawnpoint then
  261.             LocalP.Character.Humanoid:ChangeState(11)
  262.             LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 2, 0)
  263.         end
  264.     end
  265. end, {text = "Teleport"})
  266.  
  267. -- Teleport Button --
  268. local tpothers = s2:Cheat("Button", "Teleport", function()
  269.     if reeOthers == "DF Shop 1" then
  270.         local Spawnpoints = "Spawn1"
  271.         for _,part in pairs(workspace:GetChildren()) do
  272.             if part:IsA("Part") and part.Name == Spawnpoints then
  273.                 LocalP.Character.Humanoid:ChangeState(11)
  274.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  275.                 wait(.6)
  276.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  277.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "DFruitShop" then
  278.                         local root = v2.HumanoidRootPart.CFrame
  279.                         LocalP.Character.Humanoid:ChangeState(11)
  280.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  281.                     end
  282.                 end
  283.             end
  284.         end
  285.     elseif reeOthers == "Katana" then
  286.         local Spawnpoints = "Spawn1"
  287.         for _,part in pairs(workspace:GetChildren()) do
  288.             if part:IsA("Part") and part.Name == Spawnpoints then
  289.                 LocalP.Character.Humanoid:ChangeState(11)
  290.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  291.                 wait(.6)
  292.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  293.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "SwordShop" then
  294.                         local root = v2.HumanoidRootPart.CFrame
  295.                         LocalP.Character.Humanoid:ChangeState(11)
  296.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  297.                     end
  298.                 end
  299.             end
  300.         end
  301.     elseif reeOthers == "Soru" then
  302.         local Spawnpoints = "Spawn3"
  303.         for _,part in pairs(workspace:GetChildren()) do
  304.             if part:IsA("Part") and part.Name == Spawnpoints then
  305.                 LocalP.Character.Humanoid:ChangeState(11)
  306.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  307.                 wait(.6)
  308.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  309.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "SoruShop" then
  310.                         local root = v2.HumanoidRootPart.CFrame
  311.                         LocalP.Character.Humanoid:ChangeState(11)
  312.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  313.                     end
  314.                 end
  315.             end
  316.         end
  317.     elseif reeOthers == "Gear 4" then
  318.         local Spawnpoints = "Spawn4"
  319.         for _,part in pairs(workspace:GetChildren()) do
  320.             if part:IsA("Part") and part.Name == Spawnpoints then
  321.                 LocalP.Character.Humanoid:ChangeState(11)
  322.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  323.                 wait(.6)
  324.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  325.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "ShopGear4" then
  326.                         local root = v2.HumanoidRootPart.CFrame
  327.                         LocalP.Character.Humanoid:ChangeState(11)
  328.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  329.                     end
  330.                 end
  331.             end
  332.         end
  333.     elseif reeOthers == "Bisento" then
  334.         local Spawnpoints = "Spawn5"
  335.         for _,part in pairs(workspace:GetChildren()) do
  336.             if part:IsA("Part") and part.Name == Spawnpoints then
  337.                 LocalP.Character.Humanoid:ChangeState(11)
  338.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  339.                 wait(.6)
  340.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  341.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "SwordShop" then
  342.                         local root = v2.HumanoidRootPart.CFrame
  343.                         LocalP.Character.Humanoid:ChangeState(11)
  344.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  345.                     end
  346.                 end
  347.             end
  348.         end
  349.     elseif reeOthers == "Shark Blade" then
  350.         local Spawnpoints = "Spawn6"
  351.         for _,part in pairs(workspace:GetChildren()) do
  352.             if part:IsA("Part") and part.Name == Spawnpoints then
  353.                 LocalP.Character.Humanoid:ChangeState(11)
  354.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  355.                 wait(.6)
  356.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  357.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "SwordShop" then
  358.                         local root = v2.HumanoidRootPart.CFrame
  359.                         LocalP.Character.Humanoid:ChangeState(11)
  360.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  361.                     end
  362.                 end
  363.             end
  364.         end
  365.     elseif reeOthers == "Half Robot" then
  366.         local Spawnpoints = "Spawn6"
  367.         for _,part in pairs(workspace:GetChildren()) do
  368.             if part:IsA("Part") and part.Name == Spawnpoints then
  369.                 LocalP.Character.Humanoid:ChangeState(11)
  370.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  371.                 wait(.6)
  372.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  373.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "CyborgShop" then
  374.                         local root = v2.HumanoidRootPart.CFrame
  375.                         LocalP.Character.Humanoid:ChangeState(11)
  376.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  377.                     end
  378.                 end
  379.             end
  380.         end
  381.     elseif reeOthers == "Buso Haki" then
  382.         local Spawnpoints = "Spawn8"
  383.         for _,part in pairs(workspace:GetChildren()) do
  384.             if part:IsA("Part") and part.Name == Spawnpoints then
  385.                 LocalP.Character.Humanoid:ChangeState(11)
  386.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  387.                 wait(.6)
  388.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  389.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "BusoShop" then
  390.                         local root = v2.HumanoidRootPart.CFrame
  391.                         LocalP.Character.Humanoid:ChangeState(11)
  392.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  393.                     end
  394.                 end
  395.             end
  396.         end
  397.     elseif reeOthers == "Pipe" then
  398.         local Spawnpoints = "Spawn8"
  399.         for _,part in pairs(workspace:GetChildren()) do
  400.             if part:IsA("Part") and part.Name == Spawnpoints then
  401.                 LocalP.Character.Humanoid:ChangeState(11)
  402.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  403.                 wait(.6)
  404.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  405.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "SwordShop" then
  406.                         local root = v2.HumanoidRootPart.CFrame
  407.                         LocalP.Character.Humanoid:ChangeState(11)
  408.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  409.                     end
  410.                 end
  411.             end
  412.         end
  413.     elseif reeOthers == "DF Shop 2" then
  414.         local Spawnpoints = "Spawn8"
  415.         for _,part in pairs(workspace:GetChildren()) do
  416.             if part:IsA("Part") and part.Name == Spawnpoints then
  417.                 LocalP.Character.Humanoid:ChangeState(11)
  418.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  419.                 wait(.6)
  420.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  421.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "DFruitShop" then
  422.                         local root = v2.HumanoidRootPart.CFrame
  423.                         LocalP.Character.Humanoid:ChangeState(11)
  424.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  425.                     end
  426.                 end
  427.             end
  428.         end
  429.     elseif reeOthers == "Ken Haki" then
  430.         local Spawnpoints = "Spawn9"
  431.         for _,part in pairs(workspace:GetChildren()) do
  432.             if part:IsA("Part") and part.Name == Spawnpoints then
  433.                 LocalP.Character.Humanoid:ChangeState(11)
  434.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  435.                 wait(.6)
  436.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  437.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "KenShop" then
  438.                         local root = v2.HumanoidRootPart.CFrame
  439.                         LocalP.Character.Humanoid:ChangeState(11)
  440.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  441.                     end
  442.                 end
  443.             end
  444.         end
  445.     elseif reeOthers == "Remove Fruit" then
  446.         local Spawnpoints = "Spawn9"
  447.         for _,part in pairs(workspace:GetChildren()) do
  448.             if part:IsA("Part") and part.Name == Spawnpoints then
  449.                 LocalP.Character.Humanoid:ChangeState(11)
  450.                 LocalP.Character.HumanoidRootPart.CFrame = part.CFrame + Vector3.new(0, 0, 3)
  451.                 wait(.6)
  452.                 for i2,v2 in pairs(workspace.AntiTPNPC:GetChildren()) do
  453.                     if v2:IsA("Model") and v2:FindFirstChild("HumanoidRootPart") and v2.Name == "ShopRemoveFruit" then
  454.                         local root = v2.HumanoidRootPart.CFrame
  455.                         LocalP.Character.Humanoid:ChangeState(11)
  456.                         LocalP.Character.HumanoidRootPart.CFrame = root + Vector3.new(0, 0, 3)
  457.                     end
  458.                 end
  459.             end
  460.         end
  461.     end
  462. end, {text = "Teleport"})
  463.  
  464. -- Remove sea water damage & Remove effects game like Dash, Skill Effect, etc --
  465. while true and wait() do
  466.     if LocalP.Backpack:FindFirstChild("SwimScript") then
  467.         LocalP.Backpack:FindFirstChild("SwimScript"):Destroy()
  468.     end
  469.     if workspace.Effects.ChildAdded then
  470.         for i,v in pairs(workspace.Effects:GetChildren()) do
  471.             v:Destroy()
  472.         end
  473.     end
  474.     if valDist == nil or valDist == "" then
  475.         valDist = Distance
  476.     else
  477.         Distance = valDist
  478.     end
  479. end
Add Comment
Please, Sign In to add comment