# Trivia Box

This sample project is a box that when pressed will show a trivia question on screen and users will be able to attempt to answer the trivia question using local chat.&#x20;

This project demonstrates how to create a server script and how client-server communications can be made to create an interactive multiplayer object. It also shows how we can access and interact with the local chat messages through scripting.&#x20;

Creators can access and download the project (which is open-source) and do as they wish with it.

Note: Control of the box is limited to Owner and Admin. This can be modified in the script.

You can demo this object live by going to the **Shop** -> **Furniture** -> Search for **Trivia Box** (it will be under **API Docs Sample Projects** as creator)**.**

#### How to use:

* Download the package using the link below
* Import into your Sinespace project (Editor Pack required)
* The project folder will be under **Sinespace Sample Projects -> Trivia Box**
* There's a demo scene in the **Scenes** folder
* In the **Virtual Goods component**, press **Clear ID** and modify the component fields with your own info.&#x20;
* In the **VG Trivia Box Server** object, edit the **Class ID** in the **Server Script** component.
* In the **VG Trivia Box object**, edit the **Virtual Good ID** and **Class ID** in the **Require Server Script** component.
* Modify the project and upload.&#x20;

{% file src="<https://3139042084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbbLlvuwnrw87d8udYuJj%2Fuploads%2FbKAI9zMpNsRJgPsFr8C1%2FTriviaBox29July2022.unitypackage?alt=media&token=d5fb54a6-464d-47c6-92e9-eabbabd4d06d>" %}
