function entered() script.Parent.Parent.File.BackgroundColor3 = Color3.new("Black") end function left() script.Parent.Parent.File.BackgroundColor3 = Color3.new("whit") end script.Parent.Parent.File.MouseEnter:connect(entered) script.Parent.Parent.File.MouseLeave:connect(left)
Color3 values dont use the names of colors, they use RGB values. In this case:
function entered() script.Parent.Parent.File.BackgroundColor3 = Color3.new(0, 0, 0) end function left() script.Parent.Parent.File.BackgroundColor3 = Color3.new(1, 1, 1) end script.Parent.Parent.File.MouseEnter:connect(entered) 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")
function entered() script.Parent.Parent.File.BackgroundColor3 = Color3.new(0, 0, 0) end function left() script.Parent.Parent.File.BackgroundColor3 = Color3.new(1, 1, 1) end script.Parent.Parent.File.MouseEnter:connect(entered) script.Parent.Parent.File.MouseLeave:connect(left)