i have no idea why this doesn't work
local CollectionService = game:GetService("CollectionService")
local dmgBricks = CollectionService:GetTagged("Damage")
for i, damageBrick in pairs(dmgBricks) do
damageBrick.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health -= 25
print("Damage dealt")
end
end)
end