Hello! I have tried countless times for this:
I want to change your camera to lock onto a part when you touch a block, this is the LocalScript I created:
script.Parent.Touched:connect(function(h)
if h.Parent:FindFirstChild("Humanoid") then
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.Camera1.CFrame
end
end)
All help appreciated! Thank you.

3 comments
try replacing line 5 with this:
camera.CFrame = CFrame.new(workspace.Camera1.Position)
Thanks for your comment! Seem it hasn't worked, thanks anyway!