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.
Plugin

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

Any help would be appreciated!

2 Likes

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 = CameraShaker.new(Enum.RenderPriority.Camera.Value, 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
2 Likes

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

2 Likes