OverlapParams not working

Im mostly new to overlap params
Code:

local LobbyFolder = workspace.Lobby

local TutorialFolder = LobbyFolder.Tutorial
local MapsFolder = LobbyFolder.Maps

local EnterParts = {
	['Tutorial'] = TutorialFolder.Enter,
}

local OverlapParam = OverlapParams.new()
OverlapParam.FilterType = Enum.RaycastFilterType.Blacklist
OverlapParam.FilterDescendantsInstances = {}

local Hitbox = workspace:GetPartBoundsInBox(EnterParts.Tutorial.CFrame, EnterParts.Tutorial.Size, OverlapParam)

while task.wait() do
	for _, v in pairs(Hitbox) do
		if v.Parent:FindFirstChild('Humanoid') then
			print('be')
		end
	end
end
1 Like

put the HitBox Variable inside the while loop.

OverlapParam.FilterDescendantsInstances = {}
You haven’t actually inserted any instances into the array of filtered instances.

1 Like