|
| 03 Nov 2012 03:40 PM |
How do I make a GUI that will cover anyone's screen no matter how big or small their screen is?
-sips tea- |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 03 Nov 2012 03:41 PM |
| Make it size UDim2.new(1,0,1,0) |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2012 03:41 PM |
Nevermind, I figured it out.
-sips tea- |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
| |
|
|
| 03 Nov 2012 03:44 PM |
Thanks though MrChubbs.
-sips tea- |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2012 03:51 PM |
So what's wrong with this then?
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then local g = game.Players:GetPlayerFromCharacter(hit.Parent) local fadingGUI = Instance.new("ScreenGui",g.PlayerGui) local fg = Instance.new("TextLabel",ScreenGui) fg = UDim2.new(1,0,1,0) fg.BackgroundColor3 = Color3.new(1/255) end end)
"BackgroundColor3 cannot be assigned to"
?
-sips tea- |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2012 03:55 PM |
fg = UDim2.new(1, 0, 1, 0) should be fg.Size = UDim2.new(1, 0, 1, 0)
¬ scripting Tier-1, scripting helpers √ |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 03 Nov 2012 03:56 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then local g = game.Players:GetPlayerFromCharacter(hit.Parent) local fadingGUI = Instance.new("ScreenGui",g.PlayerGui) local fg = Instance.new("TextLabel",ScreenGui) fg.Size = UDim2.new(1,0,1,0) fg.BackgroundColor3 = Color3.new(1/255, 1/255, 1/255) -- Thus color 3. end end)
|
|
|
| Report Abuse |
|
|
| |
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 03 Nov 2012 03:58 PM |
| What is the error it gives? |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2012 03:59 PM |
No error.
I'll try a local script.
-sips tea- |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 03 Nov 2012 04:01 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then local g = game.Players:GetPlayerFromCharacter(hit.Parent) local fadingGUI = Instance.new("ScreenGui",g.PlayerGui) local fg = Instance.new("TextLabel", fadingGUI) -- There was an issue here. fg.Size = UDim2.new(1,0,1,0) fg.BackgroundColor3 = Color3.new(1/255, 1/255, 1/255) -- Thus color 3. end end)
|
|
|
| Report Abuse |
|
|
|
| 03 Nov 2012 04:02 PM |
How did I not see that
...
-sips tea- |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
| |
|
|
| 03 Nov 2012 04:02 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") then local g = game.Players:GetPlayerFromCharacter(hit.Parent) local GnomeGUI = Instance.new("ScreenGui",g.PlayerGui) local gnomeg = Instance.new("TextLabel", GnomeGUI) -- There was an issue here. gnomeg.Size = UDim2.new(1,0,1,0) gnomeg.BackgroundColor3 = Color3.new(1/255, 1/255, 1/255) -- Thus color 3. end end) fixed |
|
|
| Report Abuse |
|
|
| |
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 03 Nov 2012 04:05 PM |
| Thank you gnome for taking the script I corrected and adding your own name as the variables. |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2012 04:08 PM |
| Idiots like Harrison are annoying as crap. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Nov 2012 04:09 PM |
@Cease, I just improved the script by 20% |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 03 Nov 2012 05:08 PM |
| I use BrickColor.new("COLORNAME").Color instead of Color3, is that bad? |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2012 05:10 PM |
| No, Color3 is just a way for you to get a more precise color. |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2012 05:11 PM |
| nah, u use color3 for colors and custom ones that arent in brickcolr |
|
|
| Report Abuse |
|
|