BehaviourTypes
Contains functions that check that a given object is of a request type. These are safe to use on unverified data from the client.
HitscanResult
Section titled “HitscanResult”export type HitscanResult = { Hit: { Part: BasePart, Normal: Vector3, RelativeCFrame: CFrame, }?, Position: Vector3,}Request
Section titled “Request”export type Request = {HitscanResult}?Functions
Section titled “Functions”IsHitscanRequest
Section titled “IsHitscanRequest”Returns true if the provided data is a valid hitscan.
Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
data | any | The data. |
Returns
Section titled “Returns”boolean
IsRequest
Section titled “IsRequest”Returns true if the provided data is a valid request. Note that nil is a valid request.
Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
data | any | The data. |
Returns
Section titled “Returns”boolean