Advertisement
MatLumber2

Ninja

Jun 14th, 2019
717
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. _G.toggle = true -- change this to false to stop
  2.  
  3. local plr = game.Players.LocalPlayer
  4.  
  5. if not plr.Character:FindFirstChildOfClass("Tool") then
  6. local tool = game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool")
  7. tool.Parent = plr.Character
  8. end
  9. while _G.toggle == true do
  10. wait(0.1)
  11. for i, v in next, workspace.NPCs:GetDescendants() do
  12. if v:FindFirstChild("Humanoid") then
  13. while _G.toggle == true and v.Humanoid.Health > 0 do
  14. game:GetService("RunService").RenderStepped:Wait()
  15. plr.Character.Humanoid:ChangeState(11)
  16. game:getService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = v.PrimaryPart.CFrame*CFrame.new(0,6,0)
  17. plr.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame*CFrame.Angles(math.rad(-90),0,0)
  18. local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
  19. tool:Activate()
  20. end
  21. end
  22. end
  23. end
  24.  
  25. game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  26. wait(.1)
  27. pcall(function()
  28. local tool = game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool")
  29. tool.Parent = char
  30. end)
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement