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)
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.
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.
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.
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?
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.