Game main crashes when using ez camshake without any error message

this bug appears every time im using ez camshake in my main game which is weird because its only happends in only 1 place and the other is working perfectly,

here’s my client:

local cam = workspace.Camera
				local CameraShaker = require(rs.Modules.CameraShaker)
				local camShake = CameraShaker.new(Enum.RenderPriority.Camera.Value, function(shakeCf)
					cam.CFrame = cam.CFrame * shakeCf
				end)
				camShake:Start()

				-- Explosion shake:
				local shakeInstance = camShake:ShakeSustain(CameraShaker.Presets.Explosion) -- You can check out the presets by going to your module and finding a child called "CameraShakePresets"
				shakeInstance:StartFadeOut(1)

anyone can help me please

1 Like

I had problems with this at first, so I rebuilt the placement and structure slightly, making it much easier to set up. Most of the code remains the same, with all script credits and information intact. I also added a script to complete this set. I’ve been using it for a few years now, so it’s pretty well-tested and the whole thing is only 8kb … Download and drop the files where instructed and you’re good to go. 10 second setup with everything working perfectly. :star_struck:

EZCamShaker … EZsetUp
Camera_Shaker.rbxm (8.2 KB)

I recognized this shaker from Unity and have the same setup there. I was delighted to see it was ported over. This covers just about any shaker you could want and is also customizable.

6 Likes

I added this set because I don’t recognize how you’re approaching this. If you want a custom shake, create it in CameraShakePresets. There are built-in options that cover everything you’re doing here. In the end, this is just a simple remote fire.

5 Likes

thank you so much, i really appreciate for replying but the game still some how breaks it also cause the whole computer to be laggy until the studio is closed do you know how to fix this?

2 Likes

i think it causes beacause the other scripts, ill try to detect which it is

2 Likes

Roblox Studio doesn’t just crash. You could start disabling things until you find the cause. You may need to turn off all plugins and reinstall the studio. From what you’re saying, I’m suspecting an infinite loop without pause.

Rule of thumb: Where were you just editing, or what did you just change? Start backtracking.

2 Likes

i tried to unenabled lots of scripts but nothing changed im still looking for the script that cause the problems
btw thanks for replying

2 Likes

Update:

Somehow the camshake now working after i removed some of the codes, tysm for the help!