Making a button change color as it is clicked, but not setting to correct color? [Answered]
Asked by
4 years ago Edited 4 years ago
I made this button to change color to look darker as you pressed it for just a feel and the color change doesnt work and I don't know what's going on, because its setting it to black
1 | MenuFrame = script.Parent.Parent |
3 | script.Parent.MouseButton 1 Down:Connect( function () |
5 | MenuFrame.Main.ImageColor 3 = Color 3. new( "221/255, 149/255, 6/255" ) |
7 | MenuFrame.buttonShadow.ImageColor 3 = Color 3. new( "172/255, 116/255, 4/255" ) |
and with line 5 and 7 I also removed /255 and it didnt work.
And I mean to do imagecolor because I used round images for gui