So. I'm trying to get the TextColor of text to change depending on a Color3Value.
script.Parent.Parent.Current.TextColor3 = script.Parent.Parent.Current.TextColor3.new(col)
The problem is, it's says new is not a valid member...
00:42:47.516 - new is not a valid member
00:42:47.517 - Script 'Players.Player.PlayerGui.ScreenGui.Frame.Options.SERVER.Script', Line 6
00:42:47.518 - Stack End
My code:
local col = script.Parent.Parent.Parent.OptColor.Value
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Parent.Opt.Value = ("["..script.Parent.Name.."]")
script.Parent.Parent.Parent.OptColor.Value = script.Parent.Value.Value
script.Parent.Parent.Current.Text = script.Parent.Name
script.Parent.Parent.Current.TextColor3 = script.Parent.Parent.Current.TextColor3.new(col)
end)
How do I fix this?
