1 | function entered() |
2 | script.Parent.Parent.File.BackgroundColor 3 = Color 3. new( "Black" ) |
3 | end |
4 | function left() |
5 | script.Parent.Parent.File.BackgroundColor 3 = Color 3. new( "whit" ) |
6 | end |
7 | script.Parent.Parent.File.MouseEnter:connect(entered) |
8 | script.Parent.Parent.File.MouseLeave:connect(left) |
Color3 values dont use the names of colors, they use RGB values. In this case:
1 | function entered() |
2 | script.Parent.Parent.File.BackgroundColor 3 = Color 3. new( 0 , 0 , 0 ) |
3 | end |
4 | function left() |
5 | script.Parent.Parent.File.BackgroundColor 3 = Color 3. new( 1 , 1 , 1 ) |
6 | end |
7 | script.Parent.Parent.File.MouseEnter:connect(entered) |
8 | script.Parent.Parent.File.MouseLeave:connect(left) |
You can read up more on Color3's here: http://wiki.roblox.com/index.php?title=Color3
Color3.new("whit")
1 | function entered() |
2 | script.Parent.Parent.File.BackgroundColor 3 = Color 3. new( 0 , 0 , 0 ) |
3 | end |
4 | function left() |
5 | script.Parent.Parent.File.BackgroundColor 3 = Color 3. new( 1 , 1 , 1 ) |
6 | end |
7 | script.Parent.Parent.File.MouseEnter:connect(entered) |
8 | script.Parent.Parent.File.MouseLeave:connect(left) |