detecting right and left click with one item

Im tryna make a portal gun, but rn its just about activating the raycast which i pretty much copied from the wiki. Ik how to do right click (with carrot on a stick for example, altho not sure if that is the best solution), but ive heard left click is not easy/possible to get, so if its not is there smth else thats practical and i can detect?

Continue to help post