please help every time it the value is nil
local ds=game:GetService("DataStoreService"):GetOrderedDataStore("tylergoatboylevzxel")
local noleaderboard={
}
local plrmon=game.ServerStorage:WaitForChild("PlayerMoney")
for i=1,10 do
local sam=script.level:Clone()
sam.Parent=script.Parent.SurfaceGui.players
sam.Name=i
sam.pos.Text="["..tostring(i).."]"
sam.LayoutOrder=i
if i>1 then
sam.Position=UDim2.new(0.05,0,0,55*(i-1))
end
script.Parent.SurfaceGui.players.CanvasSize=UDim2.new(0,0,0,55*i)
end
function updategui()
for q,e in pairs(plrmon:GetChildren())do
local data=e:WaitForChild("levl").Value
local plr=game.Players:FindFirstChild(e.Name)
if noleaderboard[plr.Name] then
else
ds:SetAsync(plr.UserId,data)
end
end
local pages=ds:GetSortedAsync(false,10)
local data=pages:GetCurrentPage()
for i,v in pairs(data)do
if tonumber(v.key)>= 1 then
local frame=script.Parent.SurfaceGui.players:FindFirstChild(tostring(i))
if frame then
frame.name.Text=game.Players:GetNameFromUserIdAsync(v.key)
if v.Value==nil then
print("nil")
end
frame.level.Text=v.Value --this value is always nil
end
end
end
end
while true do
updategui()
wait(10)
end

3 comments
what is "the value"
the value is 100
Please post a full error message, along with what you think is the problem and anything you've already tried. Nobody's going to sit here and look through your code line by line.