local player = game.Players.LocalPlayer
local character = player.CharacterAdded
local mouse = player:GetMouse()
local camera = game.Workspace.CurrentCamera
local defaultCFrame = camera.CFrame
local view = 150
function updateCamera()
camera.CFrame = game.Workspace.MenuCamera.CFrame
end
wait(0.1)
game:GetService("RunService").RenderStepped:Connect(updateCamera)
script.Parent.Frame.Play.MouseButton1Click:Connect(function()
wait(0.2)
camera.CameraType = Enum.CameraType.Custom
script.Parent.Frame:Destroy()
game.Workspace.MenuCamera.Sound.Playing = false
script:Destroy()
end)
There isn’t a MenuCamera under Workspace. And if there is, it’s not for the first 128 frames.
128 frames? How fix it? Idk really
If it is only really causing the spam in console, and isn’t affecting functionality, you could just make this the function:
function updateCamera()
if game.Workspace:FindFirstChild("MenuCamera") then
camera.CFrame = game.Workspace.MenuCamera.CFrame
end
end
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.