Find Part On Ray

Description

Sends out a invisible ray from a point in space with a specific direction and length, and then detects if it hits a part. If nothing is hit, the output will all be nil.

Available to

Inputs

Origin (Vector3)

You set the Origin of the Raycast.

0,0,0

Direction (Vector3)

You set the Direction of the Raycast.

0,-5,0

FilterType (Choice)

You set the FilterType of the Raycast.

Blacklist

Filter DescendantsTable (Table)

You set the filter table for the given FilterType.

BlacklistedParts

Outputs

Instance (Object)

Returns the Object that got found by the raycast.

Returns nil if no object was found.

HitPart

Position (Vector3)

Returns the Position, where the raycast hitted the Instance.

Returns nil if no object was found.

HitPosition

Normal (Vector3)

Returns nil if no object was found.

Last updated