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 » Game Design
Home Search
 

I need help with Opening/Closing Gui

Previous Thread :: Next Thread 
cutechad is not online. cutechad
Joined: 12 Jan 2011
Total Posts: 96
29 Sep 2015 07:57 PM
Hello I am currently making a mmorpg type game and I need to make a Inv Gui so I had to start with actually making it open so I made the script but its not working, could someone help me out with my problem?VVV5
Box = script.Parent.Box
Button = script.Parent.Button
Open = false

Button.MouseButton1Down:connect(function(open)
if Open == False then
Button.Text = "Close"
Box.Visible = true
Open = true
elseif Open == true then
Button.Text = "Open"
Box.Visible = false
Open = false
end
end)
Report Abuse
TheComputerist is not online. TheComputerist
Joined: 28 Oct 2011
Total Posts: 695
29 Sep 2015 08:09 PM
Please, go to the Scripters forum. You'll get better luck there.
Report Abuse
WaffleBill is not online. WaffleBill
Joined: 27 Mar 2014
Total Posts: 579
29 Sep 2015 08:13 PM
The scripting forum isn't for help requests, so he came to the wright place, only problem is I'm not the right guy.
Report Abuse
Faisal1207 is not online. Faisal1207
Joined: 27 Dec 2013
Total Posts: 499
01 Oct 2015 06:04 AM
Output?
Report Abuse
galio13 is not online. galio13
Joined: 20 Jul 2011
Total Posts: 842
01 Oct 2015 08:18 AM
Box = script.Parent.Box
Button = script.Parent.Button
Open = false

Button.MouseButton1Down:connect(function(open)
if Open == false then -- you had a big "f" in false
Button.Text = "Close"
Box.Visible = true
Open = true
elseif Open == true then
Button.Text = "Open"
Box.Visible = false
Open = false
end
end)
Report Abuse
Fariz97 is not online. Fariz97
Joined: 15 Sep 2010
Total Posts: 214
01 Oct 2015 02:28 PM
[Reason]
for bools, true and false, the first letter has to be a lowercase letter.
[Solution]
Box = script.Parent.Box
Button = script.Parent.Button
Open = false

Button.MouseButton1Down:connect(function(open)
if Open == false then
Button.Text = "Close"
Box.Visible = true
Open = true
elseif Open == true then
Button.Text = "Open"
Box.Visible = false
Open = false
end
end)

[Transition Fade in or out *Im Assuming BOX has no child*
Button.MouseButton1Down:connect(function(open)
if Open == false then
Button.Text = "Close"
for i = 1,10 do
Box.BackgroundTransparency = Box.BackgroundTransparency +.1
wait(.1)
end
Open = true
elseif Open == true then
Button.Text = "Open"
for i = 1,10 do
Box.BackgroundTransparency = Box.BackgroundTransparency -.1
wait(.1)
Open = false
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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