when i use the script it just makes my camera look at the part, but i dont want it to do that. i want it to be looking from the part.
specifically looking straight down
local cam = game.Workspace:WaitForChild("Camera")
repeat cam.CameraType = Enum.CameraType.Scriptable wait() until cam.CameraType == Enum.CameraType.Scriptable
cam.CameraType = Enum.CameraType.Custom
local Focal = game.Workspace:WaitForChild("Focal")
while task.wait() do
local Cal1 = Focal.Position.X + .1
local Cal2 = Focal.Position.z - .1
Focal.Position = Vector3.new(Cal1, 135, Cal2)
cam.CFrame = Focal.CFrame
end
Okay, I’ll write a script that puts the camera at Focal looking down (you must be making a top-down game)
local cam = game.Workspace:WaitForChild("Camera")
repeat cam.CameraType = Enum.CameraType.Scriptable wait() until cam.CameraType == Enum.CameraType.Scriptable
cam.CameraType = Enum.CameraType.Custom
local Focal = game.Workspace:WaitForChild("Focal")
while task.wait() do
cam.CFrame = CFrame.new(Focal.Position, Focal.Position - Vector3.yAxis)
end
local cam = game.Workspace.CurrentCamera
repeat cam.CameraType = Enum.CameraType.Scriptable wait() until cam.CameraType == Enum.CameraType.Scriptable
local Focal = game.Workspace:WaitForChild("Focal")
while task.wait() do
cam.CFrame = CFrame.new(Focal.Position, Focal.Position - Vector3.yAxis)
end