Files inside ReplicatedStorage/Client are for remote signals handling OnClientEvent
Files inside ServerStorage/Server are the opposite, and are for remote signals handling OnServerEvent or OnServerInvoke
Server/Events use OnServerEvent, while Server/Functions use OnServerInvoke
This method does not accept parameters from the client, you're all good from sanity checks!
BombModules MUST have a GetBasicInfo() method returning a dictionary of basic information needed to solve the module which will be sent to the client. (eg. wire colors, wire count)
This method accepts parameters from the client, sanity checks are MANDATORY to be implemented!
BombModules MUST have an Interact() method which does a specific type of action on the module (eg. cut a wire, press a button) and returns either a boolean which indicates whether the interaction was successful or not, or nil.
- This method should:
- Return
trueto finish and solve the module - Return
falseto give a strike - Return
nilto do nothing (used for multiple-step modules or a failed sanity check)
- Return
| Method | Accepts client parameters? | Sanity checks mandatory? |
|---|---|---|
| Module:GetBasicInfo() | No | No |
| Module:Interact(...) | Yes | Yes |
ReplicatedStorage/Modules/Visuals contains modulescripts that return a function to automatically give looks to the bomb module as needed with the model and information passed.
Anything marked and beginning with PRE_ is HIGHLY advised to be REMOVED or ARCHIVED upon alpha/beta release unless excepted as it may expose potential server threats to exploiters.