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
|
  |
| Joined: 09 Nov 2010 |
| Total Posts: 2751 |
|
| |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|