In my game, I have a TextBox where you can enter an RGB value, and then send it to the server where it'll use it to change a value. However, the server keeps outputting the error, "Expected Color3, got string".
On the client side:
script.Parent.MouseButton1Click:Connect(function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SubmitTeamChanges = ReplicatedStorage:WaitForChild("SubmitTeamChanges")
Team1PrimaryColor = script.Parent.Parent.Team1PrimaryColor.Text
SubmitTeamChanges:FireServer(Team1PrimaryColor)
end)
On the server side:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SubmitTeamChangesEvent = Instance.new("RemoteEvent", ReplicatedStorage)
SubmitTeamChangesEvent.Name = "SubmitTeamChanges"
local function onSubmitTeamChanges(player, Team1PrimaryColor)
workspace.Teams.Team1.PrimaryColor.Value = Color3.fromRGB(Team1PrimaryColor)
end
SubmitTeamChangesEvent.OnServerEvent:Connect(onSubmitTeamChanges)
The "PrimaryColor" Instance in the workspace is a Color3Value
Any solutions? I can't figure out how to send Color3Values from the client.

1 comment
well, you could have text boxes each suppose to take a diffrent value; for ex: text box 1 takes the value for red, text box 2 takes the value for green, and etc, then use them as arguments to color3.new()