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

Gui TextColor not changing?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago
x = script.Parent
z = script.Parent.TextColor3


while true do
x.z.new("White")
wait(.1)
x.z.new("Black")
wait(.1)
end

2 answers

Log in to vote
1
Answered by
Potlon 35
8 years ago

There is no use for z.

x = script.Parent

while true do
    x.TextColor3 = Color3.new(255 ,255 ,255) --White Color
wait(.1)
    x.TextColor3 = Color3.new(0 ,0 ,0) -- Black Color
wait(.1)
end

Or simply

while true do
    script.Parent.TextColor3 = Color3.new(255 ,255 ,255) --White Color
    wait(.1)
    script.Parent.TextColor3 = Color3.new(0 ,0 ,0) -- Black Color
    wait(.1)
end

Hope this helps and works

Ad
Log in to vote
1
Answered by 8 years ago
x.TextColor = BrickColor.new("White").Color

Answer this question