Hello! I was writing a metatable for my player saving system, but it keeps formatting my code weirdly.
Here’s my code:
local DSSManager = require(game.ServerScriptService.DataStoreManager)
local playerData = setmetatable({},
{
__index =
function(dataTable, player)
if player then
dataTable[player] = DSSManager.loadPlayerData(player)
return dataTable[player]
else
return nil
end
end
})
return playerData
If yes I’ll file a bug report, because this is really ugly.