Script is located in ServerScriptStorage
local ods = game:GetService("DataStoreService"):GetOrderedDataStore("Scores") function updateBoard(board, data) for k,v in pairs(data) do local pos = k local name = v.key local score = v.value local dispname = board:findFirstChild("Name"..pos) local dispval = board:findFirstChild("Score"..pos) dispname.Text = tostring(name) dispval.Text = tostring(score) end end while true do wait(10) local pages = ods:GetSortedAsync(false, 10) local data = pages:GetCurrentPage() updateBoard(game.Workspace.HighScore.TopBlock.SurfaceGui, data) -- change 'game.Workspace.HighScore.TopBlock.SurfaceGui' to where it will be end
Error in Output
ServerScriptService.Script:16: attempt to index local 'ods' (a nil value)
I don't know why this dosent work? It is froms Dummiez Leaderboard, and I placed all the scripts in the right spots, but this has an error. Please help