generic image
Processing...
  • Games
  • Catalog
  • Develop
  • ROBUX
  • Search in People
  • 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
 

Button won't open

Previous Thread :: Next Thread 
deathavenger31 is online. deathavenger31
Joined: 11 Aug 2013
Total Posts: 428
15 Jul 2017 08:34 PM
Alright so FE is on this is in a local script inside of a ScreenGUI in the player. This is the code. BigB is a frame. LittleB is also a frame. ##### ## a button. I already know I can do an anonymous function but it looks cleaner for me this way. Can someone please help? when I click it does nothing. But in play mode while in studio it works fine. local Par = script.Parent local BigB = Par.BigBoard local LittleB = Par.LittleBoard local OpenB = Par.OpenButton function Initiate() if BigB.Visible == false then BigB.Visible = true OpenB.Text = "CLOSE" else OpenB.Text = "Leaderboard" BigB.Visible = false LittleB.Visible = false end end OpenB.MouseButton1Click:connect(Initiate) The Lua Red Belt.
Report Abuse
deathavenger31 is online. deathavenger31
Joined: 11 Aug 2013
Total Posts: 428
15 Jul 2017 08:34 PM
Wow
Sorry spaces didn't work


The Lua Red Belt.
Report Abuse
deathavenger31 is online. deathavenger31
Joined: 11 Aug 2013
Total Posts: 428
15 Jul 2017 08:36 PM
Alright so FE is on this is in a local script inside of a ScreenGUI in the player. This is the code. BigB is a frame. LittleB is also a frame. The last var is a button. I already know I can do an anonymous function but it looks cleaner for me this way. Can someone please help? when I click it does nothing. But in play mode while in studio it works fine.

local Par = script.Parent
local BigB = Par.BigBoard
local LittleB = Par.LittleBoard
local OpenB = Par.OpenButton

function Initiate()
if BigB.Visible == false then
BigB.Visible = true
OpenB.Text = "CLOSE"
else
OpenB.Text = "Leaderboard"
BigB.Visible = false LittleB.Visible = false
end
end

OpenB.MouseButton1Click:connect(Initiate)


The Lua Red Belt.
Report Abuse
deathavenger31 is online. deathavenger31
Joined: 11 Aug 2013
Total Posts: 428
15 Jul 2017 09:16 PM
B1


The Lua Red Belt.
Report Abuse
deathavenger31 is online. deathavenger31
Joined: 11 Aug 2013
Total Posts: 428
15 Jul 2017 09:40 PM
B2


The Lua Red Belt.
Report Abuse
scripterzack is online. scripterzack
Joined: 22 Jan 2011
Total Posts: 562
15 Jul 2017 09:46 PM
I'm confused, it works fine other than LittleBoard never turning visible again.
Report Abuse
deathavenger31 is online. deathavenger31
Joined: 11 Aug 2013
Total Posts: 428
15 Jul 2017 10:01 PM
No the BigBoard won't become visible.


The Lua Red Belt.
Report Abuse
scripterzack is online. scripterzack
Joined: 22 Jan 2011
Total Posts: 562
15 Jul 2017 10:26 PM
It's actually LittleBoard doesnt appear.

function Initiate()
if BigB.Visible == false then
BigB.Visible = true
LittleB.Visible = true --<---------------------Add this line
OpenB.Text = "CLOSE"
else
OpenB.Text = "Leaderboard"
BigB.Visible = false LittleB.Visible = false
end
end
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.

Thanks for playing ROBLOX

  • 1

    Click RobloxPlayer.exe to run the ROBLOX installer, which just downloaded via your web browser.

  • 2

    Click Run when prompted by your computer to begin the installation process.

  • 3

    Click Ok once you've successfully installed ROBLOX.

  • 4

    After installation, click Play below to join the action!

    Play
The ROBLOX installer should download shortly. If it doesn’t, start the download now.
generic image