Universal Script 📌
2.3k Views
32 Executions

Print Detected Humanoid Parts in Console

Universal Script 📌
Proton
ProtonPublished 5
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

Detects Humanoid Parts

View Raw
local function detectAllBodyParts(player)
    if player and player.Character then
        local character = player.Character
        local humanoid = character:WaitForChild("Humanoid", 5)  

        if humanoid then
            local printedParts = {} 
            
            for _, part in pairs(character:GetChildren()) do
                if part:IsA("BasePart") and not printedParts[part.Name] then
                    print(part.Name .. " exists!")
                    printedParts[part.Name] = true  
                end
            end
        else
            print("Humanoid not found or not Correctly Loaded")
        end
    else
        print("Humanoid Does not exist")
    end
end

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        detectAllBodyParts(player)
    end)
end)



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
6.9k
53.8k
Bumped 1 hour ago
Universal Script 📌
63
7
Approved 1 hour ago
Script hub
13.2k
62.1k
Bumped 2 hours ago
Script hub
2.5k
7.4k
Bumped 2 hours ago
Key System
Universal Script 📌
1.3k
4.9k
Bumped 2 hours ago