I am trying to switch my players camera view from my camera part to my current camera and back. Can anyone help? My progess: local plr = game.Players.LocalPlayer local camera = workspace.CurrentCamera local mainMenuMap = workspace:WaitForChild("MainMenuMap") local tweenService = game:GetService("TweenService") local btn = script.Parent
function tweenCamera(pos,tweenTime) tweenService:Create(camera,TweenInfo.new(tweenTime,Enum.EasingStyle.Linear),{CFrame = pos.CFrame}):play() end
btn.MouseButton1Click:Connect(function() btn.Visible = false btn.Parent.Title.Visible = false btn.Parent.CreditButton.Visible = false
end)
local plr = game.Players.LocalPlayer local camera = workspace.CurrentCamera local mainMenuMap = workspace:WaitForChild("MainMenuMap") local tweenService = game:GetService("TweenService") local btn = script.Parent
function tweenCamera(pos,tweenTime) tweenService:Create(camera,TweenInfo.new(tweenTime,Enum.EasingStyle.Linear),{CFrame = pos.CFrame}):play() end
btn.MouseButton1Click:Connect(function() btn.Visible = false btn.Parent.Title.Visible = false btn.Parent.CreditButton.Visible = false
repeat wait() camera.CameraType = Enum.CameraType.Custom until camera.CameraType == Enum.CameraType.Custom camera.CFrame = workspace.Camera.CFrame
end)