local player = game.Players:GetPlayerFromCharacter()
script.Parent.Union.ClickDetector.MouseClick:connect(function(click)
if script.Parent.Owner.Value == "" then
script.Parent.Owner.Value = game.Players:GetPlayerFromCharacter(click)
end
end)
COMMUNITY QUESTION
I am trying to set a value to a players name when click I keep getting a error can anyone help?
1 answer
You can't get the player who clicked from a part.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
where can I get it from?