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: textcolor/randomize help!!

Previous Thread :: Next Thread 
GFXdylan is not online. 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 is not online. GFXdylan
Joined: 09 Feb 2013
Total Posts: 679
28 Mar 2014 09:58 AM
halp
Report Abuse
maxomega3 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
28 Mar 2014 10:09 AM
Interesting.
Trai mein
Report Abuse
GFXdylan is not online. 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 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
28 Mar 2014 10:11 AM
:c
owput?
Report Abuse
GFXdylan is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
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