Advertisement
SetQuest08

Ninja Legends FarmBoss Script

Nov 15th, 2019
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. local VirtualUser = game:GetService("VirtualUser")
  2. local plr = game.Players.LocalPlayer
  3. local boss = "NameHere" -- EternalBoss or RobotBoss
  4. _G.Shuriken = false -- Choose your Tool
  5. _G.Sword = false -- Choose you
  6. _G.Enabled = false -- Enable or Disable the script
  7.  
  8. function RemoveName()
  9. if workspace[plr.Name]:FindFirstChild("Head") then
  10. if workspace[plr.Name].Head:FindFirstChild("nameGui") then
  11. workspace[plr.Name].Head.nameGui:Destroy()
  12. end
  13. end
  14. end
  15.  
  16. function EquipShuriken()
  17. if _G.Shuriken == true then
  18. for _,s in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  19. if s.ClassName == "Tool" then
  20. if s:FindFirstChild("shuriken") then
  21. plr.Character.Humanoid:EquipTool(s)
  22. end
  23. end
  24. end
  25. end
  26. end
  27.  
  28. function EquipSword()
  29. if _G.Sword == true then
  30. for _,w in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  31. if w.ClassName == "Tool" then
  32. if not w:FindFirstChild("shuriken") then
  33. if w:FindFirstChild("attackTime") then
  34. plr.Character.Humanoid:EquipTool(w)
  35. end
  36. end
  37. end
  38. end
  39. end
  40. end
  41.  
  42. function ShurikenToHead(x)
  43. for _,p in pairs(workspace.shurikensFolder:GetChildren()) do
  44. if p.Name == "Handle" then
  45. p.CFrame = x.Head.CFrame
  46. end
  47. end
  48. end
  49.  
  50. while _G.Enabled do
  51. for _,x in pairs(workspace.bossFolder:GetChildren()) do
  52. if x.Name == boss then
  53. x.HumanoidRootPart.Anchored = true
  54. x.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame + Vector3.new(0,-15,0)
  55. plr.ninjaEvent:FireServer("goInvisible")
  56. VirtualUser:CaptureController()
  57. VirtualUser:ClickButton1(Vector2.new(0, 0), CFrame.new(Vector3.new(0, 0, 0)))
  58. ShurikenToHead(x)
  59. EquipShuriken()
  60. EquipSword()
  61. RemoveName()
  62. end
  63. end
  64. wait()
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement