So I want to create a brick that finds a player, then when it's clicked it kills that player. But the thing is I want multiple of those kill bricks that altogether will kill every player, but so that the player clicking the blocks doesnt just randomly kill people, how would I also change the name of the brick?
SUMMARY: I want to make a brick, that kills a certain player in the server, but also renames itself to the name of the player it will kill.
For example : function onClicked(playerWhoTouched) workspace.[insert name here].Humanoid.Health = 0 end script.Parent.ClickDetector.MouseClick:connect(onClicked)
But how would I find the name in the first place?

2 comments
In layman's terms: MouseClick gives you the player who clicked, so use that.
Thank you so much for this! but I need to find the name before hand.