hello i want the text on the textbutton to change color but it doesnt works script i use
1 | while true do |
2 | script.Parent.TextColor 3 = Color 3. new( 85 , 255 , 0 ) |
3 | end |
Color3.new takes values in the range from 0-1. What you want is to do Color3.fromRGB. Also, you don't need a while true do loop.
You can try this:
1 | script.Parent.TextColor 3 = Color 3. fromRGB( 85 , 255 , 0 ) |
This worked i tested it in studio myself
1 | while true do |
2 | script.Parent.TextColor 3 = Color 3. fromRGB( 85 , 255 , 0 ) |
3 | end |