Impact
An Impact object can be returned when casting a ray. (see Camera.CastRay, Player.CastRay, PointerEvent.CastRay)
Properties
Object touched by the ray.
Pointer.Down = function(event) local impact = event:CastRay() print(impact.Object) -- can be nil if no Object has been touched end
Player touched by the ray.
Pointer.Down = function(event) local impact = event:CastRay() print(impact.Player) -- can be nil if no Player has been touched end