local Z=2 local q=0 local C=200 runService.RenderStepped:Connect(function()if elapsedTime()>nextFire then nextFire=elapsedTime()+Z hum.CameraOffset=Vector3.new(math.random(q,C)/1000,math.random(q,C)/1000,math.random(q,C)/1000)end end)
--config
local shakeRate = 2 --how often to shake the screen in seconds. 0 is default, around 0.0166 seconds.
local shakeMin = 0 --the minimum amount of shake to apply, use whole numbers only
local shakeMax = 200 --the maximum amount of shake to apply, use whole numbers only

runService.RenderStepped:Connect(function()
	if elapsedTime() > nextFire then
		nextFire = elapsedTime() + shakeRate
		hum.CameraOffset = Vector3.new(
			math.random(shakeMin, shakeMax) / 1000,
			math.random(shakeMin, shakeMax) / 1000,
			math.random(shakeMin, shakeMax) / 1000
		)
	end
end)
