wait(1)
local score = game:GetService("DataStoreService"):GetOrderedDataStore(script.DataStore.Value)
function script.UploadScore.OnServerInvoke(player)
print("working")
local inv = player:FindFirstChild(script.Original.Value)
score:SetAsync(player.Name, inv:FindFirstChild(script.Score.Value).Value)
print("worked")
end
COMMUNITY QUESTION
Why is line 7 a nil value? Should I do waitforchild?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
I dont think you can find a Instance that's not a String value. Maybe replace line 7 with player:FindFirstChild("Insert_name_here")?
But I need everyone in there instead of one named person.