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 |
|
|
|
| 23 May 2015 10:30 AM |
| You could make color a table and choose values individually. |
|
|
| Report Abuse |
|
|
devMe
|
  |
| Joined: 28 Jun 2014 |
| Total Posts: 155 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 23 May 2015 10:46 AM |
RemoteEvent.OnServerEvent:connect(function(plr, color) print(color) end) |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 23 May 2015 10:47 AM |
| Oooohhhh, thank you so much guys! |
|
|
| Report Abuse |
|
|