RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a camera shake script"
-- local script local camera = game.Workspace.CurrentCamera local shakeMagnitude = 0.05 local shakeDuration = 1 function shakeCamera() local startTime = tick() while tick() - startTime < shakeDuration do local randomShake = Vector3.new(math.random(), math.random(), math.random()) * shakeMagnitude camera.CFrame = camera.CFrame * CFrame.new(randomShake) wait() end camera.CFrame = camera.CFrame end shakeCamera()