-- [[ Dummiez's Data Store Score Board ]]
-- This script updates the Data store with the values from the remote function.


wait(1)

local score = game:GetService("DataStoreService"):GetOrderedDataStore(script.DataStore.Value)
	
function script.UploadScore.OnServerInvoke(player)
	local inv = player:FindFirstChild(script.Original.Value)
	score:SetAsync(player.Name, inv:FindFirstChild(script.Score.Value).Value)
end
