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

Err, Why is this wrong??? [SOLVED]

I wanted to change the color of the text... But it gave am error... I know it's a faulty script error by me. Can someone please fix this for me?

btw, I already defined closebutton, it's a TextButton

closebutton.TextColor3 = TextColor3.new(0/255,0/255,0/255)

OUTPUT

attempt to index global 'TextColor3' (a nil value)

1 answer

✓ Accepted answer

Because you used TextColor3 when changing the color, simply do Color3.new

closebutton.TextColor3 = Color3.new(0/255,0/255,0/255)

3 comments

0

Ahh. Thanks!!

0

0/255,0/255,0/255 Would make it black right? So would 255/255,255/255,255/255 Make it white?

0

Put just a textlabel or something into something, find the color you want, then copy/paste what it says, then divide all by 255

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