I am trying to make where you type a color value into a textbox, and make that text change a frame's color to your own choice. For example if i type in the text "255,255,255" it would make the frame white.
script.Parent.FocusLost:connect(function(enterPressed) if enterPressed then print 'you pressed enter!' local color = script.Parent.Parent.Parent.Parent.HomeScreenColor.Value color = script.Parent.Text end end)
The local color is a color3value. For some reason the only thing appearing in the output box is the your pressed enter!
Thanks!
local color = script.Parent.Parent.Parent.Parent.HomeScreenColor color.Value = Color3.new(script.Parent.Text)
First of all, a variable can't be edited unless you put a dot or brackets or something, otherwise it'll just change the variable's position, not edit it.
Second of all, you need to enter "Color3.new" to make the script recognize it's a color3 value.