|
| 08 Sep 2013 06:28 PM |
So, I have 2 scripts. THis is in the first script: button = script.Parent box = script.Parent.Parent.Parent.box
function fOpen() script.Parent.Parent.Parent.boxOpen.Value = "backstory" for i = 1, 0.3, -0.05 do wait() box.BackgroundTransparency = i end box.Backstory.Visible = true end function fClose() script.Parent.Parent.boxOpen.Value = "none" for i = 0.3, 1, 0.05 do wait() box.BackgroundTransparency = i end box.Backstory.Visible = false end
function fDecide() if script.Parent.Parent.Parent.boxOpen.Value == "none" then fOpen()
elseif script.Parent.Parent.Parent.boxOpen.Value == "backstory" then fClose() elseif script.Parent.Parent.Parent.boxOpen.Value == "credits" then box.Credits.Visible = false box.Backstory.Visible = true elseif script.Parent.Parent.Parent.boxOpen.Value == "customize" then box.Customize.Visible = false box.Backstory.Visible = true end end
button.MouseButton1Click:connect(fDecide)
and this is in the second:
button = script.Parent box = script.Parent.Parent.Parent.box
function fOpen() script.Parent.Parent.Parent.boxOpen.Value = "credits" for i = 1, 0.3, -0.05 do wait() box.BackgroundTransparency = i end box.Credits.Visible = true end function fClose() script.Parent.Parent.Parent.boxOpen.Value = "none" for i = 0.3, 1, 0.05 do wait() box.BackgroundTransparency = i end box.Credits.Visible = false end
function fDecide() if script.Parent.Parent.Parent.boxOpen.Value == "none" then fOpen()
elseif script.Parent.Parent.Parent.boxOpen.Value == "credits" then fClose() elseif script.Parent.Parent.Parent.boxOpen.Value == "backstory" then box.Backstory.Visible = false box.Credits.Visible = true elseif script.Parent.Parent.Parent.boxOpen.Value == "customize" then box.Customize.Visible = false box.Credits.Visible = true end end
button.MouseButton1Click:connect(fDecide)
The value of boxOpen is set to "none" by default. If I click on Backstory, it opens fine. THen when I click on credits, it switches over. Nothing else works likes its supposed to. ALso, When i start out with Credits, it does not switch over to backstory D: Please help me? If you wanna check it out for yourselves, http://www.roblox.com/hEX-INDEV-place?id=117316276 DONT STEAL MY IDEAS! |
|
|
| Report Abuse |
|
|
| 09 Sep 2013 02:24 PM |
| bump. Can someone please help me? It can't hurt to help, just a little? |
|
|
| Report Abuse |
|
|
| 09 Sep 2013 02:27 PM |
| sry its to long for me i am to lazy :D |
|
|
| Report Abuse |
|
|
| 09 Sep 2013 03:35 PM |
| If you cant help then dont reply. Thanks for getting my hopes up and then crushing them. jerk. |
|
|
| Report Abuse |
|