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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|
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 |
|
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 26 Jul 2014 04:43 PM |
X Scale, X Offset, Y Scale, Y Offset.
IE: 0.5, 256, 0.25, -64 |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
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 |
|
|
| |
|
Fatalizer
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 1520 |
|
| |
|
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 |
|
|
|
| 26 Jul 2014 04:47 PM |
| Nope. You have to do that. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
|
| 26 Jul 2014 04:56 PM |
No.
You do not use { and } in UDim2 values. |
|
|
| Report Abuse |
|
|
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 |
|
|