YANIS_EXPLOITS

Ninja Legends Auto Farm

Oct 26th, 2019
1,143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. --Made by Yanis#5565
  2. maxNinjitsu = 15 -- Change this to what it is
  3.  
  4. local player = game.Players.LocalPlayer
  5. local character = player.Character
  6. local rootpart = character.HumanoidRootPart
  7.  
  8. local weapondelay = 0
  9. local sellpart = game.Workspace.sellTeleportPart.CFrame
  10.  
  11. -- Equip tool function + weapon delay
  12. for i,v in pairs (player.Backpack:GetChildren()) do
  13. if v:IsA("Tool") then
  14. v.Parent = character
  15. weapondelay = v.attackTime.Value
  16. end
  17. end
  18.  
  19. -- Second weapon delay function
  20. for i,v in pairs (character:GetDescendants()) do
  21. if v:IsA("Tool") then
  22. weapondelay = v.attackTime.Value
  23. end
  24. end
  25.  
  26.  
  27. --Swing counter function
  28. currentNum = player.leaderstats.Ninjitsu.Value
  29. player.leaderstats.Ninjitsu.Changed:Connect(function()
  30. currentNum = player.leaderstats.Ninjitsu.Value
  31. end)
  32. clickAmount = maxNinjitsu - currentNum
  33.  
  34.  
  35. -- Swing function
  36. weapondelay = weapondelay + 0.1
  37. for i=1,clickAmount do
  38. wait(weapondelay)
  39. player.ninjaEvent:FireServer("swingKatana")
  40. end
  41. rootpart.CFrame = sellpart
Advertisement
Add Comment
Please, Sign In to add comment