Raycast

Can be used Client side

LUX.Raycast.CoordsPlayerIsLookingAt

CreateThread(function()
    while true do 
        local coords = LUX.Raycast.CoordsPlayerIsLookingAt()
        DrawMarker(1, coords.x, coords.y, coords.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1*2.0, 1*2.0, 1.0, 255, 0, 0, 255, false, false, 2, false, false, false, false)
    
        if IsControlJustReleased(0, 38) then
            print(coords.x, coords.y, coords.z)
            break
        end
    Wait(0)
    end
end)

Last updated