Clickdetector not working with TargetFilter?

I’m trying to click on a ClickDetector from behind a transparent block. I used a TargetFilter on that block, but am still unable to click the ClickDetector.

Here’s a basic script of the TargetFilter:

local Players = game:GetService("Players");
local player = Players.LocalPlayer;
local mouse = player:GetMouse();
mouse.TargetFilter = workspace.Block;