Screen shake like battleground games

What’s the best way to create a screen shake module? I’d like to develop one myself to gain a deeper understanding. Any suggestions? The camera shake is for a battlegounds game I am making. But I suck at making good shakes!

The best way is to learn from already created modules and doing research yourself: EZ Camera Shake ported to Roblox