How to make a Main Menu with Camera | Roblox Studio | 2024

How to make a Main Menu with Camera | Roblox Studio | 2024

DevFlare

9 месяцев назад

111,280 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Flvx.
@Flvx. - 16.12.2023 19:37

I never expected this video to become so popular

Ответить
@EftelSam
@EftelSam - 29.01.2024 22:27

So i made like a loading screen before it but the play button is in the way how can i fix that?

Ответить
@School_Laptop_gamer
@School_Laptop_gamer - 28.01.2024 16:36

the play button doesent dissapear

Ответить
@dann1vl
@dann1vl - 28.01.2024 03:56

I've seen a lot of people pasting the code incorrectly, I'm going to do it nice and clean ;)

local CurrentCamera = workspace.CurrentCamera
local Part = workspace:WaitForChild("MenuCamera")
local PlayBTN = script.Parent.BG.Play_btn
wait(0.001)

CurrentCamera.CameraType = Enum.CameraType.Scriptable
CurrentCamera.CFrame = Part.CFrame

function Play()
CurrentCamera.CameraType = Enum.CameraType.Custom
script.Parent:Destroy()
end

PlayBTN.MouseButton1Click:Connect(Play)

Ответить
@partakamosu
@partakamosu - 26.01.2024 23:36

bro he just scammed us all report

Ответить
@bunnops1717
@bunnops1717 - 25.01.2024 04:04

how could i make it so it destroys all of it for only you once you press the play button

Ответить
@delpx7845
@delpx7845 - 24.01.2024 15:51

ayo when i hit play the play button and the camera view won't go away

Ответить
@realfrostinio
@realfrostinio - 21.01.2024 14:57

is there a link to the model?

Ответить
@R0SE_L0VES
@R0SE_L0VES - 18.01.2024 21:11

Tysm this really helped a lot :3

Ответить
@masterpoweryt
@masterpoweryt - 17.01.2024 18:34

Nice tutorial !
I have a solution for the infinite yield
Maybe the camera is too far from the player so the player can't load it
I made this mistake because i created a platform with the camera and i moved it away of the map so the players can't see it
Hope this help ;)

Ответить
@RoboStitch1234
@RoboStitch1234 - 17.01.2024 01:18

I did everything correctly and even checked for spelling errors but the play button wouldn't work

Ответить
@c00lbaconn
@c00lbaconn - 16.01.2024 17:48

man u did clickbait i wanted a main menu like the thumnail :(

Ответить
@GreatHaZeRBLX
@GreatHaZeRBLX - 14.01.2024 05:41

This is the Great HaZe Channel.

Ответить
@BaconEditz0_0
@BaconEditz0_0 - 11.01.2024 03:22

This is what i need for my haikyuu game i'm making thx

Ответить
@neozim_
@neozim_ - 10.01.2024 16:04

I need help, everything works but when i hit play nothing happens, i checked multiple times for spelling errors but nothing is missing and the buttons are all named correctly.

Ответить
@TRFFMTAE
@TRFFMTAE - 08.01.2024 02:05

clickbait thumbnail

Ответить
@dwitsyproofz
@dwitsyproofz - 07.01.2024 22:14

the camera works, but not the play button

Ответить
@fiaph1658
@fiaph1658 - 07.01.2024 00:15

its not working bruh

Ответить
@erikpower7203
@erikpower7203 - 06.01.2024 04:18

It worked! Could you make a part 2 that includes a credit button?

Ответить
@user-vo3ck4bh4j
@user-vo3ck4bh4j - 03.01.2024 04:33

broh thx!! you helped me so much!!

Ответить
@MonitorFrames
@MonitorFrames - 02.01.2024 15:57

It works thank you. Just an quick issue when I hit play the camera flips over the camera is anchored.

Ответить
@truelygamiful5117
@truelygamiful5117 - 31.12.2023 04:51

when I try it, it says infinite yield possible. Is there any fixes?

Ответить
@TheKL0S
@TheKL0S - 28.12.2023 16:44

play button is not working

Ответить
@dead4eva691
@dead4eva691 - 25.12.2023 01:37

I tried everything. There are no misspells, and I typed everything. Still, it is not in the camera position. Please help

Ответить
@Tbone4Universe
@Tbone4Universe - 24.12.2023 00:49

What's the game in the tumbnail?

Ответить
@Messirve-fx3cy
@Messirve-fx3cy - 21.12.2023 15:27

--Varibles
local CurrentCamera = workspace.CurrentCamera
local Part = workspace:WaitForChild("MenuCamera")
local PlayerBTN = script.Parent
wait(0.001)

--Set the camera position to MenuCamera
CurrentCamera.CameraType = Enum.CameraType.Scriptable
CurrentCamera.CFrame = Part.CFrame

--Functions
function Play()
CurrentCamera.CameraType = Enum.CameraType.Custom
script.Parent:Destroy()
end

--Run the Function
PlayBTN.MouseButton1Click:Connect(Play)

Ответить
@nttainGG
@nttainGG - 21.12.2023 03:07

how to make it move

Ответить
@BLPIXEL1
@BLPIXEL1 - 18.12.2023 08:00

how do i make when the camera follows the mouse
(i might do this at my game and try to make the avatar make any pose for the main menu)

Ответить
@zebra_x6420
@zebra_x6420 - 17.12.2023 01:01

Hi i was wondering if it would be possible for u to maybe make it so when we press play it gives us options for a spawn, and we have to chose a spawn location in order to play the game?

Ответить
@lkzingpi
@lkzingpi - 15.12.2023 01:56

Bro, it didn't work for me, when I enter the game it spawns directly, help me, I did everything the same😢

Ответить
@Yumiikou
@Yumiikou - 10.12.2023 04:02

Hello! may I ask? This the first tutorial that work for me and it's really great but can you please help me? I want the play button to have some animation to look more nicer and smoother! I hope you can help me!

Ответить
@p3achy_lemon
@p3achy_lemon - 02.12.2023 03:35

Idk what I did wrong. I copied the script correctly and even checked for spelling errors but when I test it it brings me straight to the spawn location and not the camera.

Ответить
@JUBAYER_AHSAN
@JUBAYER_AHSAN - 29.11.2023 11:59

Hey i Wonder if you give us some model that i can use ☺️

Ответить
@NightsHunter123
@NightsHunter123 - 24.11.2023 17:36

SCRIPT:
local CurrentCamera = workspace.CurrentCamera
local Part = workspace:WaitForChild("MenuCamera")
local PlayBNT = script.parent.BG.Play_btn
wait(0.001)

--Menu Camera
CurrentCamera.CameraType = Enum.CameraType.Scriptable
CurrentCamera.CFrame = Part.CFrame

--Function!
function Play()
CurrentCamera.CameraType = Enum.CameraType.Custom
script.Parent:Destroy()
end

--Run function =)
PlayBNT.MouseButton1Click:Connect(Play)

Ответить
@deathdoesroblox
@deathdoesroblox - 16.11.2023 21:55

Nice, I am going to use this to implement a main menu so when the player presses play, it then does an animation to move down or fade away. When the credits underneath this is pressed, it then changes the camera to a position and then the credits will show.

Ответить
@AiraxPlayz
@AiraxPlayz - 16.11.2023 09:40

Yo the camera and everything works but when I click play it doesn't take me off the camera can you help me out

Ответить
@enriqueperez5726
@enriqueperez5726 - 15.11.2023 19:16

Hello! My name is Enrique, I have seen all your videos which I really think are great and because of your knowledge in the area of Scripts. I would love to know if you would be interested in participating in the development of a Roblox experience that is quite advanced. What it really needs is someone to bring it to life with the scripts. If you are interested, do not hesitate to reply and I will be happy to give you more details! Many successes.

Ответить
@the87player
@the87player - 15.11.2023 17:56

good tutorial man
your script worked even tho I removed some line so the camera is fixed on a part
but it would be good to have the script in the description

Ответить
@robloxguest725
@robloxguest725 - 10.11.2023 04:26

This need change:--Locals
local CurrentCamera = workspace.CurrentCamera
local Part = workspace:WaitForChild("MenuCamera")
This need change to ---------------------------------------------------------------------------------------local Playbtn = game.StarterGui.MenuGUI.BG.Play_bnt
wait(0.001)

--Sets
CurrentCamera.CameraType = Enum.CameraType.Scriptable
CurrentCamera.CFrame = Part.CFrame

--function
function Play()
CurrentCamera.CameraType = Enum.CameraType.Custom
script.Parent:Destroy()
end


--RUN!!!!!!!!
Playbtn.MouseButton1Down:Connect(Play)

And play button not work i will add

script.Parent.MouseClick1Down:Connect(function()
script.Parent.Parent.Visible = false
end

Ответить
@robloxguest725
@robloxguest725 - 10.11.2023 04:23

You need to change this script: local Playbtn = game.StarterGui.MenuGUI.BG.Play_bnt

Ответить
@cowfrancisthethird
@cowfrancisthethird - 09.11.2023 13:17

Can you make a video on how to add a second camera for another mode thanks. Also please make it so that when I click It should teleport me to another game. Also it works nice video! 🗿🗿🗿🗿

Ответить