Advertisement
SirMeme

YES

Mar 10th, 2019
11,855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. SwordOrMagic = "Sword" -- Uses Sword
  2. -- SwordOrMagic = "Magic" (like this) if you want to use magic
  3. while wait() do
  4. for i,v in pairs(game.Workspace:GetDescendants()) do
  5. if v:FindFirstChild("enemyNameplate") and v:FindFirstChild("Humanoid") and v:FindFirstChild("HumanoidRootPart") then
  6. if SwordOrMagic == "Sword" then
  7. v.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 3.5
  8. v.HumanoidRootPart.Anchored = true
  9. elseif SwordOrMagic == "Magic" then
  10. v.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 10
  11. v.HumanoidRootPart.Anchored = true
  12. end
  13. end
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement