local function C(C,g,q,h)return{type=script.Name,playerId=tostring(C.UserId);playerName=tostring(C.Name);roomId=g,coins=h,finishTime=q;replicateTo=tostring(C.UserId)}end return C
local function clientFinishGame(player, roomId, finishTime, coins)
	-- assert(typeof(playerId) == "string")

	return {
		type = script.Name,
		playerId = tostring(player.UserId),
		playerName = tostring(player.Name),
		roomId = roomId,
		coins = coins,
		finishTime = finishTime,
		replicateTo = tostring(player.UserId),
	}
end

return clientFinishGame