Turn a Tool.Activated to a right mouse click

How do i turn my Tool.Activated:Connect(function() into a right click function?image

I dont think thats possible, but you can use UserInputService for that on a local script, and then fire a remote event to let the server script do the rest of the work etc.

You need to use UserInputType to check if it is a right click to fire the event