Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

can any one tell me where im wrong?

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)

3 comments

0

Your wrong with this question, figure out how to ask a good question

0

^

0

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

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.