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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: GUI Issues, requesting help.

Previous Thread :: Next Thread 
MarblesStudios is not online. MarblesStudios
Joined: 06 Mar 2010
Total Posts: 138
06 Jan 2012 05:19 AM
I'm working on a game, and one of the features is at the beginning, when a picture shows up at the start, then six seconds later, it vanishes. Funny thing is, when I click the play button while in the studio, it works the way I wanted it to, but if I Play Solo it, the picture just stays up and never goes away. The scripting is:
-----
game.StarterGui.ScreenGui.Frame.Visible = true

wait (6)

print 'disabled'
game.StarterGui.ScreenGui.Frame.Visible = false
-----
Another GUI use that I have going is to inform the player that he/she can't go a certain way because that is out of bounds. When I put that in, however, that never showed up when I Play Solo. Scripting goes:
-----
function onTouched(hit)

print 'Touch'
game.StarterGui.OutOfBounds.Frame.Visible = true

wait (3)

print 'Warned'
game.StarterGui.OutOfBounds.Frame.Visible = false

end

script.Parent.Touched:connect(onTouched)
-----

The prints show up in my output when the appropriate action is taken, but no GUI. The layout of both GUI's goes as follows:
StarterGui>ScreenGui>Frame>ImageLabel (Starting image)
StarterGui>OutOfBounds (ScreenGui, just renamed)>Frame>ImageLabel (Out of Bounds)

I know I'm doing something wrong, but I can't figure out what. Any idea on what to do?
Report Abuse
DigitalMirage is not online. DigitalMirage
Joined: 08 Dec 2011
Total Posts: 421
06 Jan 2012 05:49 AM
[ Content Deleted ]
Report Abuse
MarblesStudios is not online. MarblesStudios
Joined: 06 Mar 2010
Total Posts: 138
06 Jan 2012 06:08 AM
Yeah.... so?
Report Abuse
DigitalMirage is not online. DigitalMirage
Joined: 08 Dec 2011
Total Posts: 421
06 Jan 2012 06:15 AM
[ Content Deleted ]
Report Abuse
MarblesStudios is not online. MarblesStudios
Joined: 06 Mar 2010
Total Posts: 138
06 Jan 2012 10:59 AM
Do you mean changing ScreenGui to PlayerGui??
Report Abuse
Kepie is not online. Kepie
Joined: 12 Nov 2011
Total Posts: 884
06 Jan 2012 11:04 AM
@marble ScreenGui have to be when you should make a GUI xD.
Report Abuse
MarblesStudios is not online. MarblesStudios
Joined: 06 Mar 2010
Total Posts: 138
06 Jan 2012 11:06 AM
You make no sense.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
06 Jan 2012 11:16 AM
[ Content Deleted ]
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
06 Jan 2012 11:21 AM
Marbles you make no sense.

Instead of ScreenGui it needs to be the PlayerGui, because the PlayerGui is for the player that the GUI is inside.
Report Abuse
MarblesStudios is not online. MarblesStudios
Joined: 06 Mar 2010
Total Posts: 138
06 Jan 2012 11:24 AM
I am not a great scripter. A lot of the stuff I'm doing now is for practice.
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
06 Jan 2012 11:27 AM
How in the name of god can you change ScreenGui into PlayerGui. That makes no sence at all.

So I'll break it down a little bit easier so everyone understands it.


StarterGui puts a gui in every player that respawns's PlayerGui.
Everything that's changed in startergui will only take effect when a player has respawned.
Everyting that's changed in the PLAYERGUI will instantly take effect in the player whose playergui was used.

Example :

I respawn i get gui1.
Then I set gui1 to gui2 IN STARTERGUI.
I respawn, i get gui2

Example2 :
I respawn, i get gui1
Then I set gui1 to gui2 IN PLAYERGUI.
I instantly get gui2.
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