GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 28 Mar 2014 09:53 AM |
sdtxt = game.Workspace.songdisplayer.info.SurfaceGui.song.Text while true do local color = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255) sdtext.TextColor3 = color sdtext.TextStrokeColor3 = color end
why doenst this work if your in game |
|
|
| Report Abuse |
|
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 28 Mar 2014 09:59 AM |
What about:
color = BrickColor.Random ()
TextColor3 = color.Color |
|
|
| Report Abuse |
|
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 28 Mar 2014 10:00 AM |
| thanks.. but how to put it in loop so it keeps randomizing, so it keeps going other colours.. |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 28 Mar 2014 10:02 AM |
| Since it's part of the while loop, it should randomize every time. |
|
|
| Report Abuse |
|
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 28 Mar 2014 10:05 AM |
sdtxt = game.Workspace.songdisplayer.info.SurfaceGui.song.Text color = BrickColor.Random() while true do sdtxt.TextColor3 = color.Color end |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 28 Mar 2014 10:07 AM |
no no no sir. Wai'd u muv eet.
sdtxt = game.Workspace.songdisplayer.info.SurfaceGui.song.Text while wait (.1) do -- fixed this. Otherwise would crash. color = BrickColor.Random() sdtxt.TextColor3 = color.Color end |
|
|
| Report Abuse |
|
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 28 Mar 2014 10:09 AM |
| this is in a script in the surfacegui button c; |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
| |
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 28 Mar 2014 10:11 AM |
sdtxt = game.Workspace.songdisplayer.info.SurfaceGui.song.Text while wait (.1) do -- fixed this. Otherwise would crash. color = BrickColor.Random() sdtxt.TextColor3 = color.Color end
still no works in dat script |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
| |
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 28 Mar 2014 10:14 AM |
| sdtxt = game.Workspace.songdisplayer.info.SurfaceGui.song.T:4: attempt to index global 'sdtxt' (a string value) |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 28 Mar 2014 10:16 AM |
Well shiz. You can't change the color of text like that!
Dude, you know how when you have a TextLabel, and it's got that box where you put in the text?
Well, you're trying to change the color of that, lol.
|
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 28 Mar 2014 10:16 AM |
| Just get rid of .Text in the variable, and it should work fine. |
|
|
| Report Abuse |
|
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 28 Mar 2014 10:20 AM |
how you mean
so like this;
sdtxt = game.Workspace.songdisplayer.info.SurfaceGui.song -- removed .Text here while true do local color = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255) sdtext.TextColor3 = color sdtext.TextStrokeColor3 = color end |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 28 Mar 2014 10:23 AM |
| Yup. Go ahead and test it pls! :D |
|
|
| Report Abuse |
|
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 28 Mar 2014 10:25 AM |
sdtxt = game.Workspace.songdisplayer.info.SurfaceGui.song while wait (.1) do -- fixed this. Otherwise would crash. color = BrickColor.Random() sdtxt.TextColor3 = color.Color sdtxt.TextStrokeColor3 = color.Color end
thanks!!!!! anyways, do you have skype, i wanna ask you something |
|
|
| Report Abuse |
|
|