Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Multiple values problem...?

Asked by 10 years ago

Can someone help me with my for loop, I'm trying to use multiple values and I keep reading wiki cant get enough someone please help:

while true do wait(10)
Data1 = Game:GetService("DataStoreService"):GetOrderedDataStore("KOS"):GetSortedAsync(false, 10):GetCurrentPage()
Data2 = Game:GetService("DataStoreService"):GetOrderedDataStore("Rank"):GetSortedAsync(false, 10):GetCurrentPage()
for a,b,v in ipairs(Data1, Data2) do
TextLabel1 = Game.Workspace.Global.Board.SurfaceGui:FindFirstChild("Name"..a)
TextLabel1.Text = b.key
TextLabel2 = Game.Workspace.Global.Board.SurfaceGui:FindFirstChild("Score"..a)
TextLabel2.Text = b.value
TextLabel3 = Game.Workspace.Global.Board.SurfaceGui:FindFirstChild("Rank"..a)
TextLabel3.Text = v.value
end
end

Answer this question