|
| 22 Mar 2013 09:58 PM |
plrg = game.Players:GetPlayerFromCharacter(part.Parent).StarterGui
I wanna change a gui permanently, will that change it permanently everytime a humanoid spawns? |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 10:01 PM |
That by itself won't change anything. And as long as you define 'part' correctly, you should be able to access the player's StarterGui |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Mar 2013 10:03 PM |
| So... What's your question then? |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 10:05 PM |
I just wanted to make sure that's how you access startergui. Thanks |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Mar 2013 10:10 PM |
Hmm, one last question about getplayerfromcharacter if i'm using it as a gui script, so I cannot say part.Parent
but if i dont have anything between the ( and ) it will say no argument. What do i do? |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 10:11 PM |
| Can you post the whole script? |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 10:12 PM |
| I haven't made it yet. But it's gonna be a new player gui. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 10:17 PM |
Well, the reason I ask is because I don't know what you mean by putting stuff between the ( and ).
So, if you can get me that info, it would be most helpful. |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 22 Mar 2013 10:23 PM |
| There is no StarterGui in a player. StarterGui is only in the game. When you're looking for the GUI container that players use, it's called PlayerGui. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 10:32 PM |
| Yeah, But I want the gui to stay the same on death. |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 22 Mar 2013 10:34 PM |
For all the players, or for just one?
If you want it to change for everyone, then you'll need to, not only edit the player's PlayerGui, but also the game's StarterGui.
Editing it for only one player requires a different approach than placing it in their PlayerGui. You'll simply have to have the actual GUI have a script in it which retrieves the needed data each time it loads. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2013 10:36 PM |
That's right, I was getting PlayerGui and StarterGui mixed up.
Thanks for clarifying. |
|
|
| Report Abuse |
|
|
| |
|