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

Sup Guys! I Have A Problem, Can You Solve It?

For Example When A Player Clicks A Click Detector, I Want To Make The Script Check Who Clicked It Without The LocalPlayer Value

1 comment

0

the MouseClick event has a PlayerWhoClicked parameter

1 answer

Server Script

script.Parent.ClickDetector.MouseClick:Connect(function(hit)
	print(hit.Name)
end)

This should be what you're looking for, the "hit" for a clickdetector is the player in game.Players

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