Finding Hit position with new raycasting? Help!

Hello! So, i’m trying to use the new ray properties to detect the surface position from a the ray. But for somereason thats not a thing anymore with the new raycasting? I mean. It will detect an object it hit, but I don’t want the object i want the surface position that it hit. Find PartOnRay used to do that. And i would use

Local hit,surfaceposition = workspace:FindPartOnRay(etc.)

Quite often. Can someone help?

2 Likes

The new function returns a dictionary which contains all information. For example the hit position would be accessible through RaycastResult.Position

4 Likes

OMG I’m so dumb. Thx so much. I guess I just wasn’t wrapping my head around it.
I didnt fully understand what all that meant. I thought the result was the part itself. Thx!

1 Like