There are a couple of interesting clip capturing api’s that exist such as: I've made a command that allows your viewers to create clips on any platform (Twitch, YouTube, etc.)
Without any basic examples we don’t really know what you’re trying to accomplish.