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)
COMMUNITY QUESTION
can any one tell me where im wrong?
3 answers
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")
2 comments
0
where
0
not only this you cant do : Color3.new("Back") but you can do BrickColor.new("Black").Color
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Your wrong with this question, figure out how to ask a good question
^
The reason you're getting downvoted is because you just posted code and are expecting us to help you answer a question you did not try to explain in the first place. Check out this help article, it will give you pointers on how to properly ask questions on this site; https://scriptinghelpers.org/help/how-post-good-questions-answers