Trying to detect if another players click detector was clicked

i made a clickdetector and parented it to every players torso. im trying to detect when a player clicks another players click detector. i tried some things but i cant really get it to work. any ideas? ty

for i, char in workspace:GetChildren() do
	if char:IsA("Model") then
		local plr = game.Players:GetPlayerFromCharacter(char)
		
		if plr then
			char.Torso.charCD.MouseClick:Connect(function(plrwhoClicked)
				print(plrwhoClicked.Name)
			end)
		end
	end
end

bd1ce65fd96efd5f392b547dd398d651

How do you make gifs I cant :sob:? I record it and no matter what I can’t make it a GIF. Can you tell me how to do it?

download gyazo, when u do, open this. highlight whatever u want to make a gif on. once u do it opens in browser, if u want u can copy the URL:
(https://gyazo.com/ff1d9947054d339635ef88d040eb1023)

OR if u want it to display like it did in my post u click share, n download the GIF. then drop the file into ur post. :slight_smile:

image
a8675122eff7aae56716b41f1c7eeef3

I have gyazo and I did that and it wasnt working. Oh well :crying_cat_face:

I personally would just use the PlayerAdded event to detect when a player joins, then wait for their character and add it there

i did that at first and it wasnt working. i did a print statement to see if it was working and it wasnt and i was like “why isnt this working”. i forgot to look at the output on the server. :man_facepalming: tysm man!