function shake() local camera = game.Workspace.CurrentCamera for i = 1,10 do wait() camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,2,0) wait() camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,-2,0) end end
while true do wait(0.01) shake() end
Here is what I made I don't know what im doing wrong I want to make the camera shake like a earthquake when I enter a room

1 comment
You need to organize your code properly for everyone to read, otherwise we'll get confused.