Advertisement
FutureIswap

Untitled

Mar 19th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. --Upgrade By Me
  2.  
  3. local A_1 = game:GetService("Workspace")["先生"].Humanoid
  4. local A_2 = "punch"
  5. local Event = game:GetService("ReplicatedStorage").Remotes.Damage
  6.  
  7. local toggled = false
  8. local keys = "k" -- key to toggle farm
  9. local plr = game:GetService("Players").LocalPlayer
  10. local mouse = plr:GetMouse()
  11.  
  12. mouse.KeyDown:connect(function(key)
  13. if key:lower() == keys then
  14. toggled = not toggled
  15. print(tostring(toggled))
  16. end
  17. end)
  18.  
  19. game:GetService('RunService').Stepped:connect(function()
  20. if toggled then
  21. Event:InvokeServer(A_1, A_2)
  22. end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement