Skip to content

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.

export type HitscanResult = {
Hit: {
Part: BasePart,
Normal: Vector3,
RelativeCFrame: CFrame,
}?,
Position: Vector3,
}
export type Request = {HitscanResult}?

Returns true if the provided data is a valid hitscan.

NameTypeDefaultDescription
dataanyThe data.

boolean

Returns true if the provided data is a valid request. Note that nil is a valid request.

NameTypeDefaultDescription
dataanyThe data.

boolean