I'm trying to loop cameras for my menu GUI with multiple camera parts, but it won't work, any help please?
local camera = game.Workspace.CurrentCamera local Player = game.Players.LocalPlayer local menu = game.Workspace.MenuCamera local Char = Player.Character or Player.CharacterAdded:Wait() Char:WaitForChild("HumanoidRootPart").Anchored = true local function camerastuff() camera.CameraType = Enum.CameraType.Scriptable camera.CFrame = menu.Cam1.CFrame wait(2) camera.CFrame = menu.Cam1.CFrame wait(2) end game:GetService("RunService").RenderStepped:Connect(camerastuff) script.Parent.TextButton.MouseButton1Click:Connect(function() camera.CameraType = Enum.CameraType.Custom Char:WaitForChild("HumanoidRootPart").Anchored = false script.Parent.TextButton:Destroy() script:Destroy() end)