Color3 doesn't seem to be working

I know that the solution for my question is very simple but i just can’t find it.
So , i’m trying to make a script that changes TextButton’s BackgroundColor.
But when i test it , this script:

script.Parent.questframe.quest1.TextButton.BackgroundColor3 = Color3.new(255,151,90)

doesn’t change it to “255,151,90” , instead , it changes it to 65025, 38505, 22950 . I couldn’t find a solution for my problem. Everything i could find used the same method as me. Any help would be very appreciated!

7 Likes

Divide every value by 255 or use Color3.fromRGB(255,151,90) instead of Color3.new.

11 Likes

Color3.new is in the range of 0~1. Color3.fromRGB is a constructor which takes the rgb value range 0~255 and converts it to the Color3 value range / 255

Thank you so much!