Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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

0
the MouseClick event has a PlayerWhoClicked parameter theking48989987 2147 — 5y

Closed as Too Broad by User#24403 and theking48989987

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 5 years ago

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

Ad