daily pastebin goal
1%
SHARE
TWEET

Untitled

FutureIswap Mar 19th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top