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

Previous Thread :: Next Thread 
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
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 is not online. 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
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
03 Nov 2012 03:41 PM
Nevermind, I figured it out.

-sips tea-
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
03 Nov 2012 03:41 PM
Make its*
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
03 Nov 2012 03:44 PM
Thanks though MrChubbs.

-sips tea-
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
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
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
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 is not online. 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
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
03 Nov 2012 03:57 PM
@Mr

Didn't work.

-sips tea-
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
03 Nov 2012 03:58 PM
What is the error it gives?
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
03 Nov 2012 03:59 PM
No error.

I'll try a local script.

-sips tea-
Report Abuse
MrChubbs is not online. 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
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
03 Nov 2012 04:02 PM
How did I not see that

...

-sips tea-
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
03 Nov 2012 04:02 PM
I missed it too.
Report Abuse
GnomeHarrison is not online. GnomeHarrison
Joined: 26 Oct 2012
Total Posts: 149
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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
03 Nov 2012 04:05 PM
Gn, -_-...
Report Abuse
MrChubbs is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
03 Nov 2012 04:08 PM
Idiots like Harrison are annoying as crap.
Report Abuse
GnomeHarrison is not online. GnomeHarrison
Joined: 26 Oct 2012
Total Posts: 149
03 Nov 2012 04:08 PM
You're very welcome
Report Abuse
GnomeHarrison is not online. GnomeHarrison
Joined: 26 Oct 2012
Total Posts: 149
03 Nov 2012 04:09 PM
@Cease,
I just improved the script by 20%
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
03 Nov 2012 05:06 PM
No, by 0%.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
03 Nov 2012 05:07 PM
i liek dat code beter
Report Abuse
Solotaire is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
03 Nov 2012 05:10 PM
No, Color3 is just a way for you to get a more precise color.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
03 Nov 2012 05:11 PM
nah, u use color3 for colors and custom ones that arent in brickcolr
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