Trying to get the parent of a RayResult.Instance

For some reason, I can’t access the parent of a RayResult.Instance. I don’t know why it doesn’t work, because I can access the children of the ray result instance. This should work since it’s clearly parented to an object right?

How about

local result = RayResult.Instance

Nevermind, dumb post, I’m not really sure what’s going on with my code, probably structured it improperly

Both RaycastResult and Instance can be Nil values.

Check if they exist before accessing them