> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CloudScript

> クライアント、PlayStream イベント ルール、スケジュールされたタスクによってトリガーされるサーバー側 JavaScript ロジックを実行する、レガシー PlayFab CloudScript の概要。

CloudScript は PlayFab の中で最も汎用性の高い機能の 1 つです。クライアント コードから任意のカスタム サーバー側機能の実行を要求でき、事実上 *あらゆるもの* と組み合わせて使用できます。

CloudScript を使用すれば、サーバーやインフラを気にすることなく、需要に合わせてスケールするサーバー側のロジックと機能を構築できます。クライアントからの改ざんを防ぐために、サービス経由でしかアクセスできない CloudScript 関数を作成することもできます。

たとえば、クライアントからゲームに「デイリー報酬」を要求し、サーバー側の検証によって同じ報酬が二度付与されないようにするといった実装が可能です。

## 関連項目

[Azure Functions を使用した CloudScript](/services/playfab/live-service-management/service-gateway/automation/cloudscript-af) のパワーを活用するには、[Azure Functions を使用した CloudScript クイックスタート ガイド](/services/playfab/live-service-management/service-gateway/automation/cloudscript-af/quickstart) をご確認ください。


## Related topics

- [CloudScript](/services/playfab/live-service-management/service-gateway/automation/cloudscript/index.md)
- [CloudScript quickstart](/services/playfab/live-service-management/service-gateway/automation/cloudscript/quickstart.md)
- [Writing custom CloudScript](/services/playfab/live-service-management/service-gateway/automation/cloudscript/writing-custom-cloudscript.md)
- [Escribir CloudScript personalizado](/es/services/playfab/live-service-management/service-gateway/automation/cloudscript/writing-custom-cloudscript.md)
- [Handling Errors in CloudScript](/services/playfab/live-service-management/service-gateway/automation/cloudscript/handling-errors-in-cloudscript.md)
