Deciq_z
(Jaafar)
July 20, 2023, 4:15pm
#21
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)
Deciq_z
(Jaafar)
July 20, 2023, 4:15pm
#22
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
Deciq_z
(Jaafar)
July 20, 2023, 4:21pm
#27
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
system
(system)
Closed
August 3, 2023, 4:28pm
#32
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.