scrollIron Man Simulator 2

Auto kill

By executing this script, you will be able to kill other players in the server

for _,v in pairs(game:GetService("Players"):GetPlayers()) do
    print(v.Name)
    while v ~= game:GetService("Players").LocalPlayer and v.Character and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChildOfClass("Humanoid") and v.Character:FindFirstChildOfClass("Humanoid").Health > 0 do
        coroutine.wrap(function()
            local bullet = game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("FireRepulsor"):InvokeServer({["hand"] = game:GetService("Players").LocalPlayer.Character.Suit.LeftHand})
            if v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
                game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("RepulsorHit"):FireServer({["projectile"] = bullet, ["hitPart"] = v.Character:FindFirstChild("HumanoidRootPart"), ["hitPos"] = v.Character:FindFirstChild("HumanoidRootPart").Position, ["hitNormal"] = Vector3.xAxis})
            end
        end)
        coroutine.wrap(function()
            local bullet = game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("FireRocket"):InvokeServer({["hand"] = game:GetService("Players").LocalPlayer.Character.Suit.LeftHand})
            if v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
                game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("RocketHit"):FireServer({["projectile"] = bullet, ["hitPart"] = v.Character:FindFirstChild("HumanoidRootPart"), ["hitPos"] = v.Character:FindFirstChild("HumanoidRootPart").Position, ["hitNormal"] = Vector3.xAxis})
            end
        end)
        coroutine.wrap(function()
            local bullet = game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("FireRocket"):InvokeServer({["hand"] = game:GetService("Players").LocalPlayer.Character.Suit.RightHand})
            if v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
                game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("RocketHit"):FireServer({["projectile"] = bullet, ["hitPart"] = v.Character:FindFirstChild("HumanoidRootPart"), ["hitPos"] = v.Character:FindFirstChild("HumanoidRootPart").Position, ["hitNormal"] = Vector3.xAxis})
            end
        end)
        local bullet = game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("FireRepulsor"):InvokeServer({["hand"] = game:GetService("Players").LocalPlayer.Character.Suit.RightHand})
        if v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
            game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("RepulsorHit"):FireServer({["projectile"] = bullet, ["hitPart"] = v.Character:FindFirstChild("HumanoidRootPart"), ["hitPos"] = v.Character:FindFirstChild("HumanoidRootPart").Position, ["hitNormal"] = Vector3.xAxis})
        end
    end
end

Last updated