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

Finding Players through Non-Local Scripts?

I took a break from LUA for a while, I forgot how to find players through scripts. So I am trying to make an interaction with certain areas, so I need to find the player who set off the script. Any help from anyone will be noble.

script.Parent.ClickDetector.MouseClick:connect(function(player)
	player.PlayerGUI.Crack.Frame.Visible = true
end)

Output PlayerGUI is not a valid member of Player

Please help me with my problem.

2 comments

0

PlayerGui instead of PlayerGUI

0

They mark me down but I don't see ether of them answering the question.

2 answers

Use a module script and localscript and connect then then make a value with value of plrs name :D

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