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 Help

Previous Thread :: Next Thread 
MilkyWay01 is not online. MilkyWay01
Joined: 22 Feb 2010
Total Posts: 1049
15 Jul 2012 06:02 PM
I have a gui in my game that's supposed to appear every 10 seconds. Once I go onto play solo it appears after 10 seconds but doesn't go away. Why? Also I have a value in workspace and a script that changes the value from 1 to 0 every 10 seconds and that works.


local q = 1
while q < 10 do
if game.Workspace.Value.Value == 1 then
script.Parent.Visible = true
script.Parent.Yes.Active = true
script.Parent.No.Active = true
if game.Workspace.Value.Value == 0 then
script.Parent.Visible = false
script.Parent.Yes.Active = false
script.Parent.No.Active = false
end
end
end
Report Abuse
Drak0Master is not online. Drak0Master
Joined: 10 Aug 2009
Total Posts: 836
15 Jul 2012 06:23 PM
while true do
script.Parent.Visible = true
script.Parent.Yes.Active = true
script.Parent.No.Active = true
wait(10)
end

Make a button change the visibility to false.
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
15 Jul 2012 06:33 PM
I don't see the wait that makes it wait 10 seconds to be seen. Do you mean a loop similar to:

-10 Seconds- I SEE I
-3 Seconds- It's gone D:
-10 Seconds- I see it!
-3 Seconds- It's gone D:

Because then it would be:

while wait(10) do
DAGUI.Visible = true
wait(3)
DAGUI.Visible = false
end

If not, please clarify.
Report Abuse
MilkyWay01 is not online. MilkyWay01
Joined: 22 Feb 2010
Total Posts: 1049
15 Jul 2012 06:34 PM
I guses I'll explain more. The gui is for a tournament mode on my game and doing it drak's way would make the tournament gui appear at different times on everyones screens.
Report Abuse
MilkyWay01 is not online. MilkyWay01
Joined: 22 Feb 2010
Total Posts: 1049
15 Jul 2012 06:35 PM
so the value thingy in my script has to be there
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
15 Jul 2012 06:38 PM
If you get any legitimate information, you could repost it to this thread or another.
Report Abuse
MilkyWay01 is not online. MilkyWay01
Joined: 22 Feb 2010
Total Posts: 1049
15 Jul 2012 07:23 PM
bump
Report Abuse
MilkyWay01 is not online. MilkyWay01
Joined: 22 Feb 2010
Total Posts: 1049
15 Jul 2012 08:40 PM
fixed it on my own
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
31 Jul 2012 04:20 PM
Okay, that's good.
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