Skip to content

ClientCaster API

Pyseph edited this page Nov 25, 2020 · 17 revisions

Properties

RaycastParams RaycastParams

Returns the ClientCaster's set RaycastParams. This property can be edited.

Boolean Debug

Returns whether the ClientCaster object has debug mode enabled, visualizing the ClientCaster's rays.

BasePart Object

Returns the object that the ClientCaster is raycasting from.

Functions

Void Debug(Boolean Bool)

Toggles debug mode of a specific ClientCaster. This feature is light-weight but is not nonetheless not recommended for in-game use.

Void Destroy()

Destroys the ClientCaster object, efficiently cleaning up what's left using a Maid.

Void Initialize()

Initializes the ClientCaster object, starting to raycast for the hit detection.

Void Stop()

Stops the ClientCaster object, making it no longer raycast for hit detection.

Events

Fires whenever any object intersects any one of the ClientCaster's rays.

Signal HumanoidCollided(RaycastResult, Humanoid)

Fires whenever any of the ClientCaster's rays intersect with an object, whose parent has a Humanoid object.

Clone this wiki locally