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: GUI script help

Previous Thread :: Next Thread 
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
13 Oct 2013 04:16 AM
Hi, i made a GUI, and i put a "X" (hiding button) in the frames. But here's the problem: i just know the beginning of the script to hide the frame... function onClick(mouse) D: i would get help for that, please :3
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
13 Oct 2013 04:25 AM
local frame = script.Parent.Parent.Frame -- might have to change that

script.Parent.MouseButton1Down:connect(function()
frame.Visible = false
end)

That's just very basic without any fancy animations etc., it simply makes the frame invisible.

If you don't know how to script something, I suggest looking for that model in Free Models and try to understand the script. Then remove that model and try to make it yourself. I think this is the best way to learn how to use Rbx.Lua.
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
13 Oct 2013 04:29 AM
for me, free models is cheating...anyway, thanks for your help :D
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
13 Oct 2013 04:30 AM
But yes, i do that sometimes, when it's hard (and too, i'm doing the copycat x) )
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
13 Oct 2013 05:26 AM
You should not copy the models, you should understand their scripts and then try to make them yourself.

Note: never learn scripts, but understand them.
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
13 Oct 2013 10:09 AM
I'm trying to understand them. the function is what the computer should do....eeeerrrr...._. Uuuummmm...
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
13 Oct 2013 04:05 PM
The function is basically what the computer should do if you press the button (which is making the frame (in)visible).
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
14 Oct 2013 01:48 AM
Oh well^^ i'm french so i can't explain it correctly.
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
14 Oct 2013 05:36 PM
Just say it in French then, I'll try to make something out of it :d
Report Abuse
08C is not online. 08C
Joined: 26 Jan 2013
Total Posts: 847
14 Oct 2013 05:53 PM
[ Content Deleted ]
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
16 Oct 2013 06:00 AM
I can speak english, see.
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
16 Oct 2013 06:34 AM
Mais enfin!
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
18 Oct 2013 06:50 AM
Quoi ? xD oh ouais un français sur ce forum !!! :D ou peut-être pas...you speak french or you are french?
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
18 Oct 2013 09:28 AM
Un petit peut.
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
20 Oct 2013 03:19 AM
Ok d'accord :p
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
20 Oct 2013 03:21 AM
english dude.

english
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
24 Oct 2013 02:11 PM
Well, sorry. And so, it's a localscript i think, nope? I need textbutton?
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
24 Oct 2013 02:23 PM
Pourqoi d'anglais?
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
24 Oct 2013 02:24 PM
l'anglais*

Sorry, my French is terrible.
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
25 Oct 2013 02:35 AM
Oh doesn't matter ^^ anyway, i would get help please, it's not a french lesson here :)
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
25 Oct 2013 02:38 AM
Is the 'X' a TextLabel? It should be a TextButton.
Report Abuse
dreas10dreas is not online. dreas10dreas
Joined: 19 Jan 2013
Total Posts: 9
25 Oct 2013 04:25 AM
A TextButton and do you know the script to close it?
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
27 Oct 2013 04:42 AM
Nope it's a text button ;)
Report Abuse
Beybladegoshoot is not online. Beybladegoshoot
Joined: 26 Oct 2011
Total Posts: 2878
27 Oct 2013 04:43 AM
@dreas10dreas: yes, getkoed showed me it
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