Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[Data Store or I think] how can i get this 'for' loop going?

miguild = GuildID[house2:GetAsync("Joined")]
house3 = house:GetOrderedDataStore("Members",miguild)
house4 = house:GetDataStore("Members",miguild)
script.Parent.GuildName.Text = miguild
			if  house3:GetSortedAsync(false, 50,1,10)  ~= nil then
				pages = house3:GetSortedAsync(false, 50,1,10) 
				data = pages:GetCurrentPage()
				print("datatroo")
					if data ~= nil then
						for k,v in pairs(data) do
							print("Printing Members")

If you need more Ill give u more, But I just cant get the second to last line to run I tried to add anything and reword everything but It still doesn't work, so as a last attempt I came to you guys.

output: datatroo

Update: From tests, it skips this for loop and continues to other things

2 comments

0

does house = game:DetService("DataStoreService")?

0

house = game:GetService("DataStoreService") house2 = house:GetDataStore(player.Name,"Players")

1 answer

OK So if you want to open

house:GetOrderedDataStore

then you also need to save with

house:GetOrderedDataStore

Note Both have "Ordered"

This discussion is preserved as it was. New answers, comments, and votes are closed.