Plugins
The first implementation of ZScript in the Revive Engine will be plugins for custom servers. Just like Minecraft/Rust server plugins, these will allow you to add custom functionalities.
Custom Commands
Using the CommandService, you can bind a commands onto the server. e.g. /hello prints “World!” into console.
CommandService:BindCommand("hello", {
Permission = "All";
Description = "Hello command.";
Function = function(player: Player, args)
-- Handles on command.
print("World!");
end;
})
Home Plugin
Here is an example that allow players to use /sethome set a home at a CFrame and /home to teleport back to that CFrame.