I'm testing stuff out with data stores, and when I tried this script it said GetAsnyc is not a valid member of data store. I did everything correctly what the wiki said to do.
Script:
local ds = game:GetService("DataStoreService"):GetDataStore("TestColor")
while true do
wait()
if ds:GetAsnyc("color") == 1 then
script.Parent.BrickColor = BrickColor.new("Bright blue")
elseif ds:GetAsnyc("color") == 2 then
script.Parent.BrickColor = BrickColor.new("Bright red")
else
script.Parent.BrickColor = BrickColor.new("Institutional white")
end
end

1 comment
Thx! Typos xD