Simple camera shake that I can use for my guns?

So I tried finding a good and easy-to-use camera shake and I’ve come across EZ CAMERA SHAKE but I don’t know how to use it. I just don’t understand it?

Can somebody show me how to use it? for guns and more stuff if needed? I dont know much about modules.

1 Like

Try searching “camera shake for guns” on the forums here.
There are some posts that explain the scripts that are in them that may help you with what you need.

I haven’t used modules so I’m not much help there.

Have you seen this before? :wink:

CameraShaker is the required module

yeah but multiple values go unknown

Think of modules as packages with functions.

Or a table where you can re-use a function.

you get the module (EZShake) by require()ing it.

Then, you use it as you would normally for functions.

For example, when you use player service functions:
Players:GetPlayerFromCharacter(character)

but instead, its for the module (you have to read the documentation on the module to know what the functions are)

In this case:
The example code used

local camShake = CameraShaker.new(Enum.RenderPriority.Camera.Value, function(shakeCf)
	camera.CFrame = camera.CFrame * shakeCf
end)

camShake:Start()

-- Explosion shake:
camShake:Shake(CameraShaker.Presets.Explosion)

CameraShaker is the module (local CameraShaker = require(locationofmodule)
All the rest are the functions/calls used to create the shake.

local camShake is defining what the shape will be and how it will be (while also including the functions needed)

then, camShake:Start() starts the shake.

1 Like

mhm well i tried this:

local camera = workspace.CurrentCamera
		
		local CameraShaker = require(game.ReplicatedStorage.CameraShaker)
		
		local camShake = CameraShaker.new(Enum.RenderPriority.Camera.Value, function(shakeCFrame)
			camera.CFrame = camera.CFrame * shakeCFrame
		end)
		
		camShake:Start()

but where do I put camShake:Shake? I had followed this: