How to make a camera shake loop with [EZ camera shake]

Yesterday I have been studying about the Camera Shake with the ez camera shake model
https://www.roblox.com/library/1461025953/Camera-Shaker

The problem is that when I call camera shake from CameraShakePresets, the camera shake usually only lasts 0.5 seconds or 3 seconds or 8 seconds. I’m trying to add a ScreenShake to my Charge Dragon ball by holding X, and every time you hold X I want the screen shake to continue forever until the player stops holding X. Sorry I use translator

Pretty sure it has a function for that:

camShake:ShakeSustain(CameraShaker.Presets.Earthquake)

yes it works, but how do I stop the screen shake

shakeInstance = camShake:ShakeSustain(CameraShaker.Presets.Earthquake)

--Use this
shakeInstance:StartFadeOut(1)
local camera = workspace.CurrentCamera

local CamaraShaker = require(game.ReplicatedStorage.CameraShaker)


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

camShake:Start()

camShake:ShakeSustain(CamaraShaker.Presets.Earthquake)


wait(3)

shakeInstance = camShake:ShakeSustain(CamaraShaker.Presets.Earthquake)
shakeInstance:StartFadeOut(1)

the screen shake does not stop :frowning:

local camera = workspace.CurrentCamera

local CamaraShaker = require(game.ReplicatedStorage.CameraShaker)

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

camShake:Start()

shakeInstance = camShake:ShakeSustain(CamaraShaker.Presets.Earthquake)

task.wait(3)

shakeInstance:StartFadeOut(1)

sorry it works i was confused xd, thank you

Umm, don’t mind my saying so, but shudn’t my post be marked as solution?

1 Like