Advertisement
KienZino

Untitled

Mar 12th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. wait(5)
  2. SwordOrMagic = "Sword" -- Uses Sword
  3. -- SwordOrMagic = "Magic" (like this) if you want to use magic
  4. local Event = game:GetService("ReplicatedStorage").remotes.changeStartValue
  5. Event:FireServer()
  6. wait(.2)
  7. while wait() do
  8. local G = game:GetService('Players').LocalPlayer.weaponEquipped.Value
  9. while true do
  10. wait()
  11. local Event = game:GetService("Workspace").URUSERNAMEHERE[G].swing
  12. Event:FireServer()
  13. for i,v in pairs(game.Workspace:GetDescendants()) do
  14. if v:FindFirstChild("enemyNameplate") and v:FindFirstChild("Humanoid") and v:FindFirstChild("HumanoidRootPart") then
  15. if SwordOrMagic == "Sword" then
  16. v.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 2.5
  17. v.HumanoidRootPart.Anchored = true
  18. elseif SwordOrMagic == "Magic" then
  19. v.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 7
  20. v.HumanoidRootPart.Anchored = true
  21. end
  22. end
  23. end
  24. end
  25. end
  26.  
  27.  
  28. print("have fun niggros:D")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement