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

2 comments

0

I dont think you can find a Instance that's not a String value. Maybe replace line 7 with player:FindFirstChild("Insert_name_here")?

0

But I need everyone in there instead of one named person.