Advertisement
Pastebloxian

works for games with swords keybind: (X)

Aug 18th, 2019
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. local rs = game:GetService("RunService")
  2. local plr = game:GetService("Players").LocalPlayer
  3. local mouse = plr:GetMouse()
  4. local debounce = true
  5. local cam = workspace.CurrentCamera
  6. function killTarget()
  7.  
  8. if mouse.Target.Parent:FindFirstChild'HumanoidRootPart' then
  9. if debounce then
  10. local hit = mouse.Target
  11. debounce = false
  12. oldpos = plr.Character.HumanoidRootPart.CFrame
  13. cam.CameraType = "Fixed"
  14. wait()
  15. rs:BindToRenderStep("ZeezyKillSword",1,function()
  16. plr.Character.HumanoidRootPart.CFrame = hit.Parent.HumanoidRootPart.CFrame * CFrame.new(-1.5,-3.7,0.3) * CFrame.Angles(math.rad(90),0,0)
  17. end)
  18. wait(0.9)
  19. rs:UnbindFromRenderStep("ZeezyKillSword")
  20. plr.Character.HumanoidRootPart.CFrame = oldpos + Vector3.new(0,4,0)
  21. wait()
  22. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Seated")
  23. wait()
  24. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  25. cam.CameraType = "Follow"
  26. debounce = true
  27. end
  28. end
  29.  
  30. end
  31.  
  32. game:GetService("ContextActionService"):BindAction("ZeezyKill",killTarget,false,Enum.KeyCode.X)
  33.  
  34. print("SwordKill loaded, created by Zeezy#7203 / zeezy alt#9892")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement