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

Finding Players through Non-Local Scripts?

Asked by 9 years ago

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.

0
PlayerGui instead of PlayerGUI MessorAdmin 598 — 9y
0
They mark me down but I don't see ether of them answering the question. MessorAdmin 598 — 9y

2 answers

Log in to vote
0
Answered by 9 years ago

PlayerGui Capitalization

Ad
Log in to vote
-1
Answered by
MrCss 0
9 years ago

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

Answer this question