1_F0

Untitled

Jul 2nd, 2020
19,747
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. local isMouseDown = false
  2. local plr = game:GetService("Players").LocalPlayer
  3. local mouse = plr:GetMouse()
  4.  
  5. mouse.Button1Down:Connect(function()
  6. isMouseDown = true
  7. end)
  8.  
  9. mouse.Button1Up:Connect(function()
  10. isMouseDown = false
  11. end)
  12.  
  13. local taserTable = nil
  14.  
  15. for i,v in pairs(getgc(true)) do
  16. if type(v) == "table" and getrawmetatable(v) == nil then
  17. if rawget(v,"ReloadTime") and rawget(v,"ReloadTimeHit") and rawget(v,"Sound") then
  18. if v["Sound"]["taser_buzz"] then
  19. taserTable = v
  20. end
  21. end
  22. end
  23. end
  24.  
  25. local gunTables = {}
  26.  
  27. spawn(function()
  28. while wait(1) do
  29. for i,v in pairs(getgc(true)) do
  30. if type(v) == "table" and getrawmetatable(v) == nil then
  31. if rawget(v,"MagSize") and rawget(v,"CamShakeMagnitude") then
  32. if table.find(gunTables,v) == nil then
  33. table.insert(gunTables,v)
  34. end
  35. end
  36. end
  37. end
  38.  
  39. table.foreach(gunTables,function(i,gunTable)
  40. gunTable.MagSize = math.huge
  41. gunTable.ReloadTime = 0
  42. gunTable.CamShakeMagnitude = 0
  43. gunTable.FireFreq = math.huge
  44. end)
  45. end
  46. end)
  47.  
  48. taserTable["ReloadTime"] = 0
  49. taserTable["ReloadTimeHit"] = 0
  50.  
  51. game:GetService("RunService").RenderStepped:Connect(function()
  52. if isMouseDown == true and game:GetService("Workspace").Items:GetChildren()[1] ~= nil and isrbxactive() == true then
  53. mouse1press()
  54. end
  55. end)
Add Comment
Please, Sign In to add comment