Universal Script 📌
9.0k Views
367 Executions

Test

Universal Script 📌
Among
AmongFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Among us

Updates

  1. Script edited: Create script

View Raw
-- Função para identificar NPCs e matá-los
function identificarEMatarNPCs()
    local player = Game.getPlayer()  -- Supondo que Game.getPlayer() retorna o jogador controlado pelo usuário
    local npcs = Game.getNPCs()      -- Supondo que Game.getNPCs() retorna uma lista de NPCs no jogo

    for _, npc in ipairs(npcs) do
        if npc:isAlive() then
            -- Aqui você pode ajustar como deseja interagir com os NPCs
            -- Exemplo: npc:damage(999) para matar instantaneamente, ou npc:damage(1) para deixar com 1 de vida
            npc:damage(999)  -- Mata o NPC instantaneamente
            -- npc:damage(1)  -- Deixa o NPC com 1 de vida (pouca vida)

            print("NPC identificado e eliminado!")
        end
    end
end

-- Função para repetir a identificação e eliminação de NPCs em intervalos regulares
function repetirIdentificarEMatarNPCs()
    while true do
        identificarEMatarNPCs()  -- Chama a função para identificar e matar NPCs

        -- Define o intervalo de tempo entre cada execução (em segundos)
        local intervalo = 5  -- Intervalo de 5 segundos
        os.sleep(intervalo)  -- Espera pelo intervalo definido antes de repetir
    end
end

-- Chamada para iniciar o processo de repetição
repetirIdentificarEMatarNPCs()



Comments

3
Log in to join the conversation. Login
brayanbarboosa's profile picture
brayanbarboosa6 months ago

rapaz vou testar

1
sammy10990's profile picture
sammy109902 years ago(edited)

what is this

1
Moor's profile picture
Moor2 years ago(edited)

Test

1