Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ModTable = nil
- for _,a in pairs(debug.getregistry()) do
- if type(a) == "function" and pcall(function() return debug.getupvalues(a) end) then
- for i,v in pairs(debug.getupvalues(a)) do
- if type(v) == "table" then
- for ch,e in pairs(v) do
- if ch == "UUID" and ModTable == nil then
- ModTable = v
- end
- end
- end
- end
- end
- end
- local ShotSize = ModTable['ShotSize']
- local Mag = ModTable['Magazine']
- local Plr = game.Players.LocalPlayer
- local GunAmmo = Plr.Character:WaitForChild("Gun").Ammo
- local Reload = game.ReplicatedStorage.RuddevRemotes.Reload
- local Ammo = nil
- local isLoaded = true
- local function reload()
- local Ammo = GunAmmo.Value
- wait(0.1)
- Reload:FireServer()
- repeat wait() until GunAmmo.Value > Ammo or GunAmmo.Value >= Mag
- return true
- end
- local function check(v)
- if GunAmmo.Value > 0 and isLoaded then
- if v:FindFirstChildOfClass("Humanoid") == nil then else
- if v:FindFirstChildOfClass("Humanoid"):FindFirstChild("KillTag") ~= nil then
- if v:FindFirstChildOfClass("Humanoid").Health > 0 then
- return true
- end
- else
- return true
- end
- end
- end
- return false
- end
- local Filter = {}
- local Mouse = Plr:GetMouse()
- local function FindPart(model)
- if model:FindFirstChild("Head") then return model.Head end
- if model:FindFirstChild("UpperTorso") then return model.UpperTorso end
- return model:FindFirstChildOfClass("Part")
- end
- for i,v in pairs(game.Players.LocalPlayer.PlayerScripts:WaitForChild('Zombies'):GetChildren()) do
- if v:isA("BaseScript") then
- v.Disabled = true
- end
- end
- while reload() do
- local tab = workspace.Zombies:GetChildren()
- if #tab > 0 then
- else
- if workspace:FindFirstChild("Giga Zombie") then
- tab = {workspace:FindFirstChild("Giga Zombie")}
- end
- if workspace:FindFirstChild("The Evil Dr. Zombie") then
- tab = {workspace:FindFirstChild("The Evil Dr. Zombie")}
- end
- if workspace:FindFirstChild("Fire Elemental Zombie") then
- tab = {workspace:FindFirstChild("Fire Elemental Zombie")}
- end
- if workspace:FindFirstChild("Yeti Zombie") then
- tab = {workspace:FindFirstChild("Yeti Zombie")}
- end
- end
- for i,v in pairs(tab) do
- local part = FindPart(v)
- local Accept = check(v)
- if Accept == true and part ~= nil and (Plr.Character.HumanoidRootPart.Position-part.Position).Magnitude <= 100 then
- local cheatt,dumbb = {},{}
- for i=1,ShotSize do cheatt[i] = {part,i} end
- for i=1,ShotSize do dumbb[i] = Vector3.new(0,0,0) end
- repeat
- game.ReplicatedStorage.RuddevRemotes.Shoot:FireServer(
- Plr.Character.Gun.Handle.Position,
- dumbb,
- cheatt)
- wait()
- until check(v) == false
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement