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

whenever I click a object with a clickdetector how do I found out who clicked it?

I don't really know how to do this but I want to be able to click the item then it copies the players name into the items StringValue

I don't have a script yet because I don't know how to start really

1 answer

The variable 'plr' is the actual Player.

script.Parent.ClickDetector.MouseClick:connect(function(plr)
	print(plr.Name)
end)

2 comments

0

You forgot: '.MouseClick' after 'ClickDetector'

0

Ah, thank you.

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