I'm using a script which fixes the camera at a certain location, and all works well with that. What I don't know, though, is how to return the camera to normal when the start button is pressed. How would this be achieved? Thanks in advance.
The script:
local cam = workspace.CurrentCamera local CameraLocation = Vector3.new(-22.5, 35.5, -58.5) local CameraDirection = Vector3.new(-8, 4.5, -92) cam.CameraType = Enum.CameraType.Scriptable game["Run Service"].RenderStepped:connect(function() cam.CoordinateFrame = CFrame.new(CameraLocation,CameraDirection) end) --[[ Title Screen Script ]] function onClicked() titlescreen:Destroy() cam.CameraType = Enum.CameraType.Fixed end titlebutton.MouseButton1Down:connect(onClicked)
You have:
cam.CameraType = Enum.CameraType.Fixed
when it should be:
cam.CameraType = "Fixed"