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: Why wont this work?

Previous Thread :: Next Thread 
Danivagyok is not online. Danivagyok
Joined: 21 Mar 2010
Total Posts: 275
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
Danivagyok is not online. Danivagyok
Joined: 21 Mar 2010
Total Posts: 275
09 Sep 2013 02:24 PM
bump. Can someone please help me? It can't hurt to help, just a little?
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
09 Sep 2013 02:27 PM
sry its to long for me i am to lazy :D
Report Abuse
Danivagyok is not online. Danivagyok
Joined: 21 Mar 2010
Total Posts: 275
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
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