Server
RegisterDirectory(directory)
Requires all module scripts in a directory when server starts. Can only be called before server has started.
Parameters:
- Directory:
Instance
- TypeScript
- Luau
const Server = CreateServer();
Server.RegisterDirectory(ReplicatedStorage.TS.statusEffects)
local Server = WCS.CreateServer()
Server:RegisterDirectory(game.ReplicatedStorage.statusEffects)
Start()
Starts the handler.
- TypeScript
- Luau
const Server = CreateServer();
Server.Start();
local Server = WCS.CreateServer()
Server:Start()
IsActive()
Returns true
if the server has started.
Returns:
- boolean
- TypeScript
- Luau
const Server = CreateServer();
Server.IsActive();
local Server = WCS.CreateServer()
Server:IsActive()