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: ScreenGui Easy Help

Previous Thread :: Next Thread 
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:37 PM
Could someone check if this is good ?

local SG = Instance.new("ScreenGui", StarterGui)
local TB = Instance.new("TextBox", StarterGui)

TB.BackgroundColor3 = Vector3.new(0, 0, 0)
TB.BackgroundTransparency = 0,5
TB.BorderColor3 = BordorColor3.new(0, 255, 255)
TB.BorderSizePixel = 3
TB.ClearTextOnFocus = true
TB.Position = Vector3.new{0, 150},{0, 200}
TB.Size = Vector3.new{0, 500},{0, 100}
TB.Font = "SourceSansBold"
TB.FontSize = "Size48"
TB.Text = "Welcome !"
TB.TextColor = Vector3.new(0, 255, 255)
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
26 Jul 2014 04:38 PM
You can't use Vector3 values on Guis, use UDim2 instead
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:39 PM
So just instead Vector3 UDim2? And no other diffrence's?
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
26 Jul 2014 04:40 PM
TB.BackgroundTransparency = 0,5

.5 instead of comma

also UDim2 takes 4 arguments so keep an eye out for that
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
26 Jul 2014 04:40 PM
UDim2.new(xs, xo, ys, yo)
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:41 PM
Then how about things like this;

TB.Size = UDim2.new{0, 500},{0, 100} ?
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
26 Jul 2014 04:41 PM
And Colors are Color3.new
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:41 PM
" UDim2.new(xs, xo, ys, yo) "

What is "xs , xo , ys , yo" ?
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
26 Jul 2014 04:42 PM
And the r g b values for Color3.new should be in the range 0 to 1
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
26 Jul 2014 04:42 PM
"What is "xs , xo , ys , yo" ?"

xsize, xoffset, ysize, yoffset
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
26 Jul 2014 04:43 PM
X Scale, X Offset, Y Scale, Y Offset.

IE: 0.5, 256, 0.25, -64
Report Abuse
ledger is not online. ledger
Joined: 01 Mar 2008
Total Posts: 1924
26 Jul 2014 04:43 PM
xs - x scale
xo - x offset
ys - y scale
yo - y offset

You will find the exact same thing in the "Properties" window.
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:43 PM
So it will be this;

local SG = Instance.new("ScreenGui", StarterGui)
local TB = Instance.new("TextBox", StarterGui)

TB.BackgroundColor3 = Color3.new(0, 0, 0)
TB.BackgroundTransparency = 0.5
TB.BorderColor3 = Color3.new(0, 255, 255)
TB.BorderSizePixel = 3
TB.ClearTextOnFocus = true
TB.Position = UDim2.new{0, 150},{0, 200}
TB.Size = UDim2.new{0, 500},{0, 100}
TB.Font = "SourceSansBold"
TB.FontSize = "Size48"
TB.Text = "Welcome !"
TB.TextColor = Color3.new(0, 255, 255)

Hm ?
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
26 Jul 2014 04:43 PM
wow im dumb
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:45 PM
I'm sorry I ask so much, I'm new to Gui.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
26 Jul 2014 04:45 PM
No, not {xs, so},{ys, yo}
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:46 PM
Could you make a fix ?
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
26 Jul 2014 04:47 PM
pretty sure its

UDim2.new(xs, xo, ys, yo)
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
26 Jul 2014 04:47 PM
Nope. You have to do that.
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
26 Jul 2014 04:48 PM
UDmi.new(x, x-offset, y, y-offset)
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:49 PM
Wowowow I don't get any if these thing. :/ I'm just a basic scripter + new to Gui.
Could someone like define it some more ?
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:55 PM
So it would be this;


local SG = Instance.new("ScreenGui", StarterGui)
local TB = Instance.new("TextBox", StarterGui)

TB.BackgroundColor3 = Color3.new(0, 0, 0)
TB.BackgroundTransparency = 0.5
TB.BorderColor3 = Color3.new(0, 255, 255)
TB.BorderSizePixel = 3
TB.ClearTextOnFocus = true
TB.Position = UDim2.new{0, 0.150},{0, 0.200}
TB.Size = UDim2.new{0, 0.500},{0, 0.100}
TB.Font = "SourceSansBold"
TB.FontSize = "Size48"
TB.Text = "Welcome !"
TB.TextColor = Color3.new(0, 255, 255)



Hm ?
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
26 Jul 2014 04:55 PM
no
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
26 Jul 2014 04:56 PM
No.

You do not use { and } in UDim2 values.
Report Abuse
Fatalizer is not online. Fatalizer
Joined: 28 Aug 2011
Total Posts: 1520
26 Jul 2014 04:57 PM
This;

local SG = Instance.new("ScreenGui", StarterGui)
local TB = Instance.new("TextBox", StarterGui)

TB.BackgroundColor3 = Color3.new(0, 0, 0)
TB.BackgroundTransparency = 0.5
TB.BorderColor3 = Color3.new(0, 255, 255)
TB.BorderSizePixel = 3
TB.ClearTextOnFocus = true
TB.Position = UDim2.new(0, 0.150 , 0, 0.200)
TB.Size = UDim2.new(0, 0.500 , 0, 0.100)
TB.Font = "SourceSansBold"
TB.FontSize = "Size48"
TB.Text = "Welcome !"
TB.TextColor = Color3.new(0, 255, 255)

Hm ?
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