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: GUI.Visible not working

Previous Thread :: Next Thread 
Krimulous is not online. Krimulous
Joined: 17 Mar 2011
Total Posts: 7993
05 Sep 2014 06:31 PM
so im making a thing and the GUI doesn't show up unless you reset everytime the GUI updates and idk why it wont work

mr = math.random(1,2)
timeleft = ("You have 5 seconds to answer this question")
frame = game.StarterGui.ScreenGui.Frame
textlabel = game.StarterGui.ScreenGui.Frame.TextLabel
textlabel.Text = "Intermission"
wait(3)
frame.Visible = false



if mr == 1 then
question = robloxQuestions.r1
frame.Visible = true
textlabel.Text = question
wait(3)
textlabel.Text = timeleft
wait(2)
frame.Visible = false
wait(3)
truea.Transparency = 0.5
truea.CanCollide = false
wait(3)
truea.Transparency = 0
truea.CanCollide = true
elseif mr == 2 then
question = robloxQuestions.r2
frame.Visible = true
textlabel.Text = question
wait(3)
textlabel.Text = timeleft
wait(2)
frame.Visible = false
wait(3)
falsea.Transparency = 0.5
falsea.CanCollide = false
wait(3)
falsea.Transparency = 0
falsea.CanCollide = true
end


what the heck is a laker
Report Abuse
Krimulous is not online. Krimulous
Joined: 17 Mar 2011
Total Posts: 7993
05 Sep 2014 06:33 PM
also: no output, everything else works fine

what the heck is a laker
Report Abuse
Krimulous is not online. Krimulous
Joined: 17 Mar 2011
Total Posts: 7993
05 Sep 2014 06:56 PM
bump

what the heck is a laker
Report Abuse
Krimulous is not online. Krimulous
Joined: 17 Mar 2011
Total Posts: 7993
05 Sep 2014 08:49 PM
rip this thread

bum p

what the heck is a laker
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
05 Sep 2014 08:52 PM
Where are you expecting it to reappear?
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
05 Sep 2014 08:55 PM
You are defining startergui. Define playergui instead.
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