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 » Scripters
Home Search
 

Re: why isnt wait() working?

Previous Thread :: Next Thread 
iHypered is not online. iHypered
Joined: 09 Nov 2010
Total Posts: 2751
14 Jul 2016 11:14 PM
everything just pops up at once, and it doesnt wait() and make the guis visible = false like its supposed to

game.Workspace.gui.Changed:connect(function()
if game.Workspace.gui.Value == true then
script.Parent.name.Text = game.Workspace.mapname.Value
script.Parent.Visible = true
script.Parent.ImageLabel.Image = game.Workspace.image.Value
wait(4)
script.Parent.Visible = false
script.Parent.Parent.mode.Visible = true
if game.Workspace.Mode.Value == 1 then
script.Parent.Parent.mode.name.Text = "Classic"
script.Parent.Parent.mode.desc = "Beat the obby before the time runs out."
elseif game.Workspace.Mode.Value == 2 then
script.Parent.Parent.mode.name.Text = "Speed Run"
script.Parent.Parent.mode.desc = "Beat the obby before the time runs out with 30 speed."
elseif game.Workspace.Mode.Value == 3 then
script.Parent.Parent.mode.name.Text = "Teams"
script.Parent.Parent.mode.desc = "Be the team with the most people who finished the obby."
wait(4)
script.Parent.Parent.mode.Visible = false
if game.Workspace.Difficulty.Value == 1 then
script.Parent.Parent.difficulty.name.Text = "Easy"
script.Parent.Parent.difficulty.desc = "You will be given a lot of time to beat the obby."
script.Parent.Parent.difficulty.name.TextColor3 = Color3.new(85, 170, 0)
elseif game.Workspace.difficulty.Value == 2 then
script.Parent.Parent.difficulty.name.Text = "Medium"
script.Parent.Parent.difficulty.desc = "You will be given a good amount of time to beat the obby."
script.Parent.Parent.difficulty.name.TextColor3 = Color3.new(0, 85, 127)
elseif game.Workspace.Difficulty.Value == 3 then
script.Parent.Parent.difficulty.name.Text = "Hard"
script.Parent.Parent.difficulty.desc = "You will be given a short amount of time to beat the obby."
script.Parent.Parent.difficulty.name.TextColor3 = Color3.new(170, 0, 0)
end
end
end
end)




Report Abuse
iHypered is not online. iHypered
Joined: 09 Nov 2010
Total Posts: 2751
14 Jul 2016 11:25 PM
b


Report Abuse
brian445566 is not online. brian445566
Joined: 17 Nov 2008
Total Posts: 68
15 Jul 2016 12:10 AM
add debounce


Report Abuse
xXIcanthinkofanameXx is not online. xXIcanthinkofanameXx
Joined: 05 May 2012
Total Posts: 857
15 Jul 2016 12:20 AM
^ I really don't think that adding a debounce will work. @OP I'm not exactly sure what's going on, because your code looks okay. Maybe you have another script that is interfering?
Report Abuse
ninjabeast0117 is not online. ninjabeast0117
Joined: 19 Dec 2011
Total Posts: 489
15 Jul 2016 01:10 AM
try
if script.Parent.Visible == true then
wait (4)
script.Parent.Visible = false






i try alternatives when scripting.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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