RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Camera bobbing script"
-- local script local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local camera = workspace.CurrentCamera local bobbing = false local function startBobbing() if not bobbing then bobbing = true while bobbing do camera.CFrame = camera.CFrame * CFrame.new(0, 0.1, 0) wait(0.1) camera.CFrame = camera.CFrame * CFrame.new(0, -0.1, 0) wait(0.1) end end end local function stopBobbing() bobbing = false end humanoid.Running:Connect(function(speed) if speed > 0 then startBobbing() else stopBobbing() end end)