GetTouchingParts not working

for _, part in ipairs(character.HumanoidRootPart:GetTouchingParts()) do
    print(part.Name)
end

I’m trying to check if a player is inside of the nest by checking if they are touching the “mapping” part but it doesn’t return anything

RTFM: GetTouchingParts

You can connect a blank Touched event to Mapping so it can get queried with GetTouchingParts. Please see the following thread:

2 Likes

You should instead use :GetPartsInPart, its the replacement for :GetTouchingParts and doesn’t need the Touched event as it doesn’t care if the part is cancollide true or false.

4 Likes