Yes, I do have API access enabled.
local DSS = game:GetService("DataStoreService") local leveldatastore = DSS:GetDataStore("LevelNumber") game.Players.PlayerAdded:connect(function(player) local level = Instance.new("NumberValue",player) level.Name = "level" level.Value = leveldatastore:GetAsync(player.UserId) or 1 leveldatastore:SetAsync(player.UserId,level.Value) end)
local DSS = game:GetService("DataStoreService") local leveldatastore = DSS:GetDataStore("LevelNumber") game.Players.PlayerAdded:connect(function(player) local PlayerStats = leveldatastore:GetAsync(game.Players[player.Name].UserId) if not PlayerStats then PlayerStats = 1 leveldatastore:SetAsync(game.Players[player.Name].UserId, PlayerStats) end local level = Instance.new("IntValue") level.Name = "level" level.Value = PlayerStats level.Parent = game.Players[player.Name] end)