You would need to setup a RemoteEvent in the ReplicatedStorage (or somewhere else). A LocalScript should be put in the tool, which fires the RemoteEvent and the server receives and then you would do the raycast and damages etc. I’d highly suggest to watch this tutorial (it uses Tool Grip Plugin, but you can ignore that):