Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-4

can any one tell me where im wrong?

Asked by
imedin 0
8 years ago
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)

0
Your wrong with this question, figure out how to ask a good question dragonkeeper467 453 — 8y
0
^ drew1017 330 — 8y
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 M39a9am3R 3210 — 8y

3 answers

Log in to vote
1
Answered by
drew1017 330 Moderation Voter
8 years ago

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

Ad
Log in to vote
0
Answered by
Terbik 5
8 years ago

Color3.new("whit")

0
where imedin 0 — 8y
0
not only this you cant do : Color3.new("Back") but you can do BrickColor.new("Black").Color XToonLinkX123 580 — 8y
Log in to vote
0
Answered by 8 years ago
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)

Answer this question