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 » Scripters
Home Search
 

Re: Not working..

Previous Thread :: Next Thread 
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
04 Aug 2016 11:37 PM
local Box = script.Parent.Box
local Button = script.Parent.NewsButton
local Open = false


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


Report Abuse
Laedere is not online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
04 Aug 2016 11:38 PM
ugh my eyes hurt


Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
04 Aug 2016 11:42 PM
Why come here then?


Report Abuse
Laedere is not online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
04 Aug 2016 11:45 PM
SHUT UP!


Report Abuse
Eslerp is not online. Eslerp
Joined: 07 May 2016
Total Posts: 205
04 Aug 2016 11:48 PM
local Box = script.Parent.Box
local Button = script.Parent.NewsButton
local Open = false

Button.MouseButton1Down:connect(function()
if Open == false then
Open = true
Button.Text = "Close"
Box.Visible = true
else if Open == true then
Button.Text = "News"
Box.Visible = false
Open = false
end
end
end)
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
04 Aug 2016 11:50 PM
I think he meant being here was what hurt his eyes

local Box = script.Parent.Box
local Button = script.Parent.NewsButton
local open = false

Button.MouseButton1Down:connect(function()
open = not open
Button.Text = (open==true and "Close") or News"
Box.Visible = open
end)
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
04 Aug 2016 11:53 PM
Neither of those worked.

If you play this (optional)
https://www.roblox.com/games/181049510/Halloween-2015-Spooksville

It doesn't open the GUI button.


Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
04 Aug 2016 11:56 PM
Sorry I missed a quote

Button.MouseButton1Down:connect(function()
open = not open
Button.Text = (open==true and "Close") or "News"
Box.Visible = open
end)
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
04 Aug 2016 11:59 PM
For some odd reason, it's working on ROBLOX studio play mode but not in game play mode?


Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
05 Aug 2016 12:00 AM
It has to be a localscript if it's inside a gui.
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
05 Aug 2016 12:19 AM
It is a LocalScript in the GUI, from what I've heard, ROBLOX removed touching buttons to open something up?


Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
05 Aug 2016 12:22 AM
MouseButton1Down fires when the player clicks on the gui. Roblox certainly did not remove it.
Report Abuse
ExplodeLikeAVolcano is not online. ExplodeLikeAVolcano
Joined: 02 Nov 2013
Total Posts: 12146
13 Aug 2016 11:28 PM
Got it..


.
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.



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