Hello, My main issue is when Changing a ***Color3 ***Light with a Value, Which Does not change color & Continues to Go Pure (0,0,0)
Perhaps I may be Doing this wrong? Any Help would Be greatful for what I need to do to get it to work.
ServerSideScript
script.ColorEvent.OnServerEvent:Connect(function(player,ColorChoiceButtons,ButtonColorOfChoice)
local Light = workspace.Part.PointLight
Light.Color = Color3.new(ButtonColorOfChoice)
end)
Client Script GUI
local ColorChoiceButtons = ThemePage.Selection_Menu
local ColorEventRequire = LightLocal.ColorChanged_Event.ColorFunctionAsset.ColorEvent
local Buttons = ColorChoiceButtons
for i,v in pairs (Buttons:GetChildren()) do
if v:IsA("TextButton") or v:IsA("ImageButton") then
v.MouseButton1Click:Connect(function(player)
print('Color '..v.Name..' Was Selected!')
local ButtonColorOfChoice = v.ContainedColor.Value
ColorEventRequire:FireServer(player,ColorChoiceButtons,ButtonColorOfChoice)
end)
end
end

2 comments
are you sure
v.ContainedColor.Valueis a color value that ranges from0,0,0to1,1,1?v.ContainedColor Is a "ColorValue" that is inside the button That the Client Clicked, Then the script Gets the Value for the Serverscript, and Put its towards the Light Color.