# RaycastResult.valid

Returns whether the raycast successfully hit a target.

**Kind:** Member

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Userdata/RaycastResult.md#valid)

### Get

Returns whether the raycast successfully hit a target.

**Returns:**

| Type | Description |
| --- | --- |
| boolean | Whether the raycast successfully hit a target. |
