Advertisement
O00fed_loadstringss

Untitled

May 22nd, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. toggle = true
  2. togglekey = "n" --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. print ('Turned Off!')
  25. else
  26. toggle = true
  27. Hint('Turned On!')
  28. print ('Turned On!')
  29. end
  30. elseif key == killkey then
  31. if toggle then
  32. pcall(function()
  33. Mouse.Target.Parent:FindFirstChild('Humanoid').Health = 0
  34. Hint('Killed ' .. Mouse.Target.Parent.Name)
  35. end)
  36. end
  37. end
  38. end)
  39.  
  40. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement