Advertisement
Helgodxdd

Gun mode v.2

May 21st, 2019
136
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --made By me: Jonatan
  2. local reg = (getreg or debug.getregistry)
  3. local get = (debug.getupvalues or secret953)
  4. local client = game:GetService("Players").LocalPlayer
  5. local render = game:GetService('RunService').RenderStepped
  6.  
  7. function start()
  8. local function fakeStats()
  9. function change(t)
  10. local myStats = {
  11. ReloadTime = 0,
  12. FireRate = 0,
  13. AutoFire = true,
  14. StoredAmmo = math.huge,
  15. MaxAmmo = math.huge,
  16. CurrentAmmo = math.huge,
  17. }
  18.  
  19. for name, fake in next, myStats do
  20. t[name] = fake
  21. end
  22. end
  23.  
  24. for k, v in next, reg() do
  25. if type(v) == "function" then
  26. local upvals = get(v)
  27. if upvals and upvals.GunStates then
  28. change(upvals.GunStates)
  29. end
  30. end
  31. end
  32. end
  33.  
  34. client.Backpack.ChildAdded:connect(function(child)
  35. if child:IsA("Tool") and child:FindFirstChild("GunInterface") then
  36. client.Character.Humanoid:EquipTool(child)
  37.  
  38. render:wait()
  39. fakeStats()
  40. render:wait()
  41.  
  42. client.Character.Humanoid:UnequipTools()
  43. end
  44. end)
  45.  
  46. for _, child in next, client.Backpack:GetChildren() do
  47. if child:IsA("Tool") and child:FindFirstChild("GunInterface") then
  48. client.Character.Humanoid:EquipTool(child)
  49.  
  50. render:wait()
  51. fakeStats()
  52. render:wait()
  53.  
  54. client.Character.Humanoid:UnequipTools()
  55. end
  56. end
  57. end
  58.  
  59. start()
  60.  
  61. client.CharacterAdded:connect(start)
Advertisement
RAW Paste Data Copied
Advertisement