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 Help

Previous Thread :: Next Thread 
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
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 is not online. 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
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
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 is not online. 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
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
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 is not online. dragon829
Joined: 12 Aug 2008
Total Posts: 741
01 Oct 2011 08:06 AM
what does it do?
Report Abuse
digpoe is not online. 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 is not online. 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
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
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
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
01 Oct 2011 08:32 AM
Anyway, it works. I fixed it.
Report Abuse
dragon829 is not online. dragon829
Joined: 12 Aug 2008
Total Posts: 741
01 Oct 2011 08:34 AM
YOU fixed it or HE fixed 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