function shake()
camera = game.Workspace.CurrentCamera
for i = 1,10 do
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,0.5,0)
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,-0.5,0)
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0.5,0,0)
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(-0.5,0,0)
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,0.5,0)
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,-0.5,0)
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,0,0.5)
wait()
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,0,-0.5)
end
end
while true do
wait(0.01)
shake()
end
Aimed to make the person's camera shake, only works in studio. Help?

1 comment
We need more information, is this a Local Script, or a Server Script? Where is this (Local) Script located?