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