game.Players.PlayerAdded:Connect(function(plr)
for i in pairs(data.sheets[1].data[1].rowData) do
if data.sheets[1].data[1].rowData[i].values[1].formattedValue == 'AviaJxnny' then
print(data.sheets[1].data[1].rowData[i].values[2].formattedValue)
end
end
end)
Am I being stupid or something because it isnt counting that the player is joining.
Ah, that’s perfectly fine. Regarding the other script:
Was this the only block of code in the script, or was there other code above it? Excessive code and functions such as Instance:WaitForChild() can delay the script, which might have caused your scripts’ failure to print in time.
game.Players.PlayerAdded:Connect(function(plr)
for i, element in pairs(data.sheets[1].data[1].rowData) do
if element.values[1].formattedValue == 'AviaJxnny' then
print(element.values[2].formattedValue)
end
end
end)
Is this the same as your code above right? and if you are making a search an efficient way its using while loop not for loop. Btw maybe you need to make a print debugging to find out the error that sometimes solve bug issues like that idk if you have previous code that generates your problem.