Earthquake/Screen Shake Effect

Hello! I have been trying to create a continuous screen shake effect for my game, like an earthquake. I tried using a popular plugin to achieve this but it did not work. Since I am new to scripting, and all the Dev-Forum posts for a shake effect are for tools, or just recommend the plugin that isn’t working for me, I have no where else to turn.

This is the plugin I tried to use.

Here is an example of what I am trying to achieve.

Any help would be appreciated!

1 Like

The plugin you linked is not a plugin, its a modulescript.

To use it, you have to require the module:

local CameraShaker = require(LocationOfYourModule)

once you’ve required it, you can use it to call certain functions. The devforum post already gives you tips and an example on how to use it.

Example code taken from post:

-- If you're wondering, CameraShaker is the module ^^
local camShake =, function(shakeCf)
	camera.CFrame = camera.CFrame * shakeCf
end) -- makes shake

camShake:Start() -- starts shake

-- Explosion shake:
camShake:Shake(CameraShaker.Presets.Explosion) -- sets type of shake

Ah, I believe I understand now. But where would I put the modulescript?

1 Like