generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Does this work? if not how do you do this

Previous Thread :: Next Thread 
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
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
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
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
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
22 Mar 2013 10:02 PM
Yes, I got that down :P
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
22 Mar 2013 10:03 PM
So... What's your question then?
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
22 Mar 2013 10:05 PM
I just wanted to make sure that's how you access startergui.
Thanks
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
22 Mar 2013 10:07 PM
No problem.
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
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
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
22 Mar 2013 10:11 PM
Can you post the whole script?
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
22 Mar 2013 10:12 PM
I haven't made it yet. But it's gonna be a new player gui.
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
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 is not online. 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
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
22 Mar 2013 10:32 PM
Yeah, But I want the gui to stay the same on death.
Report Abuse
MrNicNac is not online. 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
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
22 Mar 2013 10:36 PM
That's right, I was getting PlayerGui and StarterGui mixed up.

Thanks for clarifying.
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
22 Mar 2013 10:42 PM
How would I do that nic?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image