chandreeeee

hack level ninja simulator

Apr 11th, 2018
9,186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. -- Script generated by R2Sv2
  2. -- R2Sv2 developed by Luckyxero
  3.  
  4. local A_1 = game:GetService("Workspace")["Godly Punching Bag"].Humanoid
  5. local A_2 = "punch"
  6. local Event = game:GetService("ReplicatedStorage").Remotes.Damage
  7.  
  8. local toggled = false
  9. local keys = "k" -- key to toggle farm
  10. local plr = game:GetService("Players").LocalPlayer
  11. local mouse = plr:GetMouse()
  12.  
  13. mouse.KeyDown:connect(function(key)
  14.     if key:lower() == keys then
  15.         toggled = not toggled
  16.         print(tostring(toggled))
  17.     end
  18. end)
  19.  
  20. game:GetService('RunService').Stepped:connect(function()
  21. if toggled then
  22. Event:InvokeServer(A_1, A_2)
  23. end
  24. end)
Add Comment
Please, Sign In to add comment