I have tried to fix this before I posted it but basically I want to have it to where it focuses on a certain part and be a certain distance away. But it isn't doing a single thing other than outputting "Focus and Coord set!". No errors what so ever. Here is the code:
-- Time for a huge script!
-- Wait For Crap --
while game.Workspace.CurrentCamera == nil do wait() end
local cam = game.Workspace.CurrentCamera
-- Libraries/ModuleScripts --
--local camera = require(script.CameraPlus)
--local Module3D = require(script.Module3D)
cam.CameraSubject = nil
cam.CameraType = "Scriptable"
-- Putting the camera at a certain CFrame coordinate and focus. --
cam.CoordinateFrame=game.Workspace:WaitForChild("ShopCamera").CFrame
cam.Focus = game.Workspace:WaitForChild("Part").CFrame
print("Focus and Coord set!")
Thank you so much for helping! I very much appreciate it!

9 comments
The second block of code is cut off, but if you copy it to your clipboard and paste it in studio you will be able to see the entire thing.
Still isn't working, I found that the camera's CameraType isn't even getting set... Not anything.
This is a LocalScript within a Local location, correct?
StarterGui in ShopGUI.
Alright, is it a LocalScript?
Yes
Updated my answer.
Hey! It worked! Thanks man
No problem!