I have tried multiple different approaches and never have figured out why this is happening or what is wrong. it never says anything in the output either.
Script:
function color(player)
local Color = player.DataFolder.GravelColor.Value
if Color == 1 then
script.Parent.BrickColor = BrickColor.new("Really red")
elseif Color == 2 then
script.Parent.BrickColor = BrickColor.new("Buttermilk")
elseif Color == 3 then
script.Parent.BrickColor = BrickColor.new("Cyan")
end
end
while true do
color()
wait(.2)
end

2 comments
just add a game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Wait() while true do color(player) wait(.2) end end) or something
thanks it worked now