Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by 10 years ago

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

Log in to vote
1
Answered by 10 years ago

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

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

0
Ahh. Thanks!! fahmisack123 385 — 10y
0
0/255,0/255,0/255 Would make it black right? So would 255/255,255/255,255/255 Make it white? fahmisack123 385 — 10y
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 Tempestatem 884 — 10y
Ad

Answer this question