hit a common parameter in a .Touched event. It is the brick that touched that brick in order to trigger the function. If a character hits it with their limbs, hit.Parent would mean their character, no?
Have to do a check, because that won't always be a character:
if hit.Parent:FindFirstChild ('Humanoid') then
game.Players:GetPlayerFromCharacter (hit.Parent) |