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: Convert string to Color3

Previous Thread :: Next Thread 
devMe is not online. devMe
Joined: 28 Jun 2014
Total Posts: 155
23 May 2015 10:30 AM
Is this possible?

local color = 0,0,0

local color3 = Color3.new(color)
Report Abuse
bluefrog53 is not online. bluefrog53
Joined: 05 Feb 2012
Total Posts: 766
23 May 2015 10:30 AM
You could make color a table and choose values individually.
Report Abuse
devMe is not online. devMe
Joined: 28 Jun 2014
Total Posts: 155
23 May 2015 10:32 AM
Any other way?
Report Abuse
devMe is not online. devMe
Joined: 28 Jun 2014
Total Posts: 155
23 May 2015 10:33 AM
I need to pass a Color3 value through a RemoteEvent
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
23 May 2015 10:33 AM
string patterns
im not good with string patterns but i'll try
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
23 May 2015 10:37 AM
function color(x,y,z)
return Color3.new(x,y,z)
end


game.Lighting.FogColor = color(50/255,200/255,0/255)
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
23 May 2015 10:40 AM
@time not the question nor is that efficient

color = Color3.new()

frame.BackgroundColor3 = color(1,1,1)
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
23 May 2015 10:40 AM
It has to be from a pre-defined color (backgroundcolor3)

(I was on my alt)
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
23 May 2015 10:43 AM
color = Color3.new(255/255,50/255,0/255)

game.Lighting.FogColor = color
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
23 May 2015 10:44 AM
local color = script.Parent.BackgroundColor3

RemoteEvent:FireServer(script.Parent.BackgroundColor3)

RemoteEvent:OnServerEvent:connect(function(color)
print(color) -> Prints player?
end)
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
23 May 2015 10:45 AM
because playerdata is always first in remote events, then the color data.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
23 May 2015 10:46 AM
RemoteEvent.OnServerEvent:connect(function(plr, color)
print(color)
end)
Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
23 May 2015 10:47 AM
Oooohhhh, thank you so much guys!
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