HackerTA

Shinobi Life 2 Auto Farm

Nov 10th, 2020
8,911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.69 KB | None | 0 0
  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(.3)
  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 chakra",{
  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:Label("Reset character to disable",{
  326. TextSize = 18;
  327. TextColor = Color3.fromRGB(255,255,255);
  328. BgColor = Color3.fromRGB(247, 95, 28);
  329. })
  330. end
  331. if villageplace or game.PlaceId == trainingplace or game.PlaceId == rainplace or game.PlaceId == akatsukiplace or game.PlaceId == forestplace then
  332. local h = w:CreateFolder("Auto Chakra")
  333. h:Label("Setup when charge chakra (also max)",{
  334. TextSize = 16;
  335. TextColor = Color3.fromRGB(255,255,255);
  336. BgColor = Color3.fromRGB(247, 95, 28);
  337. })
  338. local infchakra
  339. h:Toggle("Charge Chakra+Move",function(bool)
  340. infchakra = bool
  341. end)
  342. local when = 100000
  343. h:Slider("When charge chakra",{
  344. min = 30000;
  345. max = 250000;
  346. precise = false;
  347. },function(z)
  348. when = z
  349. end)
  350. spawn(function()
  351. while wait() do
  352. if infchakra then
  353. local chakra = string.split(game.Players.LocalPlayer.PlayerGui.Main.ingamearena.Bar.cha.Text,"CHA: ")[2]
  354. c = chakra:gsub("CHA%:","")
  355. local cha
  356. local function chakracheck()
  357. chakra = string.split(game.Players.LocalPlayer.PlayerGui.Main.ingamearena.Bar.cha.Text,"CHA: ")[2]
  358. c = chakra:gsub("CHA%:","")
  359. cha = c
  360. end
  361. spawn(function()
  362. while wait() do
  363. if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == 0 then
  364. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  365. end
  366. chakracheck()
  367. end
  368. end)
  369. spawn(function()
  370. while wait() do
  371. if tonumber(cha) < tonumber(when) then
  372. game.Players.LocalPlayer.Character.combat.update:FireServer("key","c")
  373. else
  374. game.Players.LocalPlayer.Character.combat.update:FireServer("key","cend")
  375. end
  376. end
  377. end)
  378. end
  379. end
  380. end)
  381. end
  382. if warplace then
  383. --WAR
  384. local c = w:CreateFolder("War Farm")
  385. c:Label("Snipe is built-in",{
  386. TextSize = 24;
  387. TextColor = Color3.fromRGB(255,255,255);
  388. BgColor = Color3.fromRGB(247, 95, 28);
  389. })
  390. local war
  391. c:Toggle("WarMode No Tween",function(bool)
  392. war = bool
  393. end)
  394. local war2
  395. c:Toggle("WarMode Tween (multple players)",function(bool)
  396. war2 = bool
  397. end)
  398.  
  399. c:Slider("Tween Speed",{
  400. min = 500;
  401. max = 2500;
  402. precise = false;
  403. },function(speed)
  404. getgenv().speed = speed
  405. end)
  406. local reset
  407. c:Toggle("Reset after round 21",function(bool)
  408. reset = bool
  409. end)
  410. --Suggested by Moddi#2715
  411. local refresh = c:Label("ROUND COUNTER",{
  412. TextSize = 24;
  413. TextColor = Color3.fromRGB(255,255,255);
  414. BgColor = Color3.fromRGB(247, 95, 28);
  415. })
  416. local count = 0
  417. local refreshC = c:Label("10TAILS COUNTER",{
  418. TextSize = 24;
  419. TextColor = Color3.fromRGB(255,255,255);
  420. BgColor = Color3.fromRGB(247, 95, 28);
  421. })
  422. game:GetService('RunService').Stepped:connect(function()
  423. if war or war2 then
  424. pcall(function()
  425. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  426. end)
  427. end
  428. end)
  429. local function SCROLLFARM()
  430. for i,v in pairs(game.workspace.GLOBALTIME:GetChildren()) do
  431. if v.ClassName == "Model" and v:FindFirstChild("sh") and v.sh.Position.Y > -1000 and v.sh.Position.Y < 2000 then
  432. local scrollA = v.sh:FindFirstChild("invoke")
  433. print("SCROLL SPAWNED")
  434. pcall(function()
  435. toTarget(game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position,v.sh.Position,CFrame.new(v.sh.Position))
  436. end)
  437. scrollA:FireServer(game.Players.LocalPlayer)
  438. fireclickdetector(v.sh.ClickDetector)
  439. end
  440. end
  441. end
  442. local function SCROLLFARM1()
  443. for i,v in pairs(game.workspace:GetChildren()) do
  444. if v.ClassName == "Model" and v:FindFirstChild("sh") and v.sh.Position.Y > -1000 and v.sh.Position.Y < 2000 then
  445. local scrollA = v.sh:FindFirstChild("invoke")
  446. print("SCROLL SPAWNED in workspace")
  447. pcall(function()
  448. toTarget(game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position,v.sh.Position,CFrame.new(v.sh.Position))
  449. scrollA:FireServer(game.Players.LocalPlayer)
  450. fireclickdetector(v.sh.ClickDetector)
  451. end)
  452. end
  453. end
  454. end
  455. spawn(function()
  456. while wait() do
  457. if war or war2 then
  458. repeat wait()
  459. SCROLLFARM()
  460. SCROLLFARM1()
  461. until not scrollfarm or not war or not war2
  462. end
  463. end
  464. end)
  465. spawn(function()
  466. while wait() do
  467. if war then
  468. pcall(function()
  469. refresh:Refresh("War Completed: " .. count)
  470. refreshC:Refresh("Round: " .. workspace.warserver.round.Value)
  471. end)
  472. for i,v in pairs(workspace.npc:GetChildren()) do
  473. 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
  474. wait(.1)
  475. pcall(function()
  476. v.Humanoid.Health = 0
  477. end)
  478. 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
  479. wait(6)
  480. pcall(function()
  481. toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position))
  482. v.Humanoid.Health = 0
  483. end)
  484. end
  485. end
  486. if reset then
  487. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  488. if v.Name == "warserver" and v:FindFirstChild("round").Value > 20 then
  489. wait(5)
  490. player.Character:BreakJoints()
  491. repeat wait()
  492. until v.round.Value == 0
  493. count = count + 1
  494. end
  495. end
  496. end
  497. end
  498. end
  499. end)
  500. spawn(function()
  501. while wait() do
  502. if war2 then
  503. refresh:Refresh("War Completed: " .. count)
  504. refreshC:Refresh("Round: " .. workspace.warserver.round.Value)
  505. for i,v in pairs(workspace.npc:GetChildren()) do
  506. 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
  507. pcall(function()
  508. repeat wait()
  509. toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position+Vector3.new(0,-12,0)))
  510. wait(.3)
  511. v.Humanoid.Health = 0
  512. until v.Humanoid.Health == 0
  513. end)
  514. 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
  515. wait(8)
  516. pcall(function()
  517. toTarget(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,v.HumanoidRootPart.Position,CFrame.new(v.HumanoidRootPart.Position+Vector3.new(0,-25,0)))
  518. v.Humanoid.Health = 0
  519. end)
  520. else
  521. wait()
  522. end
  523. end
  524. if reset then
  525. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  526. if v.Name == "warserver" and v:FindFirstChild("round").Value > 20 then
  527. wait(5)
  528. player.Character:BreakJoints()
  529. repeat wait()
  530. until v.round.Value == 0
  531. count = count + 1
  532. end
  533. end
  534. end
  535. end
  536. end
  537. end)
  538. end
  539. if game.PlaceId == menuplace then
  540. --main menu
  541. local e = w:CreateFolder("ResetSpins")
  542. local kgs = {}
  543. for i,v in pairs(game:GetService("ReplicatedStorage").alljutsu:GetChildren()) do
  544. if v:FindFirstChild("KG") then
  545. table.insert(kgs, v.Name)
  546. end
  547. end
  548. e:Label("Select the KG slot you want to change",{
  549. TextSize = 16;
  550. TextColor = Color3.fromRGB(255,255,255);
  551. BgColor = Color3.fromRGB(247, 95, 28);
  552. })
  553. e:Label("Choose your kgs and press SPIN KG",{
  554. TextSize = 16;
  555. TextColor = Color3.fromRGB(255,255,255);
  556. BgColor = Color3.fromRGB(247, 95, 28);
  557. })
  558. local b
  559. local kgslot
  560. local kgvalue
  561. e:Dropdown("KG SLOT",{"kg1", "kg2", "kg3", "kg4"},true,function(kgS)
  562. b = kgS
  563. kgslot = game.Players.LocalPlayer.statz.main:FindFirstChild(b)
  564. kgvalue = kgslot.Value
  565. print(kgslot)
  566. print(kgvalue)
  567. end)
  568. local a1
  569. e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG1)
  570. print("Selected: " .. KG1)
  571. a1 = KG1
  572. end)
  573. local a2
  574. e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG2)
  575. print("Selected: " .. KG2)
  576. a2 = KG2
  577. end)
  578. local a3
  579. e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG3)
  580. print("Selected: " .. KG3)
  581. a3 = KG3
  582. end)
  583. local a4
  584. e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG4)
  585. print("Selected: " .. KG4)
  586. a4 = KG4
  587. end)
  588. local a5
  589. e:Dropdown("WHAT DO YOU WANT",kgs,true,function(KG5)
  590. print("Selected: " .. KG5)
  591. a5 = KG5
  592. end)
  593. e:Label("Select the amount of spin you want to do 1-79",{
  594. TextSize = 16;
  595. TextColor = Color3.fromRGB(255,255,255);
  596. BgColor = Color3.fromRGB(247, 95, 28);
  597. })
  598. local spinz = 19
  599. e:Slider("How Many spins",{
  600. min = 1;
  601. max = 79;
  602. precise = false;
  603. },function(x)
  604. spinz = x
  605. end)
  606. e:Button("Start Spin KG",function()
  607. local spins = game.Players.LocalPlayer.statz.spins.Value
  608. local des = game.Players.LocalPlayer.statz.spins
  609. spawn(function()
  610. for i=1,spinz do
  611. wait(.4)
  612. spins = game.Players.LocalPlayer.statz.spins.Value
  613. kgvalue = kgslot.Value
  614. if kgvalue ~= a1 and kgvalue ~= a2 and kgvalue ~= a3 and kgvalue ~= a4 and kgvalue ~= a5 then
  615. kgvalue = kgslot.Value
  616. game.Players.LocalPlayer.startevent:FireServer("spin", b)
  617. kgvalue = kgslot.Value
  618. print("Rolled: " .. kgvalue)
  619. else
  620. print("You have got: " .. kgvalue)
  621. end
  622. end
  623. end)
  624. end)
  625. e:Button("Reset Spins",function()
  626. player.statz.spins:Destroy()
  627. wait(1)
  628. player.startevent:FireServer("rpgteleport", game.PlaceId)
  629. end)
  630. end
  631.  
  632. local f = w:CreateFolder("Misc")
  633. f:Box("Teleport to PS","string",function(tpps)
  634. game.Players.LocalPlayer.startevent:FireServer("teleporttoprivate", tpps)
  635. end)
  636. f:Label("made by reav#2966 | ver 3.8",{
  637. TextSize = 15;
  638. TextColor = Color3.fromRGB(255,255,255);
  639. BgColor = Color3.fromRGB(247, 95, 28);
  640. })
  641. f:Label("https://discord.gg/aDRStgw",{
  642. TextSize = 17;
  643. TextColor = Color3.fromRGB(255,255,255);
  644. BgColor = Color3.fromRGB(247, 95, 28);
  645. })
  646. f:Button("Copy Discord Link",function()
  647. setclipboard("https://discord.gg/aDRStgw")
  648. end)
Advertisement
Add Comment
Please, Sign In to add comment