of     1   

LuaAtrocities
#176696721Thursday, October 22, 2015 7:40 PM GMT

local getTabFromAsync = function(async) local tab = {} for i = 1,math.huge do if not async[i] == nil then table.insert(tab,async[i]) else return tab end end return tab end local getNameAndMsg = function(txt) -- FORMAT = 'nameñmsg' local n local plr local msg for i = 1,txt:len() do if txt:sub(i,i) == 'ñ' then plr = txt:sub(1,i-1) msg = txt:sub(i+1) end end return {plr,msg} end local data = game:GetService('DataStoreService'):GetDataStore('emails') local usr = script.Parent.Parent.user.Value for i,v in pairs(getTabFromAsync(data:GetAsync(usr))) do -- It's saying Key is empty. local c = script.CloneMe:Clone() c.Text = getNameAndMsg(v)[1] c.Position = UDim2.new(0,0,0,(i-1)*24) c.Visible = true end
electricpretzel0
#176696832Thursday, October 22, 2015 7:43 PM GMT

We humans do read English too you know.
LuaAtrocities
#176696872Thursday, October 22, 2015 7:44 PM GMT

I should've added the note at the top, read the for loop comment?
warspyking
#176697153Thursday, October 22, 2015 7:50 PM GMT

Someone needs to learn tables...
electricpretzel0
#176697498Thursday, October 22, 2015 7:56 PM GMT

Made minor adjustments, I still need insight of what's going wrong without the rest of your project pieces. function getTabFromAsync(async) local tab = {} for i = 1,#async do if not async[i] == nil then table.insert(tab,async[i]) else return tab end end return tab end function getNameAndMsg(txt) -- FORMAT = 'nameñmsg' local n local plr local msg for i = 1,txt:len() do if txt:sub(i,i) == 'ñ' then plr = txt:sub(1,i-1) msg = txt:sub(i+1) end end return {plr,msg} end local data = game:GetService('DataStoreService'):GetDataStore('emails') local usr = script.Parent.Parent.user.Value for i,v in pairs(getTabFromAsync(data:GetAsync(usr))) do local c = script.CloneMe:Clone() c.Text = getNameAndMsg(v)[1] c.Position = UDim2.new(0,0,0,(i-1)*24) c.Visible = true end

    of     1