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: What's wrong with this?

Previous Thread :: Next Thread 
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
20 Jan 2013 03:40 PM
ScreenGui> Frame>Random stuff that isn't important in the script
Frame2>Doors>Script

Script:


script.Parent.MouseButton1Down:connect(function()
if script.Parent.Parent.Parent.Frame.Visible == false then
script.Parent.Parent.Parent.Frame.Visible = true
script.Parent.Text = "Close"
script.Parent.BackgroundColor3 = Color3.new(255; 0; 0)
elseif script.Parent.Parent.Parent.Frame.Visible == true then
script.Parent.Parent.Parent.Frame.Visible = false
script.Parent.Text = "Open"
script.Parent.BackgroundColor3 = Color3.new(0; 255; 0)
end
end)
Report Abuse
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
20 Jan 2013 03:45 PM
Okay, I got it to work by switching the semicolons with commas. But now when I press the open/close button, it turns black until I mouseover it. Is that just a glitch with GUIs?
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