RandomMagics

Swordman Simulator

Jan 20th, 2022
4,177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. getgenv().autokill = true
  2. getgenv().autoslash = true --// LEAVE THIS TO TRUE IF YOU WANT YOUR AUTOKILL WORKING!
  3.  
  4.  
  5.  
  6. if getgenv().autokill then
  7. task.spawn(function()
  8. while getgenv().autokill do
  9. for I, V in pairs(game.Players:GetChildren()) do
  10. repeat wait() until V.Character
  11. repeat wait() until V.Character.HumanoidRootPart
  12. local NewPlayerCFrame = V.Character:WaitForChild("HumanoidRootPart").CFrame
  13.  
  14. if not V.Character:WaitForChild("HumanoidRootPart") then
  15. print("nil")
  16. repeat wait() until v.Character or v.Character:WaitForChild("HumanoidRootPart")
  17. end
  18.  
  19. if workspace[V.Name]:FindFirstChild("ForceField") then
  20. print("User is in the safe zone/has a force field.")
  21. else
  22. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = NewPlayerCFrame
  23. wait(0.1)
  24. end
  25. end
  26. wait(0.1)
  27. end
  28. wait(0.1)
  29. end)
  30. end
  31.  
  32. if getgenv().autoslash then
  33. task.spawn(function()
  34. while getgenv().autoslash do
  35. for I, V in pairs(workspace[game.Players.LocalPlayer.Name]:GetChildren()) do
  36. if V:IsA("Tool") and string.find(tostring(V), "Sword") then
  37. V.Animation.Slash:FireServer()
  38. end
  39. end
  40. wait(0.1)
  41. end
  42. end)
  43. end
Advertisement
Add Comment
Please, Sign In to add comment