SHARE
TWEET

YES

SirMeme Mar 10th, 2019 10,955 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top