I am making a textlable to red when a intvalue is less than 800
--values
local TextNum = script.Parent.NumBlocks
local Rating = script.Parent.Rating
local ValueBox = game.ReplicatedStorage:WaitForChild()
--If statement
if ValueBox < 800 then
Rating.BackgroundColor3 = Color3.fromRGB(177, 0, 0)
end
and you must know that the IntValue was created from serverscript service so I did instance.new("IntValue"). I have to use the same value so I did wait for child but it is not correct. How do I fix this? Thanks

2 comments
How would write it if I add the value inside the parenthesis it just turns red?
Thanks