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)
You can't get the player who clicked from a part.