> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# cansignalreplicate

Returns `true` for any value that's a valid `RBXScriptSignal`.

```luau theme={null}
cansignalreplicate(signal: RBXScriptSignal): boolean
```

That covers `RemoteEvent.OnServerEvent`, `RemoteEvent.OnClientEvent`, `BindableEvent.Event`, `Folder.ChildAdded`, and the rest.

Most commonly used to confirm a value is a valid `RBXScriptSignal` before passing it to `firesignal` or other signal functions.

## Parameters

| Parameter | Type              | Description          |
| --------- | ----------------- | -------------------- |
| `signal`  | `RBXScriptSignal` | The signal to check. |

## Returns

`boolean`

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  local canReplicate = cansignalreplicate(workspace.ChildAdded)
  =======
  -- cansignalreplicate(signal: RBXScriptSignal): boolean
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  local part = Instance.new("Part")
  print(cansignalreplicate(part.Touched))
  ```
</CodeGroup>

<Tip>
  Always check parameters and return values when working with this library function.
</Tip>
