Scripting a Ragdoll Tool

I’ve been trying to script a tool that is able to ragdoll anyone that it hits. If anyone has a script for this I would appreciate the help.