Roblox Room 2 Auto Kill All Script

Roblox Room 2 Auto Kill All Script

Script by egg salad

-- Variable
local player = game.Players.LocalPlayer

-- Damage Function
local damageFunc = (function()
    for i,v in pairs(getgc()) do
        if type(v) == "function" and getfenv(v).script == game.Players.LocalPlayer.PlayerScripts["_client2"] and #debug.getconstants(v) == 3 and debug.getconstant(v,3) == "FireServer" then
            return v
        end
    end
    player:Kick("Patched!")
end)()

-- Skeet
while wait() do
    local shit = workspace:GetChildren()
    for i = 1, #shit do local v = shit[i]
        local validPlr = v ~= player.Character and v:FindFirstChild("Humanoid") and v.Humanoid.Health > 0 and v:FindFirstChild("HumanoidRootPart") and v or false
        if validPlr then
            for i = 1, (validPlr.Humanoid.Health/10) do
                damageFunc("LightningGun",validPlr.Humanoid,10,validPlr.HumanoidRootPart,validPlr.Head,"lightning",Vector3.new())
            end
        end
    end
    pcall(function()
        game.ReplicatedStorage.ServerEvents.Votekick:FireServer(game.Players:GetPlayers()[2].Name)
    end)
end
%d bloggers like this: