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: Lua To Gui

Previous Thread :: Next Thread 
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
26 Jul 2013 08:09 PM
Is it possible?
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
26 Jul 2013 08:09 PM
Elaborate more, I don't understand. Do you want to script a Gui?
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
26 Jul 2013 08:10 PM
Yes, Transfer a script into a gui.
    
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
26 Jul 2013 08:11 PM
The script creates a GUI Into the PlayerGUI. I want to make it without a script having to insert the GUI Into the PlayerGUI.
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
26 Jul 2013 08:13 PM
Bump :/
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
26 Jul 2013 08:13 PM
Oh...
Just do something like this:
a = Instance.new("ScreenGui",plygui)
b = Instance.new("TextBox",a)
b.AbsoluteSize = UDim2.new(0,0,0,0)
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
26 Jul 2013 08:15 PM
Well, Nvm. I was trying to add a hide/close button to my GUI, But I have no idea how.
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
26 Jul 2013 08:17 PM
script.Parent.MouseButton1Down:connect(function()
GUIGOESHERE.Visible = not GUIGOESHERE.Visible
end)
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
26 Jul 2013 08:17 PM
So how can I edit the script and tell it to make a button that is the size (0,14), (0,14) and it open/closes the whole gui?
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
26 Jul 2013 08:18 PM
Like this?:

b = Instance.new("TextButton",screengui)
b.MouseButton1Click:connect(function()
if screengui.Visible == true then
screengui.Visible = false
else
screengui.Visible = true
end)
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
26 Jul 2013 08:19 PM
@WishNite
>GUIGOESHERE.Visible = not GUIGOESHERE.Visible

Omg. I have never thought of setting a bool value that way.
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
26 Jul 2013 08:19 PM
Yes. But how do you change the size and position?
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
26 Jul 2013 08:25 PM
local x = Instance.new("TextButton", f)
x.BackgroundTransparency = 1
x.Text = "Close"
x.FontSize = "Size10"
x.TextColor3 = fontcolor
x.Size = UDim2.new(1,0,.15,0) <<<<<<<<<<<<<<<<<<<<<<<<<<<<< Size...
x.Position = UDim2.new(0,0,.45,0) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Position...
x.MouseButton1Click:connect(function()
f:Destroy()
end)

Something like that...

I wanna position a button, can I just add those lines?
Report Abuse
Vector2D is not online. Vector2D
Joined: 11 May 2013
Total Posts: 195
26 Jul 2013 08:30 PM
I would suggest Tweening, and give an example, but I don't remember it all too well.
Nonetheless, tween away.
Report Abuse
TehGabeNewell is not online. TehGabeNewell
Joined: 07 Feb 2013
Total Posts: 3165
26 Jul 2013 08:39 PM
Tween?
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
26 Jul 2013 08:45 PM
http://wiki.roblox.com/index.php/TweenPosition_(Method)
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