Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SwordOrMagic = "Sword" -- Uses Sword
- -- SwordOrMagic = "Magic" (like this) if you want to use magic
- while wait() do
- for i,v in pairs(game.Workspace:GetDescendants()) do
- if v:FindFirstChild("enemyNameplate") and v:FindFirstChild("Humanoid") and v:FindFirstChild("HumanoidRootPart") then
- if SwordOrMagic == "Sword" then
- v.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 3.5
- v.HumanoidRootPart.Anchored = true
- elseif SwordOrMagic == "Magic" then
- v.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 10
- v.HumanoidRootPart.Anchored = true
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement