Mr_Phobia101

Click TP script

Apr 27th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. toggle = true
  2. togglekey = "e" --Key that you will use to toggle the on and off
  3. killkey = "k" --Key that you will use to kill a player
  4. function Hint(txt)
  5. local b = Instance.new('Hint', workspace)
  6. b.Text = txt
  7. wait(2)
  8. b:Destroy()
  9. end
  10. Local = game:GetService('Players').LocalPlayer
  11. Mouse = Local:GetMouse()
  12. Mouse.Button1Down:connect(function()
  13. pcall(function()
  14. if toggle then
  15. Local.Character.HumanoidRootPart.CFrame = Local:GetMouse().Hit
  16. end
  17. end)
  18. end)
  19. Mouse.KeyDown:connect(function(key)
  20. if key == togglekey then
  21. if toggle then
  22. toggle = false
  23. Hint('Turned Off!')
  24. else
  25. toggle = true
  26. Hint('Turned On!')
  27. end
  28. elseif key == killkey then
  29. if toggle then
  30. pcall(function()
  31. Mouse.Target.Parent:FindFirstChild('Humanoid').Health = 0
  32. Hint('Killed ' .. Mouse.Target.Parent.Name)
  33. end)
  34. end
  35. end
  36. end)
Add Comment
Please, Sign In to add comment