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

I am trying to set a value to a players name when click I keep getting a error can anyone help?

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)

1 answer

You can't get the player who clicked from a part.

1 comment

0

where can I get it from?

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