Hello, I am making a roblox game that includes a main menu
The part which is used as the camera in the main menu is called “CameraPart”
I have tried many things but it doesnt seem to be helping, Can you help?
local CameraStart = workspace:WaitForChild("CameraPart")
local camera = workspace.CurrentCamera
local bool = true
local Player = game:GetService("Players").LocalPlayer.Character
script.Parent.MainFrame.Visible = true
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = CameraStart.CFrame
script.Parent.MainFrame.PLAY.MouseButton1Click:Connect(function(Player1)
script.Parent.MainFrame.Visible = false
game.Workspace.SpawnPoint.CFrame = CFrame.new(Vector3.new(0,20,0))
if bool == true then
bool = false
end
end)
if bool == false then
camera.CameraType = "Custom"
end
I hope you can help me and others