Help with crowding out box

Hello there! I wanna make crowding out this box:

I tried to use raycast, maybe I’ve done something incorrectly.

A part of the code:

local params = OverlapParams.new()
params.FilterDescendantsInstances = {char, cam, explosionBox}
params.FilterType = Enum.RaycastFilterType.Exclude

explosionBox.CFrame = CFrame.new(m.Hit.Position)

Thanks!

1 Like