Advertisement
Guest User

SLX R2DA Farm

a guest
Jun 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. local zombiefolder = game:GetService'Workspace':FindFirstChild'Characters':FindFirstChild'Zombies'
  2. local client = game:GetService'Players'.LocalPlayer
  3. local primary = client:FindFirstChild'Settings':FindFirstChild'Primary'
  4. local secondary = client:FindFirstChild'Settings':FindFirstChild'Secondary'
  5. local RepStorage = game:GetService'ReplicatedStorage'
  6. local remotes = RepStorage:FindFirstChild'RemoteEvents'
  7. local FX = remotes:FindFirstChild'FX'
  8. local bullet = remotes:FindFirstChild'BulletHit'
  9. local nofall = remotes:FindFirstChild'SelfDamage'
  10. local transform = 10.3 --quality-security.com
  11. local running = false
  12. local zconn = nil
  13. local codes = {}
  14.  
  15. local Part = Instance.new("Part")
  16. Part.Anchored = true
  17. Part.Size = Vector3.new(100, 2, 100)
  18. Part.Transparency = 0.7
  19.  
  20. local meta = getrawmetatable(game)
  21.  
  22. if setreadonly then
  23. setreadonly(meta, false)
  24. elseif make_writeable then
  25. make_writeable(meta)
  26. end
  27.  
  28. local backup = __namecall or meta.__namecall
  29.  
  30. local function KillZombie(zchar)
  31. local id = (primary.Value ~= "" and codes[primary.Value] or codes[secondary.Value])
  32. local enum = 1
  33. if id == nil then return nil end
  34. local t = {}
  35. t.Hit = zchar:WaitForChild'Head'
  36. t.Humanoid = zchar:WaitForChild'Humanoid'
  37. t.Perc = 1
  38. t.Position = zchar:WaitForChild'Head'.Position
  39. t.Headshot = true
  40. repeat
  41. bullet:FireServer(t, enum, id)
  42. wait()
  43. until t.Humanoid.Health < 1
  44. end
  45.  
  46. local function MakePart(on)
  47. local root = client.Character:FindFirstChild'HumanoidRootPart'
  48. if root == nil then return end
  49. Part.CanCollide = on
  50. Part.Parent = workspace
  51. Part.CFrame = root.CFrame + Vector3.new(0, 100, 0)
  52.  
  53. if on then
  54. root.CFrame = Part.CFrame + Vector3.new(0, 5, 0)
  55. end
  56. end
  57.  
  58. meta.__namecall = function(self, ...)
  59. local args = {...}
  60. local method = table.remove(args, #args)
  61.  
  62. --[[
  63. if method == "GetChildren" and tostring(self.Name) == primary.Value then
  64. print(debug.getlocal(2, "CODE"))
  65. print('a')
  66. end
  67. ]]
  68.  
  69. if method == "InvokeServer" and tostring(self) == "GetCodes" then
  70. local name = args[#args]
  71. local ret = backup(self, ...)
  72. codes[name] = (ret + transform)
  73. return ret
  74. elseif method == "FireServer" then
  75. if self == nofall then
  76. return wait(9e9)
  77. elseif self == FX then
  78. pcall(function() print("Potential ban from script: " .. getfenv(2).script:GetFullName()) end)
  79. return wait(9e9)
  80. end
  81. end
  82. return backup(self, ...)
  83. end
  84.  
  85. local typecon = game:GetService'UserInputService'.InputBegan:Connect(function(key, ingui)
  86. if key.KeyCode == Enum.KeyCode.Q and not ingui then
  87. running = not running
  88. warn("RUNNING:", running)
  89. MakePart(running)
  90.  
  91. if running then
  92. zconn = zombiefolder.ChildAdded:Connect(function(c)
  93. KillZombie(c)
  94. end)
  95.  
  96. for i, v in pairs(zombiefolder:GetChildren()) do
  97. KillZombie(v)
  98. end
  99. else
  100. if zconn then
  101. zconn:Disconnect()
  102. end
  103. end
  104. end
  105. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement