How can I use PartsBoundInBox for this?

How could I use PartsBoundInBox for AOE parts? I’m basically asking how can I use PartsBoundInBox to get all players inside a part and do damage. I haven’t been able to find anything on how to use it so I’m here now. Any help is appreciated, thank you and have a good day.

You can loop through the things inside the box. Check if the thing is a player using game.Players:GetPlayersFromCharacter() then damage the player if a player is found.