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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

How can I make a script that...

Previous Thread :: Next Thread 
TheHonestOwl is not online. TheHonestOwl
Joined: 05 Mar 2011
Total Posts: 852
15 Dec 2013 05:05 PM
How can I make a script that sets a frames visible to false when the player clicks on a text button?
Report Abuse
TheHonestOwl is not online. TheHonestOwl
Joined: 05 Mar 2011
Total Posts: 852
15 Dec 2013 05:07 PM
bump?
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
15 Dec 2013 05:10 PM
textButton.MouseButton1Click:connect(function()
frame.Visible = false
end)

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
TheHonestOwl is not online. TheHonestOwl
Joined: 05 Mar 2011
Total Posts: 852
15 Dec 2013 05:17 PM
Doesn't work
D:
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
15 Dec 2013 05:19 PM
It should. Show me how you changed it.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
mer5000 is not online. mer5000
Joined: 13 Aug 2012
Total Posts: 2094
15 Dec 2013 05:19 PM
you mean
script.Parent.Frame.Transparency=1
end
Report Abuse
Grove537 is not online. Grove537
Joined: 05 Feb 2010
Total Posts: 3478
15 Dec 2013 05:20 PM
you need to set frame as a variable to your Frame and textButton as a variable to your Text Button
Report Abuse
BloxDaily is not online. BloxDaily
Joined: 08 Feb 2013
Total Posts: 5319
15 Dec 2013 05:22 PM
local Frame = script.Parent.Parent -- make this to were your frame is

function click()
Frame.Visible = false
end

script.Parent.MouseButton1Down:connect(click)
Report Abuse
DaMrNelson is not online. DaMrNelson
Joined: 27 Jul 2009
Total Posts: 4405
15 Dec 2013 05:23 PM
Is it in a LocalScript (which shouldn't matter, but you never know...) or is the script Disabled?

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
BloxDaily is not online. BloxDaily
Joined: 08 Feb 2013
Total Posts: 5319
15 Dec 2013 05:26 PM
use mine only if the button is in the frame.

but if it is not do something like

local Frame = script.Parent.Parent.Frame -- Parent #1: button Parent #2: screengui
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