I want to shoot a blockcast from the character, but for some reason, it doesn’t blacklist the custom character I’m using. The character is a smooth mesh btw
This is the code I have:
RemoteEvent.OnServerEvent:Connect(function(player)
local character = player.Character
local root = character:FindFirstChild('HumanoidRootPart')
local rp = RaycastParams.new()
rp.FilterType = Enum.RaycastFilterType.Exclude
rp.FilterDescendantsInstances = {character:GetChildren()}
local hitRay = workspace:Blockcast(root.CFrame, root.Size, root.CFrame.LookVector * 3)
if hitRay then
if hitRay.Instance then
print(hitRay.Instance)
print(hitRay.Instance.Parent)
end
end
end)
this is a screenshot of it
also in the table I already tried using the normal character in the table and not character:GetChildren() and for some reason it works just fine with regular r6