Camera manipulation not working

try this:

local cam = workspace.CurrentCamera
cam.CameraType = Enum.CameraType.Scriptable

local tv = workspace:WaitForChild("TV")
local screen= tv:WaitForChild("Screen")
task.wait(2)
game:GetService("RunService").RenderStepped:Connect(function()
     cam.CFrame = screen.CFrame + Vector3.new(0, 10, 0)
end)

I tested with it and it works…

Can you show me how the camera view looks?

sure here it is also i found out i do need


a renderstepped loop

What is the desired camera face direction?

so the game is bassicly where a meteorite strikes then ur at ur house viewing a tv then it says “robloxia invaded by alien creatures” so i want it to view the screen object

cam.CFrame = screen.CFrame * CFrame.Angles(0, math.rad(180), 0) * CFrame.new(0,0,-10)

maybe?

Currently your camera is facing 180 degrees away from the screen so what you can do is multiply by math.pi on the y rotation

cam.CFrame = screen.CFrame * CFrame.fromOrientation(0, math.pi, 0) + Vector3.new(0,0,20)

i dont think its quite working

actually i think i know a workaround i can just make a part in workspace named tvpart facing the tv and set the cframe to that however thank you for teaching me about streaming enabled

1 Like

thank you guys for helping i appreciate it

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.