So I'm really bad at controlling the Roblox camera, but I used the code below to manipulate it for my menu system:
local Button = script.Parent function onClick() while CameraLock == true do Camera.CameraSubject = game.Workspace.CameraFocus Camera.CameraType = "Watch" Camera.CoordinateFrame = CFrame.new(952.697, 63.425, -890.067) wait(0.01) end Button.MouseButton1Click:connect (onClick)
This script is used after the player clicks "Enter", which will focus the camera on a part and display main menu options. One of the options is "Play", so when the player clicks it the camera changes and goes into first person, but it doesn't work. here is the code:
local Button = script.Parent local player = game.Players.LocalPlayer function onClick() player.CameraMode = 0 wait() player.CameraMode = 1 end Button.MouseButton1Click:connect (onClick)