Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

lua click detector? please help

ok I put a regular block down & gave it click detector and under click detector I added a script with if true print 'test' end

It didnt work & I want to know how to auctually make it work and what I did wrong. I am a noob at scripting & I dont know too much

1 answer

✓ Accepted answer
script.Parent.MouseClick:connect(function(plr_who_clicked) 
	-- Returns the player who clicked it.
	print(plr_who_clicked.Name.. " clicked me.")
end)

MouseClick event

Concatenation

This discussion is preserved as it was. New answers, comments, and votes are closed.