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

How come the textbox turns white instead of blue?

Asked by 4 years ago
01local textBox = script.Parent
02 
03local secretWord = "Testing1"
04local colorWrong = Color3.new(1, 0, 0) -- red
05local colorCorrect = Color3.new(0, 1, 0) -- green
06local colorNormal = Color3.new(42, 84, 126) -- blueish
07 
08 
09textBox.ClearTextOnFocus = false
10textBox.Text = ""
11textBox.Font = Enum.Font.Code
12textBox.PlaceholderText = ""
13textBox.BackgroundColor3 = colorNormal
14 
15 
View all 43 lines...

How come the textbox turns white instead of blue?

1 answer

Log in to vote
0
Answered by
Memotag 226 Moderation Voter
4 years ago

Color3.new() is between 0 - 1

Consider using Color3.fromRGB() instead.

0
ty DevSeveral 19 — 4y
Ad

Answer this question