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 » Scripters
Home Search
 

Re: GUI problem.

Previous Thread :: Next Thread 
Inigo18 is not online. Inigo18
Joined: 02 Feb 2014
Total Posts: 1041
19 Apr 2016 01:00 AM
Hey! I was thinking, how would you change a TextLabel's colour once in game? I tried accessing it with a for loop on all players' GUI, but to no avail. I'd be very appreciative if you could help me!

-Inigo18
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
19 Apr 2016 01:31 AM
Many ways to go about doing that.

1. Just made a color value and have the gui change to that color when it's updated or when the player spawns.

2. Using pairs will also work by getting all players but it won't work that well because if someone resets it won't show the updated info from it.

Also many other ways to go about doing this but i'd go with the first one.
Report Abuse
Inigo18 is not online. Inigo18
Joined: 02 Feb 2014
Total Posts: 1041
19 Apr 2016 12:41 PM
I see, but my problem would be how to access the GUI, the TextLabel woth the Color3 value. For example, I don't know if I have to do
local p = game.Players:GetChildren()
for i = 1,#p do
p[i].PlayerGui.ScreenGui.TextLabel.Color3 = Color3.new(255/255,0/255,0/255)
that didnt work in-game, do you know what I did wrong? :/ btw, thank you for the previous help!
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
19 Apr 2016 01:02 PM
are you sure you can't just

game.Players.LocalPlayer.ScreenGui.TextLabel.Color3 = Color3.new(255/255,0/255,0/255)


#Code print("Narwhals are our future")
Report Abuse
Inigo18 is not online. Inigo18
Joined: 02 Feb 2014
Total Posts: 1041
19 Apr 2016 01:21 PM
Welp. Shame on me, I probably made an error when trying it out earlier. Sorry about that, but thank you guys a lot for your help!!
Report Abuse
1daev3 is not online. 1daev3
Joined: 20 Dec 2015
Total Posts: 570
19 Apr 2016 04:12 PM
Well if you already made a gui for your game you need to open up explorer than move the GUI to starter GUI and it'll start working
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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