What does the output say? (view → output)
These errors are unrelated, and are instead just from different stuff I didn’t finish.
Hello, looks like RunService.RenderStepped was not used. All this does is set the camera to the set CFrame per position.
Another issue was that the camera you were retrieving was the workspace camera, not the player’s current camera.
Heres the fix:
local Player = game.Players.LocalPlayer
local Camera = game.Workspace.CurrentCamera
local MenuCamera = game.Workspace:WaitForChild("MainMenuCamera")
Camera.CameraType = Enum.CameraType.Scriptable
Camera.FieldOfView = 50
game:GetService("RunService").RenderStepped:Connect(function()
Camera.CFrame = MenuCamera.CFrame
end)
What does RunService do exactly, and how does it affect the camera? Just curious.
(It worked, just shows the wrong side of the part, lol!)
Runservice makes a loop. There are 3 main things that are important in RunService.
RenderStepped is a loop that runs per player frame, this will run faster if the player’s fps is unlocked. This is also used to move the player’s camera’s cframe.
Stepped is a loop that runs per server frame.
Heartbeat is a loop that runs per physics frame.
For more information, look on this page here>
Ah, thank you! Well, I have to go now, thank you for helping.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.