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

how do i access the player gui using the players character?

this is not a request, i just want to know what is the event or function

2 comments

0

you don't need getPlayerFrom characetr there. Just use the player param from PlayerAdded

0

iFireLazer is right.

2 answers

When you use the Player Added function, the argument you pass it is the player. Which basically means that you can detect the player, then just use the argument you passed to get the player. And since the PlayerGui is in the player, you can do local plrGUI = plr.PlayerGui (assuming you passed plr to the PlayerAdded function). So, (looking at the link you at on theCJarmy7's answer) the whole character added thing, isn't even needed. However, if you do need to get the players character, you can just do local character = plr.Character (once again, assuming you passes plr to the PlayerAdded function). Feel free to ask any questions, because that may be a little confusing.

1 comment

0

yes i can do all this but when i start server, it says experience gui is not a member of player gui, when i use waitforchild experience gui, that doesnt work too

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