@clone
That would never unlock. If you follow the code you will realize that because of the while loop, it will never get to the `wait(3) unlockcam = true`
unlockcam = true
function lockCam(c1,f1)
while not unlockcam do --more proper, look at the boolean wiki article
game.Workspace.CurrentCamera.CFrame = c1
game.Workspace.CurrentCamera.Focus = f1
wait()
end
end
unlockcam = false
coroutine.resume(coroutine.create(function()--starts a new thread
wait(3)
unlockcam = true
end));
lockCam(game.Workspace.c1.CFrame,game.Workspace.f1.CFrame)
|