✓ Accepted answer
GUIs use BackgroundColor3 as the background color. It's a Color3 rather than a BrickColor:
script.Parent.BackgroundColor3 = BrickColor.new("Dark stone grey").Color
script.Parent.BackgroundColor3 = Color3.new(.4,.4,.4)
I originally assumed you already had the work in to do this check properly, however, I just realized you probably don't.
The code you have almost would work, but it has to be checked frequently (as you have it written, it will only check once -- when the player spawns).
We should also check that they have at least (>= larger than or equal to) 50, rather than (==) exactly 50.
while wait() do
if game.Players.LocalPlayer.leaderstats.Money.Value >= 50 then
script.Parent.BackgroundColor3 = Color3.new(.4,.4,.4)
end
end
3 comments
Blue nooo you beat me by one minute D: gg
It's not working still?
I expanded upon my answer