|
| 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
|
  |
| 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 |
|
|
|
| 13 Oct 2013 04:29 AM |
| for me, free models is cheating...anyway, thanks for your help :D |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 14 Oct 2013 01:48 AM |
| Oh well^^ i'm french so i can't explain it correctly. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 847 |
|
| |
|
| |
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
| |
|
|
| 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
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
| |
|
| |
|
| |
|
|
| 24 Oct 2013 02:11 PM |
| Well, sorry. And so, it's a localscript i think, nope? I need textbutton? |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Oct 2013 02:24 PM |
l'anglais*
Sorry, my French is terrible. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 25 Oct 2013 04:25 AM |
| A TextButton and do you know the script to close it? |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2013 04:42 AM |
| Nope it's a text button ;) |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2013 04:43 AM |
| @dreas10dreas: yes, getkoed showed me it |
|
|
| Report Abuse |
|
|