✓ Accepted answer
you can use the CurrentCameras CFrame of workspace by changing the CameraType to Scriptable like this:
local camera = workspace.CurrentCamera
local player = game.Players.LocalPlayer
local char = player.Character
wait(0.1)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.Block.CFrame
also make sure its a local script and your Part is facing your target or whatever. if you want to make the camera go to normal you can just set the CameraType to Custom, such as this:
local camera = workspace.CurrentCamera
local player = game.Players.LocalPlayer
local char = player.Character
camera.CameraType = 'Custom'
2 comments
Easy fix: make a gui with a textbutton covering whole screen with .99 transparency... Then make sure they cannot zoom in.
well then they cant do anything lol