Advertisement
ImpulseYT

ROBLOX SWORD FIGHTING SCRIPT 2022 (SWORD TARGETTING)

Aug 19th, 2021 (edited)
4,022
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. -- https://www.youtube.com/watch?v=mi-Npu1YJW4
  2.  
  3.  
  4. -- will force the target to constantly die and leave the game (USE USERNAME NOT DISPLAY NAME)
  5.  
  6.  
  7. target = "username here"
  8.  
  9.  
  10. while true do
  11. wait(0.2)
  12. if game.Players:FindFirstChild(target).Character ~= nil then
  13. if game.Players.LocalPlayer.Character ~= nil then
  14. if game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  15. Tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
  16. Tool.GripForward = Vector3.new(0,0,1)
  17. Tool.GripRight = Vector3.new(0,-1,0)
  18. Tool.GripUp = Vector3.new(-1,0,0)
  19. Tool.GripPos = Vector3.new(0,-1.5,-3.5)
  20. Tool.Handle.Massless = true
  21. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players:FindFirstChild(target).Character.HumanoidRootPart.CFrame + Vector3.new(6,0.7,0)
  22. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, game.Players:FindFirstChild(target).Character.HumanoidRootPart.Position)
  23. if game.Players.LocalPlayer.Character:FindFirstChild("SelectionBox") then
  24. else
  25.  
  26. e = Instance.new("SelectionBox")
  27. e.Parent = Tool
  28. e.Adornee = Tool.Handle
  29. e.Color3 = Color3.new(0.0156863, 1, 0)
  30. e.LineThickness = 0.02
  31. end
  32. elseif game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool") then
  33. game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool").Parent = game.Players.LocalPlayer.Character
  34.  
  35. end
  36. if game.Players:FindFirstChild(target).Character.Humanoid.Health<1 then
  37. wait(1)
  38. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  39. end
  40. end
  41. end
  42. end
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement