when i run the game i do not receive the IntValue aka TilesColored and leaderstats do not show up I am very confused about why its not making the IntValue
local DataStore = game:GetService("DataStoreService")
local ds = DataStore:GetDataStore("Tiles")
game.Players.PlayerAdded:Connect(function(player)
local leader = Instance.new("Folder",player)
leader.Name = "leaderstats"
local tiles = Instance.new("IntValue",leader)
tiles.Name = "TilesColored"
tiles.Value = ds:GetAsync(player.UserId) or 0
ds:SetAsync(player.UserId, tiles.Value)
local ye = Instance.new("BrickColorValue",player)
ye.Name = "colorval"
ye.Value = BrickColor.Random()

3 comments
yep thats a pretty big promlem
still did not fix?
check that there arw no other script causeing this one not to work. This code shoukd work in a blank project.