local function n(n,U)local G=Vector3.new(math.random(-n*100,n*100)/100,math.random(-n*100,n*100)/100,math.random(-n*100,n*100)/100)local y=camera.CFrame+G local h=TweenInfo.new(U,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0)local d=(game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(camera,h,{CFrame=y})d:Play()end
-- Function to shake the screen
local function shakeScreen(magnitude, duration)
	local shakeOffset = Vector3.new(
		math.random(-magnitude * 100, magnitude * 100) / 100,
		math.random(-magnitude * 100, magnitude * 100) / 100,
		math.random(-magnitude * 100, magnitude * 100) / 100
	)
	local shakeCFrame = camera.CFrame + shakeOffset
	local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0)
	local tween = game:GetService("TweenService"):Create(camera, tweenInfo, { CFrame = shakeCFrame })
	tween:Play()
end
