For whatever reason, it appears that any character made with parts doesn’t get detected by this blockcast. I’ve checked and both characters are the exact same, except ones made with meshparts. I then checked if it was detecting, but not finding the humanoid therefore not doing damage and turning the visual green, but it didn’t detect the character at all. Anything helps.
Blockcast code:
local attackSize = Vector3.new(6, 4, 8)
local direction = -Vector3.yAxis
local attackDistance = 0.1
local hit = false
-- Raycast Parameters
local rayParams = RaycastParams.new()
rayParams.FilterDescendantsInstances = {character} -- Ignore attacker
rayParams.FilterType = Enum.RaycastFilterType.Exclude
-- Loop to update attack position
for _ = 1, 9 do
if not hit then
local attackCFrame = rootPart.CFrame * CFrame.new(0, 1, -6 / 2)
-- Perform Blockcast
local result = workspace:Blockcast(attackCFrame, attackSize, direction * attackDistance, rayParams)