Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

why is this not working?

local textcolor = script.Parent.TextColor3

while true do
	wait(1)
	textcolor = textcolor.new(0,0,255)
	wait(1)
	textcolor = textcolor.new(255,0,0)
end

I dont know how this isnt working this should be like the easiest script I can make. It keeps saying "new is not a valid member" Im like WTFFF

2 answers

✓ Accepted answer

Two things:

1) You forgot to add /255 after, which makes it a fraction out of something to find the color.

2) I don't recommend making TextColor3 apart of local textcolor because it messes up the way you fix the script. Instead of textcolor.new it should be Color3.new, which is why you were getting the error.

local textcolor = script.Parent

while true do
    wait(1)
    textcolor.TextColor3 = Color3.new(0/255,0/255,255/255)
    wait(1)
    textcolor.TextColor3 = Color3.new(255/255,0/255,0/255)
end

I hope this helped :)

This discussion is preserved as it was. New answers, comments, and votes are closed.