i'm a bit new, but when it comes to making a brick do damage, the only answers i've gotten is to use this script;
script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hit.Parent:Breakjoints() end end)
is there a simpler way of coding this? or do i have to use FindFirstChild? also can functions have parents? if so what classifies as a parent for it?

1 comment
Please, paste code in Code block next time. In this case, FindFirctChild function used for check if a part that touched your part was a part of player. So then the answer for your question depends on what exactly you need.