|
| 01 Oct 2011 07:41 AM |
SCRIPT:
menugui = script.Parent window = menugui.Window menubutton = menugui.MenuButton menu = window.Menu close = menugui.Menu.Close
menubutton.MouseButton1Down:connect(function() menu:TweenPosition(UDim2.new(-0.5,0,-0.5,0), Out, "Back", 1, false) for i = 1,0.3,-.1 do window.BackgroundTransparency = i wait() end menubutton:TweenPosition(UDim2.new(-0.5,-250,-0.5,-250), Out, "Back", 1, false) end)
EXPLORER: >StarterGui >>Menu_Gui >>>Program <--SCRIPT >>>Window >>>>Menu >>>>>Close >>>Menu_Button
NOTE: Please do NOT change the names. Keep them the same. Also, NO output.
I don't know what's wrong with this script. |
|
|
| Report Abuse |
|
|
Flurite
|
  |
| Joined: 03 Apr 2011 |
| Total Posts: 5386 |
|
|
| 01 Oct 2011 07:45 AM |
In the script, you had it as "MenuButton", in the Explorer menu, you have it as "Menu_Button"
~Flurite, ROBLOX Wiki Writer |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2011 07:54 AM |
Still doesn't work if I change the name.
menugui = script.Parent window = menugui.Window menubutton = menugui.Menu_Button menu = window.Menu close = menugui.Menu.Close
menubutton.MouseButton1Down:connect(function() menu:TweenPosition(UDim2.new(-0.5,0,-0.5,0), Out, "Back", 1, false) for i = 1,0.3,-.1 do window.BackgroundTransparency = i wait() end menubutton:TweenPosition(UDim2.new(-0.5,-250,-0.5,-250), Out, "Back", 1, false) end) |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 01 Oct 2011 08:01 AM |
easy: menugui = script.Parent window = menugui.Window menubutton = menugui.Menu_Button menu = window.Menu close = menugui.Menu.Close
menubutton.MouseButton1Down:connect(function() menu:TweenPosition(UDim2.new(-0.5,0,-0.5,0) for i = 1,0.3,-.1 do window.BackgroundTransparency = i wait() end menubutton:TweenPosition(UDim2.new(-0.5,-250,-0.5,-250)) end)
Done :D |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2011 08:05 AM |
| You DO NOT TAKE OUT THAT PART OF TWEENPOSITION! It's VERY important in tweenspoition. You no take dat part outta the lines. |
|
|
| Report Abuse |
|
|
dragon829
|
  |
| Joined: 12 Aug 2008 |
| Total Posts: 741 |
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 01 Oct 2011 08:06 AM |
| You can... I've done it before..... if the timing for TweenPosition is 1 then you can leave it out because ROBLOX Lua puts a default of 1 if you don't. It'll work.. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 01 Oct 2011 08:07 AM |
| and anyway, it wouldn't work because out wasn't like "Out"... |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2011 08:29 AM |
| No, you don't need Out like "Out". I'm pretty sure you don't need the quotes, I've been using :TweenPosition and :TweenSize: for a while and works every time. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2011 08:32 AM |
| Anyway, it works. I fixed it. |
|
|
| Report Abuse |
|
|
dragon829
|
  |
| Joined: 12 Aug 2008 |
| Total Posts: 741 |
|
|
| 01 Oct 2011 08:34 AM |
| YOU fixed it or HE fixed it |
|
|
| Report Abuse |
|
|