Advertisement
BjeffeHund

Untitled

Apr 18th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. local on = false
  2. game:GetService("UserInputService").InputBegan:connect(function(a)
  3. if a.KeyCode == Enum.KeyCode.LeftControl and not on then
  4. on = true
  5. warn("ok")
  6. elseif a.KeyCode == Enum.KeyCode.LeftControl and on then
  7. warn("not k")
  8. on = false
  9. end
  10. end)
  11. game:GetService('RunService').Stepped:connect(function()
  12. if on then
  13. spawn(function()
  14. for i,v in pairs(game.Players:GetPlayers()) do
  15. if on and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  16. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  17. wait(0.1)
  18. end
  19. end
  20. end)
  21. game:service('ReplicatedStorage'):WaitForChild("RemoteEvent"):FireServer({"Skill_KillingIntent_Start"})
  22. game:service('ReplicatedStorage'):WaitForChild("RemoteEvent"):FireServer({"Skill_KillingIntent_End"})
  23. end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement