Introduction
Today, I’ll be teaching you how to make a Main Menu, Firstly we will have to write down our steps.
Steps
- Build the Main Menu
- Script the Camera
Step 1 (Building)
You can build however you want I’ll just make a quick Main Menu Place (Name it MenuPlace and Group it (CTRL+G) and put Every instance inside of it)
Make sure to Anchor the Main Menu Place of course
- Next up we will have to make the CameraPart Make sure to anchor it and name it “CameraPart” and position it well, this will be the player camera.
Make sure to drag it’s transparency to 1 and CanCollide to false.
Step 2 (Scripting the Camera)
This is where the scripting Begins The hard stuff begins
Our Basic Camera script will make the Player’s Camera CFrame is equal to the Player Camera
It’s really easy to do that.
Let’s Begin (Place a Local Script Inside of StarterCharacterScripts to go to it Press the StarterPlayer → StarterPlayerScripts)
First of we will have to make our Variables.
local Player = game.Players.LocalPlayer
local Camera = game.Workspace.Camera
Nice, we are done with the variables, Our first variable the “Player” will get the Player
Our Second variable “Camera” will get the Player’s Camera
Next up we will have to do a line that will basically make the Player unable to move his Camera and We will have full control of it.
Camera.CameraType = Enum.CameraType.Scriptable
Now for our Last line We will make the Player Camera is equal to the Camera CFrame
Camera.CFrame = game.Workspace.MainMenuPlace.CameraPart.CFrame
We are Done
Results
Please tell me how I did it as its my first tutorial.