When you press the play button, it changes to the normal camera mode, How do i do it?
code:
local player = game.Players.LocalPlayer
local character = player.CharacterAdded
local Mouse = player:GetMouse()
local camera = game.Workspace.CurrentCamera
local frame = script.Parent.Frame
local defaultCframe = camera.CFrame
local view = 150
local blur = game.Lighting.Blur
blur.Size = 12
if
frame.Visible == true
then
frame.IntroSound:Play()
end
if
frame.Visible == true
then
blur.Enabled = true
end
blur.Size = 12
function updateCamera()
camera.CFrame = game.Workspace.Models.CameraPart.CFrame
end
game:GetService("RunService").RenderStepped:Connect(updateCamera)
script.Parent.Frame.PlayButton2.MouseButton1Click:Connect (function()
script.Parent.Frame.IntroSound:Stop()
blur.Enabled = false
frame.Visible = false
camera.CameraType = Enum.CameraType.Custom
end)
