Advertisement
sonywalker

sl2 Shinobi Life 2 | AutoFarm | AutoWar | AutoJin | AutoScroll | AutoQuest

May 6th, 2019 (edited)
15,667
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 31.19 KB | None | 0 1
  1. --[[
  2. GAME LINK https://www.roblox.com/games/4616652839/TEN-TAILS-Shinobi-Life-2
  3. v3rm: https://v3rmillion.net/showthread.php?tid=1063031
  4. Discord: reav#2966
  5. Discord Server: https://discord.gg/aDRStgw
  6. Usage:
  7. loadstring(game:HttpGet("https://raw.githubusercontent.com/reavscripts/sl2_autofarm/main/main.lua", true))()
  8. ]]
  9.  
  10. repeat wait() until game:IsLoaded()
  11. --old-antitp bypass
  12. if workspace:FindFirstChild("CCoff") then
  13.     game:GetService("Workspace").CCoff:Destroy()
  14. end
  15. --antiafk
  16. local VirtualUser=game:service'VirtualUser'
  17.     game:service'Players'.LocalPlayer.Idled:connect(function()
  18.     warn("anti-afk")
  19.     VirtualUser:CaptureController()
  20.     VirtualUser:ClickButton2(Vector2.new())
  21. end)
  22. --variables
  23. local player = game.Players.LocalPlayer
  24. local mission = player.PlayerGui:WaitForChild("Main"):WaitForChild("ingame"):WaitForChild("Missionstory")
  25. local menuplace = 4616652839
  26. local forestplace = 5447073001
  27. local rainplace = 5084678830
  28. local trainingplace = 5431071837
  29. local akatsukiplace = 5431069982
  30. local villageplace = game:GetService("Workspace"):FindFirstChild("rank")
  31. local warplace = game:GetService("Workspace"):FindFirstChild("warmode")
  32. function toTarget(pos, targetPos, targetCFrame)
  33.     local tween_s = game:service"TweenService"
  34.     local info = TweenInfo.new((targetPos - pos).Magnitude/getgenv().speed, Enum.EasingStyle.Linear)
  35.     local tween, err = pcall(function()
  36.         local tween = tween_s:Create(game:GetService("Players").LocalPlayer.Character["HumanoidRootPart"], info, {CFrame = targetCFrame * CFrame.fromAxisAngle(Vector3.new(1,0,0), math.rad(90))})
  37.         tween:Play()
  38.     end)
  39.     if not tween then return err end
  40. end
  41.  
  42. --loading wally ui revamped By Aika
  43. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  44. _G.ButtonColor = Color3.fromRGB(5, 16, 20);
  45. _G.ButtonTextColor = Color3.fromRGB(247, 95, 28);
  46. _G.PointerColor = Color3.fromRGB(247, 95, 28);
  47. _G.SecondaryColor = Color3.fromRGB(0, 102, 255);
  48. _G.TertiaryColor = Color3.fromRGB(5, 16, 20);
  49. _G.ToggleColor = Color3.fromRGB(247, 95, 28);
  50. _G.MainTextColor = Color3.fromRGB(255, 255, 255);
  51. _G.MainColor = Color3.fromRGB(247, 95, 28);
  52. _G.SliderColor = Color3.fromRGB(247, 95, 28);
  53. getgenv().speed = 500
  54. local w = library:CreateWindow("Shinobi Life 2")
  55. if villageplace or game.PlaceId == trainingplace or game.PlaceId == rainplace or game.PlaceId == akatsukiplace or game.PlaceId == forestplace then
  56.     --AUTOFARM
  57.     local b = w:CreateFolder("AutoFarm")
  58.     b:Label("To prevent issues farm in a ps",{
  59.         TextSize = 16;
  60.         TextColor = Color3.fromRGB(255,255,255);
  61.         BgColor = Color3.fromRGB(247, 95, 28);
  62.     })
  63.     local autofarm
  64.     b:Toggle("AutoFarm",function(bool)
  65.         autofarm = bool
  66.     end)
  67.     local candies
  68.     b:Toggle("Farm candies",function(bool)
  69.         candies = bool
  70.     end)
  71.     local speed
  72.     b:Slider("Tween Speed",{
  73.         min = 500;
  74.         max = 2500;
  75.         precise = false;
  76.         },function(speed)
  77.         getgenv().speed = speed
  78.     end)
  79.     local scrollfarm
  80.     b:Toggle("Scroll Sniper",function(bool)
  81.         scrollfarm = bool
  82.     end)
  83.     local jinfarm
  84.     b:Toggle("JinFarm (instakill)",function(bool)
  85.         jinfarm = bool
  86.     end)
  87.     local RANKUP
  88.     b:Toggle("AutoRank",function(bool)
  89.         RANKUP = bool
  90.     end)
  91.  
  92.     local d = w:CreateFolder("Quests Maker")
  93.     d:Button("Rushs",function()
  94.         for i = 1,300 do
  95.             game.Players.LocalPlayer.Character.combat.update:FireServer("rushw")
  96.             wait(.25)
  97.         end
  98.     end)
  99.     d:Button("Jumps",function()
  100.         for v = 1,300 do
  101.             game.Players.LocalPlayer.Character.combat.update:FireServer("takemovement2")
  102.             wait(.25)
  103.         end
  104.     end)
  105.     d:Button("Chakra Charges",function()
  106.         for i = 1,500 do
  107.             game.Players.LocalPlayer.Character.combat.update:FireServer("key","c")
  108.             wait(.1)
  109.             game.Players.LocalPlayer.Character.combat.update:FireServer("key","cend")
  110.             wait(.5)
  111.         end
  112.     end)
  113.     d:Button("Punches",function()
  114.         for i = 1,999 do
  115.             game.Players.LocalPlayer.Character.combat.update:FireServer("mouse1",true)
  116.             wait(.3)
  117.         end
  118.     end)
  119.     d:Button("TP TrainLog",function()
  120.         toTarget(player.Character.HumanoidRootPart.Position,workspace.npc.logtraining:FindFirstChild("HumanoidRootPart").Position,CFrame.new(game:GetService("Workspace").npc.logtraining:FindFirstChild("HumanoidRootPart").Position))
  121.     end)
  122.  
  123.     game:GetService('RunService').Stepped:connect(function()
  124.         if autofarm or candies then
  125.             pcall(function()
  126.                 game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  127.             end)
  128.         end
  129.     end)
  130.     local green = "http://www.roblox.com/asset/?id=5459241648"
  131.     local red = "http://www.roblox.com/asset/?id=5459241799"
  132.     local candy = "http://www.roblox.com/asset/?id=5710748193"
  133.     spawn(function()
  134.         while wait() do
  135.             if autofarm then
  136.                 if  player.currentmission.Value == nil then
  137.                     for i,v in pairs(workspace.missiongivers:GetChildren()) do
  138.                         pcall(function()
  139.                             if player.currentmission.Value == nil and v.Name == "" and v:FindFirstChild("Head") and v.Head:FindFirstChild("givemission").Enabled and v.Head.givemission:FindFirstChild("color").Visible  then
  140.                                 local TALK = v:FindFirstChild("Talk")
  141.                                 local lvl = player.statz.lvl.lvl.Value
  142.                                 if lvl <= 699 then
  143.                                     if player.currentmission.Value == nil  and v.Talk:FindFirstChild("typ").Value == "defeat" and v.Head.givemission.Enabled and v.Head.givemission.color.Visible and v.Head.givemission.color.Image == green then
  144.                                         local getmission = v:FindFirstChild("HumanoidRootPart")
  145.                                         local clienttalk = v:FindFirstChild("CLIENTTALK")
  146.                                         repeat wait(.3)
  147.                                             toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position+Vector3.new(0,-8,0)))
  148.                                             if (player.Character.HumanoidRootPart.Position-v.HumanoidRootPart.Position).Magnitude < 10 then
  149.                                                 clienttalk:FireServer()
  150.                                                 wait(.3)
  151.                                                 clienttalk:FireServer("accept")
  152.                                             end
  153.                                         until mission.Visible or v:FindFirstChild("Head").givemission.Enabled == false or player.currentmission.Value == "mission" or not autofarm
  154.                                     end
  155.                                 elseif lvl >= 700 then
  156.                                     if player.currentmission.Value == nil and TALK.typ.Value == "defeat" and v.Head.givemission.Enabled and v.Head.givemission.color.Visible and v.Head.givemission.color.Image == green or v.Head.givemission.color.Image == red then
  157.                                         local getmission = v:FindFirstChild("HumanoidRootPart")
  158.                                         local clienttalk = v:FindFirstChild("CLIENTTALK")
  159.                                         repeat wait(.3)
  160.                                             toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position+Vector3.new(0,-8,0)))
  161.                                             if (player.Character.HumanoidRootPart.Position-v.HumanoidRootPart.Position).Magnitude < 10 then
  162.                                                 clienttalk:FireServer()
  163.                                                 wait(.3)
  164.                                                 clienttalk:FireServer("accept")
  165.                                             end
  166.                                         until mission.Visible or v:FindFirstChild("Head").givemission.Enabled == false or player.currentmission.Value == "mission" or not autofarm
  167.                                     end
  168.                                 end
  169.                             end
  170.                         end)
  171.                     end
  172.                 else
  173.                     for i,v in pairs(workspace.npc:GetChildren()) do
  174.                         pcall(function()
  175.                             if v.ClassName == "Model" and v:FindFirstChild("npctype") and string.find(v.Name, "npc") and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v.Head.CFrame.Y > -1000 then
  176.                                 repeat wait(.4)
  177.                                     toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position+Vector3.new(0,-8,0)))
  178.                                     v.Humanoid.Health = 0
  179.                                 until v.Humanoid.Health == 0 or not autofarm or player.currentmission.Value == nil
  180.                             end
  181.                         end)
  182.                     end
  183.                 end
  184.             end
  185.         end
  186.     end)
  187.     spawn(function()
  188.         while wait() do
  189.             if candies then
  190.                 local spins = player.statz.spins.Value
  191.                 if spins < 500 then
  192.                     for i,v in pairs(workspace.missiongivers:GetChildren()) do
  193.                         pcall(function()
  194.                             if mission.Visible == false and v.ClassName == "Model" and v:FindFirstChild("Head"):FindFirstChild("givemission").Enabled and v:FindFirstChild("CLIENTTALK") and v:FindFirstChild("Talk") and string.find(v.Talk.talk1.Value, "TRICK OR TREAT") and v.Talk:FindFirstChild("typ").Value == "halloweenevent" and v.Head.givemission.color.Image == candy then
  195.                                 repeat wait(.3)
  196.                                     toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position+Vector3.new(0,-5,0)))
  197.                                     v.CLIENTTALK:FireServer()
  198.                                     wait(.2)
  199.                                     v.CLIENTTALK:FireServer("accept")
  200.                                 until v:FindFirstChild("Head").givemission.Enabled == false or not candies
  201.                             end
  202.                         end)
  203.                     end
  204.                 else
  205.                     print("max spins reached 500")
  206.                 end
  207.             end
  208.         end
  209.     end)
  210.     local function SCROLLFARM()
  211.         for i,v in pairs(game.workspace.GLOBALTIME:GetChildren()) do
  212.             if v.ClassName == "Model" and v:FindFirstChild("sh") and v.sh.Position.Y > -1000 and v.sh.Position.Y < 2000 then
  213.                 local scrollA = v.sh:FindFirstChild("invoke")
  214.                 print("SCROLL SPAWNED")
  215.                 pcall(function()
  216.                     toTarget(game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position,v.sh.Position,CFrame.new(v.sh.Position))
  217.                 end)
  218.                 scrollA:FireServer(game.Players.LocalPlayer)
  219.                 fireclickdetector(v.sh.ClickDetector)
  220.             end
  221.         end
  222.     end
  223.     local function SCROLLFARM1()
  224.         for i,v in pairs(game.workspace:GetChildren()) do
  225.             if v.ClassName == "Model" and v:FindFirstChild("sh") and v.sh.Position.Y > -1000 and v.sh.Position.Y < 2000 then
  226.                 local scrollA = v.sh:FindFirstChild("invoke")
  227.                 print("SCROLL SPAWNED in workspace")
  228.                 pcall(function()
  229.                     toTarget(game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position,v.sh.Position,CFrame.new(v.sh.Position))
  230.                     scrollA:FireServer(game.Players.LocalPlayer)
  231.                     fireclickdetector(v.sh.ClickDetector)
  232.                 end)
  233.             end
  234.         end
  235.     end
  236.     spawn(function()
  237.         while wait() do
  238.             if scrollfarm then
  239.                 repeat wait()
  240.                     SCROLLFARM()
  241.                     SCROLLFARM1()
  242.                 until not scrollfarm or not war or not war2
  243.             end
  244.         end
  245.     end)
  246.     local function JINFARM()
  247.         for i,v in pairs(game:GetService("Workspace").npc:GetChildren()) do
  248.             if v.Name == "npc1" then
  249.                 repeat wait()
  250.                     pcall(function()
  251.                         toTarget(game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position+Vector3.new(0,-25,0)))
  252.                         player.Character.combat.update:FireServer("mouse1", true)
  253.                         wait(.1)
  254.                         v.Humanoid.HealthChanged:Connect(function()
  255.                             v.Humanoid.Health = 0
  256.                         end)
  257.                     end)
  258.                 until v.Humanoid.Health == 0 or not jinfarm
  259.             end
  260.         end
  261.     end
  262.     spawn(function()
  263.         while wait() do
  264.             if jinfarm then
  265.                 JINFARM()
  266.             end
  267.         end
  268.     end)
  269.     spawn(function()
  270.         while wait() do
  271.             if RANKUP and player.statz.lvl:FindFirstChild("lvl").Value == 1000 then
  272.                 repeat wait()
  273.                     game.Players.LocalPlayer.startevent:FireServer("rankup")
  274.                 until player.statz.lvl:FindFirstChild("lvl").Value == 1 or not RANKUP
  275.             end
  276.         end
  277.     end)
  278. end
  279. if villageplace or game.PlaceId == trainingplace or game.PlaceId == rainplace or game.PlaceId == akatsukiplace or game.PlaceId == forestplace then
  280.     local g = w:CreateFolder("Infinite Mode")
  281.     g:Label("Enable your mode and setup when charge chakra (not max)",{
  282.         TextSize = 15;
  283.         TextColor = Color3.fromRGB(255,255,255);
  284.         BgColor = Color3.fromRGB(247, 95, 28);
  285.     })
  286.     local when = 100000
  287.     g:Slider("When charge(NOT MAX)",{
  288.         min = 30000;
  289.         max = 200000;
  290.         precise = false;
  291.     },function(z)
  292.         when = z
  293.     end)    
  294.     g:Button("InfiniteMode",function()
  295.         local mode = game.Players.LocalPlayer.Character.combat.mode
  296.         local copy = mode:Clone()
  297.         copy.Parent = mode.Parent
  298.         mode:Destroy()
  299.         local chakra = string.split(game.Players.LocalPlayer.PlayerGui.Main.ingamearena.Bar.cha.Text,"CHA: ")[2]
  300.         c = chakra:gsub("CHA%:","")
  301.         local cha
  302.         local function chakracheck()
  303.             chakra = string.split(game.Players.LocalPlayer.PlayerGui.Main.ingamearena.Bar.cha.Text,"CHA: ")[2]
  304.             c = chakra:gsub("CHA%:","")
  305.             cha = c
  306.         end
  307.         spawn(function()
  308.             while wait() do
  309.                 if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 0 then
  310.                     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  311.                 end
  312.                 chakracheck()
  313.             end
  314.         end)
  315.         spawn(function()
  316.             while wait() do
  317.                 if tonumber(cha) < tonumber(when) then
  318.                     game.Players.LocalPlayer.Character.combat.update:FireServer("key","c")
  319.                 else
  320.                     game.Players.LocalPlayer.Character.combat.update:FireServer("key","cend")
  321.                 end
  322.             end
  323.         end)
  324.     end)
  325.     g:Button("Disable InfMode",function()
  326.         player.Character:BreakJoints()
  327.     end)
  328. end
  329. if villageplace or game.PlaceId == trainingplace or game.PlaceId == rainplace or game.PlaceId == akatsukiplace or game.PlaceId == forestplace then
  330.     local h = w:CreateFolder("Auto Chakra")
  331.     h:Label("Setup when charge chakra (also max)",{
  332.         TextSize = 16;
  333.         TextColor = Color3.fromRGB(255,255,255);
  334.         BgColor = Color3.fromRGB(247, 95, 28);
  335.     })
  336.     local infchakra
  337.     h:Toggle("Charge Chakra+Move",function(bool)
  338.         infchakra = bool
  339.     end)
  340.     local when = 100000
  341.     h:Slider("When charge(NOT MAX)",{
  342.         min = 30000;
  343.         max = 250000;
  344.         precise = false;
  345.     },function(z)
  346.         when = z
  347.     end)    
  348.     spawn(function()
  349.         while wait() do
  350.             if infchakra then
  351.                 local chakra = string.split(game.Players.LocalPlayer.PlayerGui.Main.ingamearena.Bar.cha.Text,"CHA: ")[2]
  352.                 c = chakra:gsub("CHA%:","")
  353.                 local cha
  354.                 local function chakracheck()
  355.                     chakra = string.split(game.Players.LocalPlayer.PlayerGui.Main.ingamearena.Bar.cha.Text,"CHA: ")[2]
  356.                     c = chakra:gsub("CHA%:","")
  357.                     cha = c
  358.                 end
  359.                 spawn(function()
  360.                     while wait() do
  361.                         if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 0 then
  362.                             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  363.                         end
  364.                         chakracheck()
  365.                     end
  366.                 end)
  367.                 spawn(function()
  368.                     while wait() do
  369.                         if tonumber(cha) < tonumber(when) then
  370.                             game.Players.LocalPlayer.Character.combat.update:FireServer("key","c")
  371.                         else
  372.                             game.Players.LocalPlayer.Character.combat.update:FireServer("key","cend")
  373.                         end
  374.                     end
  375.                 end)
  376.             end
  377.         end
  378.     end)
  379.     h:Label("Dont use INFMODE and INFCHAKRA together",{
  380.         TextSize = 15;
  381.         TextColor = Color3.fromRGB(255,255,255);
  382.         BgColor = Color3.fromRGB(247, 95, 28);
  383.     })
  384. end
  385. if warplace then
  386.     --WAR
  387.     local c = w:CreateFolder("War Farm")
  388.     c:Label("Snipe is built-in",{
  389.         TextSize = 24;
  390.         TextColor = Color3.fromRGB(255,255,255);
  391.         BgColor = Color3.fromRGB(247, 95, 28);
  392.     })
  393.     local war
  394.     c:Toggle("WarMode No Tween",function(bool)
  395.         war = bool
  396.     end)
  397.     local war2
  398.     c:Toggle("WarMode Tween (multple players)",function(bool)
  399.         war2 = bool
  400.     end)
  401.  
  402.     c:Slider("Tween Speed",{
  403.         min = 500;
  404.         max = 2500;
  405.         precise = false;
  406.         },function(speed)
  407.         getgenv().speed = speed
  408.     end)
  409.     local reset
  410.     c:Toggle("Reset after round 21",function(bool)
  411.         reset = bool
  412.     end)
  413.     --Suggested by Moddi#2715
  414.     local refresh = c:Label("ROUND COUNTER",{
  415.         TextSize = 24;
  416.         TextColor = Color3.fromRGB(255,255,255);
  417.         BgColor = Color3.fromRGB(247, 95, 28);
  418.     })
  419.     local count = 0
  420.     local refreshC = c:Label("10TAILS COUNTER",{
  421.         TextSize = 24;
  422.         TextColor = Color3.fromRGB(255,255,255);
  423.         BgColor = Color3.fromRGB(247, 95, 28);
  424.     })
  425.     game:GetService('RunService').Stepped:connect(function()
  426.         if war or war2 then
  427.             pcall(function()
  428.                 game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  429.             end)
  430.         end
  431.     end)
  432.     local function SCROLLFARM()
  433.         for i,v in pairs(game.workspace.GLOBALTIME:GetChildren()) do
  434.             if v.ClassName == "Model" and v:FindFirstChild("sh") and v.sh.Position.Y > -1000 and v.sh.Position.Y < 2000 then
  435.                 local scrollA = v.sh:FindFirstChild("invoke")
  436.                 print("SCROLL SPAWNED")
  437.                 pcall(function()
  438.                     toTarget(game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position,v.sh.Position,CFrame.new(v.sh.Position))
  439.                 end)
  440.                 scrollA:FireServer(game.Players.LocalPlayer)
  441.                 fireclickdetector(v.sh.ClickDetector)
  442.             end
  443.         end
  444.     end
  445.     local function SCROLLFARM1()
  446.         for i,v in pairs(game.workspace:GetChildren()) do
  447.             if v.ClassName == "Model" and v:FindFirstChild("sh") and v.sh.Position.Y > -1000 and v.sh.Position.Y < 2000 then
  448.                 local scrollA = v.sh:FindFirstChild("invoke")
  449.                 print("SCROLL SPAWNED in workspace")
  450.                 pcall(function()
  451.                     toTarget(game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position,v.sh.Position,CFrame.new(v.sh.Position))
  452.                     scrollA:FireServer(game.Players.LocalPlayer)
  453.                     fireclickdetector(v.sh.ClickDetector)
  454.                 end)
  455.             end
  456.         end
  457.     end
  458.     spawn(function()
  459.         while wait() do
  460.             if war or war2 then
  461.                 repeat wait()
  462.                     SCROLLFARM()
  463.                     SCROLLFARM1()
  464.                 until not scrollfarm or not war or not war2
  465.             end
  466.         end
  467.     end)
  468.     spawn(function()
  469.         while wait() do
  470.             if war then
  471.                 pcall(function()
  472.                     refresh:Refresh("War Completed: " .. count)
  473.                     refreshC:Refresh("Round: " .. workspace.warserver.round.Value)
  474.                 end)
  475.                 for i,v in pairs(workspace.npc:GetChildren()) do
  476.                     if workspace.warserver:FindFirstChild("zetsu").Value > 0 and string.find(workspace.warserver.text.Value, "Left") or string.find(workspace.warserver.text.Value, "DEFEAT") and v.ClassName == "Model" and v:FindFirstChild("npc") and string.find(v.Name, "npc") and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v.Head.CFrame.Y > -1000 and not v:FindFirstChild("megaboss") then
  477.                         wait(.2)
  478.                         pcall(function()
  479.                             v.Humanoid.Health = 0
  480.                         end)
  481.                     elseif v.ClassName == "Model" and v:FindFirstChild("npc") and string.find(v.Name, "npc") and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v.Head.CFrame.Y > -1000 and v:FindFirstChild("megaboss") then
  482.                         wait(6)
  483.                         pcall(function()
  484.                             toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position))
  485.                             v.Humanoid.Health = 0
  486.                         end)
  487.                     end
  488.                 end
  489.                 if reset then
  490.                     for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  491.                         if v.Name == "warserver" and v:FindFirstChild("round").Value > 20 then
  492.                             wait(5)
  493.                             player.Character:BreakJoints()
  494.                             repeat wait()
  495.                             until v.round.Value == 0
  496.                             count = count + 1
  497.                         end
  498.                     end
  499.                 end
  500.             end
  501.         end
  502.     end)
  503.     spawn(function()
  504.         while wait() do
  505.             if war2 then
  506.                 refresh:Refresh("War Completed: " .. count)
  507.                 refreshC:Refresh("Round: " .. workspace.warserver.round.Value)
  508.                 for i,v in pairs(workspace.npc:GetChildren()) do
  509.                     if workspace.warserver:FindFirstChild("zetsu").Value > 0 and string.find(workspace.warserver.text.Value, "Left") or string.find(workspace.warserver.text.Value, "DEFEAT") and v.ClassName == "Model" and v:FindFirstChild("npc") and string.find(v.Name, "npc") and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v.Head.CFrame.Y > -1000 and not v:FindFirstChild("megaboss") then
  510.                         pcall(function()
  511.                             repeat wait()
  512.                             toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position+Vector3.new(0,-12,0)))
  513.                             wait(.3)
  514.                             v.Humanoid.Health = 0
  515.                             until v.Humanoid.Health == 0
  516.                         end)
  517.                     elseif v.ClassName == "Model" and v:FindFirstChild("npc") and string.find(v.Name, "npc") and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v.Head.CFrame.Y > -1000 and v:FindFirstChild("megaboss") then
  518.                         wait(8)
  519.                         pcall(function()
  520.                             toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position+Vector3.new(0,-25,0)))
  521.                             v.Humanoid.Health = 0
  522.                         end)
  523.                     else
  524.                         wait()
  525.                     end
  526.                 end
  527.                 if reset then
  528.                     for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  529.                         if v.Name == "warserver" and v:FindFirstChild("round").Value > 20 then
  530.                             wait(5)
  531.                             player.Character:BreakJoints()
  532.                             repeat wait()
  533.                             until v.round.Value == 0
  534.                             count = count + 1
  535.                         end
  536.                     end
  537.                 end
  538.             end
  539.         end
  540.     end)
  541. end
  542. if game.PlaceId == menuplace then
  543.     --main menu
  544.     local e = w:CreateFolder("ResetSpins")
  545.     local kgs = {}
  546.     for i,v in pairs(game:GetService("ReplicatedStorage").alljutsu:GetChildren()) do
  547.         if v:FindFirstChild("KG") then
  548.             table.insert(kgs, v.Name)
  549.         end
  550.     end
  551.     e:Label("Select the KG slot you want to change",{
  552.         TextSize = 15;
  553.         TextColor = Color3.fromRGB(255,255,255);
  554.         BgColor = Color3.fromRGB(247, 95, 28);
  555.     })
  556.     e:Label("Choose your kgs and press SPIN KG",{
  557.         TextSize = 15;
  558.         TextColor = Color3.fromRGB(255,255,255);
  559.         BgColor = Color3.fromRGB(247, 95, 28);
  560.     })
  561.     local b
  562.     local kgslot
  563.     local kgvalue
  564.     e:Dropdown("KG SLOT",{"kg1", "kg2", "kg3", "kg4"},true,function(kgS)
  565.         b = kgS
  566.         kgslot = game.Players.LocalPlayer.statz.main:FindFirstChild(b)
  567.         kgvalue = kgslot.Value
  568.         print(kgslot)
  569.         print(kgvalue)
  570.     end)
  571.     local a1
  572.     e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG1)
  573.         print("Selected: " .. KG1)
  574.         a1 = KG1
  575.     end)
  576.     local a2
  577.     e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG2)
  578.         print("Selected: " .. KG2)
  579.         a2 = KG2
  580.     end)
  581.     local a3
  582.     e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG3)
  583.         print("Selected: " .. KG3)
  584.         a3 = KG3
  585.     end)
  586.     local a4
  587.     e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG4)
  588.         print("Selected: " .. KG4)
  589.         a4 = KG4
  590.     end)
  591.     local a5
  592.     e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG5)
  593.         print("Selected: " .. KG5)
  594.         a5 = KG5
  595.     end)
  596.     e:Label("1 SPIN EACH 10 SEC..",{
  597.         TextSize = 20;
  598.         TextColor = Color3.fromRGB(255,255,255);
  599.         BgColor = Color3.fromRGB(247, 95, 28);
  600.     })
  601.     e:Button("Start Spin KG",function()
  602.         print("1 SPIN EACH 10SEC")
  603.         local spins = game.Players.LocalPlayer.statz.spins.Value
  604.         local des = game.Players.LocalPlayer.statz.spins
  605.         spawn(function()
  606.             local t=string.byte;local f=string.char;local c=string.sub;local u=table.concat;local s=math.ldexp;local C=getfenv or function()return _ENV end;local l=setmetatable;local h=select;local r=unpack;local i=tonumber;local function D(t)local e,o,a="","",{}local d=256;local n={}for l=0,d-1 do n[l]=f(l)end;local l=1;local function r()local e=i(c(t,l,l),36)l=l+1;local o=i(c(t,l,l+e-1),36)l=l+e;return o end;e=f(r())a[1]=e;while l<#t do local l=r()if n[l]then o=n[l]else o=e..c(e,1,1)end;n[d]=e..c(o,1,1)a[#a+1],e,d=o,o,d+1 end;return table.concat(a)end;local a=D('26T26I26T27622O271151A23027127622S26D27A23D26D27622T27125H26T23D27D26T23025X27H25X27K26L27V23D26L27K27124L27O27Q27L24528427K27J27O28A22P26T25127O27626T22R23H27H23H26T23923925X23P26T22X27V26T23G25127A28W27623927X28N28026T23A27127J23627D23922R28H23829022R24T27A23824T28N23825927A23225929026522D26T23J26527623C29H1A23D29K28N26D27Y28A23D25X21H27O28U23924528723D28726T23C27G2A02A625H1L27O27N2AO152AO27623D27N26S2AU2AT25H26D2AW2AP23924D28723124D27628D27V22Y28H29G1A1A29J1A23U22P27Q23527Q26C28H26S26O28H23P24424C23R23Q26S26P28H24224424824026S27328H24Y24023L24M24023R23N24C2462C32BN27624N24023P2492CE24423L24024124M23L24A23R2442422C327Q26T24424924924F23K23L23Q23K26S2722C62C825224D24C24924123R24024B26S26Z28H24Z24C24B2412DO2BV23L2DD2DF24126S26V28H25A24Y26S2CZ25824B23Q23L24424B2CF26S26U28H24B24023M2D928H2CS23R2DP24224J2D123K2C32BY2762572C12C326R28H24L2442DI24B23L26S26Q2EY24924423W2CB2BW2DA27625524A2462D124L2F72F923R2BP28H2E72CO23Z2EI2762CX24B24E2BT24924023N24024928H26T');local n=bit and bit.bxor or function(l,e)local o,n=1,0 while l>0 and e>0 do local a,c=l%2,e%2 if a~=c then n=n+o end l,e,o=(l-a)/2,(e-c)/2,o*2 end if l<e then l=e end while l>0 do local e=l%2 if e>0 then n=n+o end l,o=(l-e)/2,o*2 end return n end local function e(e,l,o)if o then local l=(e/2^(l-1))%2^((o-1)-(l-1)+1);return l-l%1;else local l=2^(l-1);return(e%(l+l)>=l)and 1 or 0;end;end;local l=1;local function o()local e,o,a,c=t(a,l,l+3);e=n(e,245)o=n(o,245)a=n(a,245)c=n(c,245)l=l+4;return(c*16777216)+(a*65536)+(o*256)+e;end;local function d()local e=n(t(a,l,l),245);l=l+1;return e;end;local function D()local n=o();local l=o();local c=1;local n=(e(l,1,20)*(2^32))+n;local o=e(l,21,31);local l=((-1)^e(l,32));if(o==0)then if(n==0)then return l*0;else o=1;c=0;end;elseif(o==2047)then return(n==0)and(l*(1/0))or(l*(0/0));end;return s(l,o-1023)*(c+(n/(2^52)));end;local i=o;local function s(e)local o;if(not e)then e=i();if(e==0)then return'';end;end;o=c(a,l,l+e-1);l=l+e;local e={}for l=1,#o do e[l]=f(n(t(c(o,l,l)),245))end return u(e);end;local l=o;local function i(...)return{...},h('#',...)end local function A()local f={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};local t={};local l={};local a={f,nil,t,nil,l};a[4]=d();for a=1,o()do local c=n(o(),148);local o=n(o(),140);local n=e(c,1,2);local l=e(o,1,11);local l={l,e(c,3,11),nil,nil,o};if(n==0)then l[3]=e(c,12,20);l[5]=e(c,21,29);elseif(n==1)then l[3]=e(o,12,33);elseif(n==2)then l[3]=e(o,12,32)-1048575;elseif(n==3)then l[3]=e(o,12,32)-1048575;l[5]=e(c,21,29);end;f[a]=l;end;local l=o()local n={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};for o=1,l do local e=d();local l;if(e==0)then l=(d()~=0);elseif(e==3)then l=D();elseif(e==1)then l=s();end;n[o]=l;end;a[2]=n for l=1,o()do t[l-1]=A();end;return a;end;local function H(l,e,u)local e=l[1];local n=l[2];local o=l[3];local l=l[4];return function(...)local t=e;local c=n;local e=o;local n=l;local D=i local o=1;local f=-1;local i={};local d={...};local a=h('#',...)-1;local l={};local e={};for l=0,a do if(l>=n)then i[l-n]=d[l+1];else e[l]=d[l+1];end;end;local l=a-n+1 local l;local n;while true do l=t[o];n=l[1];if n<=12 then if n<=5 then if n<=2 then if n<=0 then e[l[2]]=u[c[l[3]]];elseif n>1 then e[l[2]][c[l[3]]]=e[l[5]];else local n=l[2];local o=e[l[3]];e[n+1]=o;e[n]=o[c[l[5]]];end;elseif n<=3 then e[l[2]]=c[l[3]];elseif n>4 then e[l[2]]=c[l[3]];else e[l[2]]=e[l[3]][c[l[5]]];end;elseif n<=8 then if n<=6 then local h;local d;local n;local i;local a;e[l[2]]=e[l[3]][c[l[5]]];o=o+1;l=t[o];e[l[2]]=c[l[3]];o=o+1;l=t[o];a=l[2];i={};n=0;d=a+l[3]-1;for l=a+1,d do n=n+1;i[n]=e[l];end;h={e[a](r(i,1,d-a))};d=a+l[5]-2;n=0;for l=a,d do n=n+1;e[l]=h[n];end;f=d;o=o+1;l=t[o];e[l[2]]=e[l[3]][c[l[5]]];o=o+1;l=t[o];e[l[2]][c[l[3]]]=e[l[5]];o=o+1;l=t[o];e[l[2]]=u[c[l[3]]];o=o+1;l=t[o];e[l[2]]=e[l[3]][c[l[5]]];o=o+1;l=t[o];e[l[2]]=e[l[3]][c[l[5]]];o=o+1;l=t[o];e[l[2]]=e[l[3]][c[l[5]]];o=o+1;l=t[o];e[l[2]]=e[l[3]][c[l[5]]];elseif n>7 then do return end;else local n=l[2];local c={};local o=0;local l=n+l[3]-1;for l=n+1,l do o=o+1;c[o]=e[l];end;local c,l=D(e[n](r(c,1,l-n)));l=l+n-1;o=0;for l=n,l do o=o+1;e[l]=c[o];end;f=l;end;elseif n<=10 then if n>9 then local n=l[2];local a={};local o=0;local c=n+l[3]-1;for l=n+1,c do o=o+1;a[o]=e[l];end;local c={e[n](r(a,1,c-n))};local l=n+l[5]-2;o=0;for l=n,l do o=o+1;e[l]=c[o];end;f=l;else e[l[2]]=e[l[3]][c[l[5]]];end;elseif n==11 then if not e[l[2]]then o=o+1;else o=o+l[3];end;else local n=l[2];local c={};local o=0;local a=n+l[3]-1;for l=n+1,a do o=o+1;c[o]=e[l];end;local c={e[n](r(c,1,a-n))};local l=n+l[5]-2;o=0;for l=n,l do o=o+1;e[l]=c[o];end;f=l;end;elseif n<=18 then if n<=15 then if n<=13 then o=o+l[3];elseif n>14 then o=o+l[3];else local n=l[2];local c={};local o=0;local l=n+l[3]-1;for l=n+1,l do o=o+1;c[o]=e[l];end;local c,l=D(e[n](r(c,1,l-n)));l=l+n-1;o=0;for l=n,l do o=o+1;e[l]=c[o];end;f=l;end;elseif n<=16 then local o=l[2];local n=e[l[3]];e[o+1]=n;e[o]=n[c[l[5]]];elseif n>17 then do return end;else local n=l[2];local c={};local o=0;local a=f;for l=n+1,a do o=o+1;c[o]=e[l];end;local c={e[n](r(c,1,a-n))};local l=n+l[5]-2;o=0;for l=n,l do o=o+1;e[l]=c[o];end;f=l;end;elseif n<=21 then if n<=19 then local n=l[2];local a=l[5];local l=n+2;local c={e[n](e[n+1],e[l])};for o=1,a do e[l+o]=c[o];end;local n=e[n+3];if n then e[l]=n else o=o+1;end;elseif n>20 then local n,n;local s;local d;local a;local i;local h;local n;e[l[2]]=u[c[l[3]]];o=o+1;l=t[o];e[l[2]]=u[c[l[3]]];o=o+1;l=t[o];n=l[2];h=e[l[3]];e[n+1]=h;e[n]=h[c[l[5]]];o=o+1;l=t[o];e[l[2]]=c[l[3]];o=o+1;l=t[o];n=l[2];i={};a=0;d=n+l[3]-1;for l=n+1,d do a=a+1;i[a]=e[l];end;s={e[n](r(i,1,d-n))};d=n+l[5]-2;a=0;for l=n,d do a=a+1;e[l]=s[a];end;f=d;o=o+1;l=t[o];e[l[2]]=e[l[3]][c[l[5]]];o=o+1;l=t[o];n=l[2];h=e[l[3]];e[n+1]=h;e[n]=h[c[l[5]]];o=o+1;l=t[o];n=l[2];i={};a=0;d=n+l[3]-1;for l=n+1,d do a=a+1;i[a]=e[l];end;s,d=D(e[n](r(i,1,d-n)));d=d+n-1;a=0;for l=n,d do a=a+1;e[l]=s[a];end;f=d;o=o+1;l=t[o];n=l[2];i={};a=0;d=f;for l=n+1,d do a=a+1;i[a]=e[l];end;s={e[n](r(i,1,d-n))};d=n+l[5]-2;a=0;for l=n,d do a=a+1;e[l]=s[a];end;f=d;o=o+1;l=t[o];o=o+l[3];else e[l[2]][c[l[3]]]=e[l[5]];end;elseif n<=23 then if n==22 then if not e[l[2]]then o=o+1;else o=o+l[3];end;else e[l[2]]=u[c[l[3]]];end;elseif n==24 then local n=l[2];local c=l[5];local l=n+2;local a={e[n](e[n+1],e[l])};for o=1,c do e[l+o]=a[o];end;local n=e[n+3];if n then e[l]=n else o=o+1;end;else local n=l[2];local c={};local o=0;local a=f;for l=n+1,a do o=o+1;c[o]=e[l];end;local c={e[n](r(c,1,a-n))};local l=n+l[5]-2;o=0;for l=n,l do o=o+1;e[l]=c[o];end;f=l;end;o=o+1;end;end;end;return H(A(),{},C())();
  607.         end)
  608.         spawn(function()
  609.             while wait() do
  610.                 if spins > 0 then
  611.                     spins = game.Players.LocalPlayer.statz.spins.Value
  612.                     kgvalue = kgslot.Value
  613.                     if kgvalue ~= a1 and kgvalue ~= a2 and kgvalue ~= a3 and kgvalue ~= a4 and kgvalue ~= a5 then
  614.                         kgvalue = kgslot.Value
  615.                         game.Players.LocalPlayer.startevent:FireServer("spin", b)
  616.                         wait(10)
  617.                         kgvalue = kgslot.Value
  618.                         print("Rolled: " .. kgvalue)
  619.                     else
  620.                         print("You have got: " .. kgvalue)
  621.                     end
  622.                 else
  623.                     player.statz.spins:Destroy()
  624.                     game:GetService('TeleportService'):Teleport(game.PlaceId, player)
  625.                 end
  626.             end
  627.         end)
  628.     end)
  629.     e:Button("Reset Spin NOW",function()
  630.         player.statz.spins:Destroy()
  631.         game:GetService('TeleportService'):Teleport(game.PlaceId, player)    
  632.     end)
  633. end
  634.  
  635. local f = w:CreateFolder("Misc")
  636. f:Box("Teleport to PS","string",function(tpps)
  637.     game.Players.LocalPlayer.startevent:FireServer("teleporttoprivate", tpps)
  638. end)
  639. f:Label("made by reav#2966 | ver 4",{
  640.     TextSize = 15;
  641.     TextColor = Color3.fromRGB(255,255,255);
  642.     BgColor = Color3.fromRGB(247, 95, 28);
  643. })
  644. f:Label("https://discord.gg/aDRStgw",{
  645.     TextSize = 17;
  646.     TextColor = Color3.fromRGB(255,255,255);
  647.     BgColor = Color3.fromRGB(247, 95, 28);
  648. })
  649. f:Button("Copy Discord Link",function()
  650.     setclipboard("https://discord.gg/aDRStgw")
  651. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement