game.ServerStorage.RemoteFunctions.GetObjectFromID.OnInvoke=function(N)for T,g in pairs(game.ReplicatedStorage.Objects:GetChildren())do if g.ItemID.Value==N then return g end end end game.ServerStorage.RemoteFunctions.ChangeCash.Event:connect(function(N,T)local g=game.ReplicatedStorage.PlayerData:FindFirstChild(N.userId)if g then g.cash.Value=g.cash.Value+T end end)


game.ServerStorage.RemoteFunctions.GetObjectFromID.OnInvoke = function(id)
	for _,v in pairs(game.ReplicatedStorage.Objects:GetChildren()) do
		if v.ItemID.Value == id then
			return v
		end
	end
end

game.ServerStorage.RemoteFunctions.ChangeCash.Event:connect(function(plr,amt)
	local data = game.ReplicatedStorage.PlayerData:FindFirstChild(plr.userId)
	if data then
		data.cash.Value = data.cash.Value + amt
	end
end)

