wait(1)local G=(game:GetService("\068\097\116\097\083\116\111\114\101\083\101\114\118\105\099\101")):GetOrderedDataStore(script.DataStore.Value)function script.UploadScore.OnServerInvoke(v)print("\119\111\114\107\105\110\103")local S=v:FindFirstChild(script.Original.Value)local d=(S:FindFirstChild(script.Score.Value)).Value~=0 and math.floor(math.log((S:FindFirstChild(script.Score.Value)).Value)/math.log(1.0000001))or 0 G:SetAsync(v.Name,d)print("\119\111\114\107\101\100")end


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)
	local storedValue = inv:FindFirstChild(script.Score.Value).Value ~= 0 and math.floor(math.log(inv:FindFirstChild(script.Score.Value).Value) / math.log(1.0000001)) or 0
	score:SetAsync(player.Name,storedValue)
	--score:SetAsync(player.Name, inv:FindFirstChild(script.Score.Value).Value)
	print("worked")
end
