ServerScriptService
ServerScriptService : Instance
Overview
The ServerScriptService class is a container service designed to securely store and execute server-only scripts, such as Script and ModuleScript. It ensures that its contents are not replicated to the client, making it an essential tool for protecting critical game logic from exploits or unauthorized access. ServerScriptService is part of scripting infrastructure and is not accessible from the client side
Description
The ServerScriptService acts as the primary location for organizing and running server-side scripts. It is specifically designed to house scripts that manage game logic, handle server-client communication, and perform other backend tasks. By isolating these scripts from the client, ServerScriptService helps prevent exploits and ensures that critical server-side operations remain secure.
Key Features
Server-Only Access:
Objects stored in
ServerScriptService
are only accessible by server-side scripts. They are not replicated to clients, making them invisible to players.
Automatic Script Execution:
Scripts placed in
ServerScriptService
will automatically run unless theirDisabled
property is set totrue
.
Secure Storage for Scripts:
Ideal for storing sensitive game logic, such as anti-cheat systems, data handling, or game state management.
Compatibility with ModuleScripts:
ModuleScripts placed in
ServerScriptService
can be required by other server-side scripts, allowing developers to organize reusable code effectively.