Watch till the end and don't miss out on anything! Might not work otherwise Main Menu Kit in the Thumbnail: th-cam.com/video/AiBl5UjRRiU/w-d-xo.html&t Need help? Join my Discord server! discord.gg/pGmyH7AfZ8
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.
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
I know you’re a scripter and you don’t specialize in UX but setting anchor points and positioning to 0.5,0.5 makes the UI the same on all devices.👍🏼👍🏼👍🏼 great tutorial man!
Thank you soo much your the only vid that acctualy works THX THX THX THX and when i die it goes back to the camera!!! EXACTLY WHAT I NEED NOW I CAN GO TO BED!!
it worked tysm you own a new sub! I'm still designing my game called "Relax.." And I wondered to put a camera menu in it to make it more beautiful tysm!
Omg bro you don’t understand how much I love you rn I have been trying to make this for 2 years 🙏 but this 5 minute video acctually worked ? Omg I love you bro God bless you ❤
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?
Actually you can without the need for tutorials but just create a gui and make a button then script that button to a specific spawn you want them to spawn.
Hello, i really liked your tutorial! It worked perfectly but i have a little problem : the script only work for me and doesn’t work for my others friends in roblox studio. How can i fix that ?Thank you very much, i am waiting for an answer 😊
Oh sorry, my english isn’t very good 😅. When i test the game on roblox studio, it works. But, it won’t work for my friends since we are collaborating to make the game. And it doesn’t work in the roblox client.
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!
@@InRift TYSM!! and if you don't mind is it okay if you add more option like settings but if it is much complicated it's fine! Cause am kinda new to this!
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 ;)
actually, if you get an infinite yield, you have to put wait(0.1). If you dont it will not work because low end devices with low processing power cannot process it. So to make your game favorable for every devices you must put wait(0.1)
@@InRift yes but some people says that it didn't work even if they put wait(0.1) so i think maybe they put the camera too far from the spawn so when players join the game they can't load it
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.
could this be used to make cctv style cameras? like if you wanted to make a camera room where if u interact with a proximity prompt u can open up cameras
BRO WHAT HAVE I DONE WRONG I MADE EVERYTHING AND SET IT UP LIKE IN THE VIDEO AND THEN WHEN I CLICK PLAY IT JUST SPAWNS ME AND DOESNT PUT ME WHERE THE CAMERA IS, THEN THE ONLY THING I HAVE IS THE STUPID PLAY BUTTON SITTING THERE..
why do all these tutorials use the same shitty gate to get the script, i try to do what the instructions say and they never work, so i click skip and now i have to wait an hour
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.
--Varibles local CurrentCamera = workspace.CurrentCamera local Part = workspace:WaitForChild("Menu Camera") local PlayBTN = script.Parent.BG.Play_btn wait(0.001) --Set the camera position to MenuCamera CurrentCamera.CameraType = Enum.CameraType.Scriptable CurrentCamera.CFrame = Part.CFrame --Functions function Play() CurrentCamera + Enum.CameraType.Custom script.Parent:Destroy() end --Run the Function PlayBTN.MouseButton1Click:Connect(Play)
i dont know, but if u want help on the script here. --Varibles local CurrentCamera = workspace.CurrentCamera local Part = workspace:WaitForChild("MenuCamera") local PlayBTN = script.Parent.BG.Play_btn 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)
this is my code, it says on line 17 that attempting to index nil with CFrame any fixes? ---identifying variables. clicksize and starsize UDim2.new is the height and width of gui, name and button is the gui, blur is the blur in lighting, clicksound and music are the sounds played when in the menu and out of the menu, cam part is ---the camera part, cc is the current camera in workspace, basically your humanoid's screen. local button = script.Parent local name = script.Parent.Parent.GameName local blur = game.Lighting.Blur local clicksound = game.Workspace.ClickPlay local clicksize = UDim2.new(script.Parent.Size.Width.Scale * 0, 0.5, script.Parent.Size.Height.Scale * 0, 0.1) local startsize = UDim2.new(script.Parent.Size.Width.Scale, 0.137, script.Parent.Size.Height.Scale, 0.062) local music1 = game.Workspace.Music local music2 = game.Workspace.Music1 local Part = game.Workspace:FindFirstChild("CameraPart") local CurrentCamera = workspace.CurrentCamera task.wait (0.001) ---sets the current camera (your screen) to the part's camera. CurrentCamera.CameraType = Enum.CameraType.Scriptable --- "scriptable has no behaviour and is only used for when developers need to script custom behaviour - which in this case is to make the player's screen go into the part's screen " CurrentCamera.CFrame = Part.CFrame --- CFrame is the camera position ---tells the code to play the music and enable blur to be true (blur is visible) before the function music1:Play() blur.Enabled = true ---function function Click()
clicksound:Play() --- plays the code once clicked script.Parent:TweenSize(clicksize,Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.25,true) --- these 3 lines of code changes the gui's size smaller then back to normal after clicked task.wait(0.1) script.Parent:TweenSize(startsize,Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.25,true) task.wait(2) --- tells the code to wait 2 seconds before running the rest of the function button:Destroy() name:Destroy() --- these 2 lines of code destroys the menu gui once play is clicked. music1:Stop() music2:Play() --- stops music 1 and plays music 2 once play button is clicked blur.Enabled = false --- tells the code to disable the blur effect in player's lighting CurrentCamera.CameraType = Enum.CameraType.Custom --- puts the camera back to the normal screen end ---runs the function when click script.Parent.MouseButton1Click:Connect(Click)
The error is saying that it cannot find the part. FindFirstChild() doesn't work in this case because the game is still loading assets when you first join. So, what WaitForChild() does is that it waits and finds the part.
make a script so it waits for the loading screen to end to the button appear for example: if the loading screen takes like 15 seconds, make the button not visible and add this local script to the button wait (15) script.Parent.Visible = true (to make the button not visible, go to the button properties) (or just change the button zindex lol
@Rift uhh my script aint working, script in the menuGUI and here is the script btw : --Variebles local CurrentCamera = workspace.CurrentCamera local Part = workspace:waitforchild("MenuCamera") local PlayBTN = script.Parent.BG.Play_btn 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) is there any mistakes?
Make sure to credit the owner or you'll be accused of plagiarism of stealing someone's idea. Or I misenterpret, if I did misunderstand apologies for getting you offended.
Watch till the end and don't miss out on anything! Might not work otherwise
Main Menu Kit in the Thumbnail: th-cam.com/video/AiBl5UjRRiU/w-d-xo.html&t
Need help? Join my Discord server! discord.gg/pGmyH7AfZ8
me to
You should make more tutorials then
yeah because its so good
Thnx!
It doesn't work :(
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.
Thats nice idea
@@InRift u commented 2 times
well my screen says so,meanwhile it says there is only 1 comment
@@Haingst huh
use tween my guy, need help with that? im new too lol
this is the best tutorial out there, i managed to customize the script a bit to add a "cutscene" after,
THIS IS AMAZING, STRAIGHT TO THE POINT AND WORKS!!!!!!!!!!!!!!!!!
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
Sure, i will attach scripts in the description from next time on. Thanks for the advice!
Hello, when I tried adding a text button to BG at 1:52, nothing showed up, there was a button in the corner like on your screen.
This actually helped me so much thank you!!
I know you’re a scripter and you don’t specialize in UX but setting anchor points and positioning to 0.5,0.5 makes the UI the same on all devices.👍🏼👍🏼👍🏼 great tutorial man!
What you may not know is i specialize in UX. But, this video is just for scripting and not for UX desigining.
If it didn’t work for you try when it says current camera.camera type = Enum.cameratype.custom instead put cameratype.Track
IM SO GLAD MY GUY
this video is extremely straightforward and helped me A TON because I've just started to learn scripting!
Thank you soo much your the only vid that acctualy works THX THX THX THX
and when i die it goes back to the camera!!! EXACTLY WHAT I NEED NOW I CAN GO TO BED!!
help meeeeeeeee
If you are wondering how to do the tilted buttons (as in the thumbnail), you just need to use surface guis and the rest of it is standard stuff
Surface gui actually.
@@InRift shit, I confused them again. I will edit the comment
Thank you this helped a lot
Tysm! It worked! First try! I’m subscribing right now!
This is what i need for my haikyuu game i'm making thx
np
It works thank you. Just an quick issue when I hit play the camera flips over the camera is anchored.
Thanks so much! I am a returning dev from 2020, this is the best part of my building partition. I subbed.
Welcome aboard!
Tysm this really helped a lot :3
it worked tysm you own a new sub! I'm still designing my game called "Relax.." And I wondered to put a camera menu in it to make it more beautiful tysm!
Thanks for the sub!
5:10 if you wanna copy script
Omg thank you so much! I fixed error spelled and it really worked thank you!🎉❤
Glad it helped!
Thank you this helped me so much!
Omg bro you don’t understand how much I love you rn I have been trying to make this for 2 years 🙏 but this 5 minute video acctually worked ? Omg I love you bro God bless you ❤
🙌
It worked very good thanks. I subbed to you!
Thanks for the sub
It works! Amazing video, thank you so much i needed it for my game.
Glad to help
Thanks! This is what i needed, even tho u posted this 8 months ago it's still working i will subcribe now!
Glad I could help
this is cool! but was wanting to making it where the camera follows my mouse
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?
me too
i can show you i know how
Actually you can without the need for tutorials but just create a gui and make a button then script that button to a specific spawn you want them to spawn.
Thank you so much it worked and I didn't get stressed!
You're welcome!
Hello, i really liked your tutorial! It worked perfectly but i have a little problem : the script only work for me and doesn’t work for my others friends in roblox studio. How can i fix that ?Thank you very much, i am waiting for an answer 😊
could you please elaborate more?
Oh sorry, my english isn’t very good 😅. When i test the game on roblox studio, it works. But, it won’t work for my friends since we are collaborating to make the game. And it doesn’t work in the roblox client.
Nevermind, it works now, it was just uncommited
It worked! Could you make a part 2 that includes a credit button?
sure
this man needs a raise...
why didnt it connect tot he little part
It did the same to me, how do I connect it?
Thx for this vid and i need just map to finish the game) u have new sub)
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!
Sure i will upload a video on it!
@@InRift TYSM!! and if you don't mind is it okay if you add more option like settings but if it is much complicated it's fine! Cause am kinda new to this!
The fact that you told us to check for typo's and proceeded to spell common wrong is crazy
Good vid btw
😅
I tried everything. There are no misspells, and I typed everything. Still, it is not in the camera position. Please help
try checking the spelling or, checking weather if you made the script local or server
How do i make the play button go into another menu with more stuff?
I made it qnd it works tysm! Question is there a way to make it with q title and credits?
Thanks ! this is really cool.
No problem!
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 ;)
Infinite yield is a roboox exploit.
Roblox exploit*
its not. @@Johndoe-jb6nx
actually, if you get an infinite yield, you have to put wait(0.1). If you dont it will not work because low end devices with low processing power cannot process it. So to make your game favorable for every devices you must put wait(0.1)
@@InRift yes but some people says that it didn't work even if they put wait(0.1) so i think maybe they put the camera too far from the spawn so when players join the game they can't load it
And how to add buttons like ,,shop“ or ,,weapons“ or smth
ok
Thanks, ill be using this for my horror game
you can also use the indicator to check the front. Thanks!
I appreciate this ty for the tutorial
No problem
Wow that its a good tutorial!
ayo ur the goat bruh
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.
Yes I'm interested
@@InRift Brilliant! Do you have a way for me to contact you to give you more information and get started early?
@@enriqueperez5726 Discord?
could this be used to make cctv style cameras? like if you wanted to make a camera room where if u interact with a proximity prompt u can open up cameras
Yep
yeah
tank uz!!1! dis helpt meh maek my 2D platformer game.
jk, dint workz :(
@@ploobMClmao
@@ploobMC why are you spelling like that
Ty Guys I Needed This
worked and loving it
is there a tutorial out there where it shows you how to make the ui stay in place while the camera moves around in the menu
th-cam.com/video/egYPwftrePg/w-d-xo.html
You meant this?
Ty !
BRO WHAT HAVE I DONE WRONG I MADE EVERYTHING AND SET IT UP LIKE IN THE VIDEO AND THEN WHEN I CLICK PLAY IT JUST SPAWNS ME AND DOESNT PUT ME WHERE THE CAMERA IS, THEN THE ONLY THING I HAVE IS THE STUPID PLAY BUTTON SITTING THERE..
IT WORKED, but i had to move my intro thing onto the baseplate xD
im so much of a beginner im struggling with explorer *insert crying emoji*
Everyone had this time
Didnt work
didnt work :(
currentcamera dosent work it says its not a member
Pretty good
It didn’t work and I went back to check for spelling errors
oo ok
ayo when i hit play the play button and the camera view won't go away
then check for spelling errors bc for me it works fine
how did u do that i want mine to be like that
I did everything correctly and even checked for spelling errors but the play button wouldn't work
strange. want a model?
@@InRift plz
@@RoboStitch1234 I'll give a link to a model that I'll make
@@InRift ok
I don't have time to make it because i have a ton of work. SORRY!!!
I was kinda expecting something else from the thumbnail, but that's fine, I guess.
When i press play the play btn still shows up, how csn i fix it?
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)
im looking for the same thing
If you are too far away you can't see it
why do all these tutorials use the same shitty gate to get the script, i try to do what the instructions say and they never work, so i click skip and now i have to wait an hour
Only source of income rn. Im removing them on 10/12/24
Hey i Wonder if you give us some model that i can use ☺️
hm sure!
which do you want?
yeah@@InRift
@@InRift yeah but brother you can give a free model link
@@JUBAYER_AHSAN Yeah
nothing works for me i rlly don’t know why
Check your output and spellings. Specially the names.
U a goat thanks bro
Yo the camera and everything works but when I click play it doesn't take me off the camera can you help me out
Yes, whats the error?
By error, i meant texts shown in the output
broh thx!! you helped me so much!!
np
when i die, the menu pops up again, how do you fix it?
go to the screen gui properties and unmark "Reset on Spawn"
@@AtoniobabosaBROOOO TYYY
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.
can you paste the script here?
Me too
Paste your script here please@@nexon5808
@@InRift i have the same problem heres my script
--Varibles
local CurrentCamera = workspace.CurrentCamera
local Part = workspace:WaitForChild("Menu Camera")
local PlayBTN = script.Parent.BG.Play_btn
wait(0.001)
--Set the camera position to MenuCamera
CurrentCamera.CameraType = Enum.CameraType.Scriptable
CurrentCamera.CFrame = Part.CFrame
--Functions
function Play()
CurrentCamera + Enum.CameraType.Custom
script.Parent:Destroy()
end
--Run the Function
PlayBTN.MouseButton1Click:Connect(Play)
how do you make the frames at an angle like in the thumbnail
th-cam.com/video/zh7w_W6ZzBk/w-d-xo.html
Here is a tutorial on it!
Dude tysm
Happy to help
How do I hide other GUIs while on the main menu?
omg this helped so much
when I try it, it says infinite yield possible. Is there any fixes?
you didnt add wait(0.0001)
try making the camera closer to the player spawn
how could i make it so it destroys all of it for only you once you press the play button
Guys i literally copied everything word for word and check for mispelling twice and for some reason it doesnt play when i click play
Why did you copy all if it's literally in the desc boi
@@user-wh6zf7fm4f are you stupid?
@@user-wh6zf7fm4f i copied it from the description
The error is then probally with Names of the object
Anyways, please!
Don't be rude to other people :)
is there a link to the model?
i dont know, but if u want help on the script here. --Varibles
local CurrentCamera = workspace.CurrentCamera
local Part = workspace:WaitForChild("MenuCamera")
local PlayBTN = script.Parent.BG.Play_btn
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)
this is my code, it says on line 17 that attempting to index nil with CFrame any fixes?
---identifying variables. clicksize and starsize UDim2.new is the height and width of gui, name and button is the gui, blur is the blur in lighting, clicksound and music are the sounds played when in the menu and out of the menu, cam part is
---the camera part, cc is the current camera in workspace, basically your humanoid's screen.
local button = script.Parent
local name = script.Parent.Parent.GameName
local blur = game.Lighting.Blur
local clicksound = game.Workspace.ClickPlay
local clicksize = UDim2.new(script.Parent.Size.Width.Scale * 0, 0.5, script.Parent.Size.Height.Scale * 0, 0.1)
local startsize = UDim2.new(script.Parent.Size.Width.Scale, 0.137, script.Parent.Size.Height.Scale, 0.062)
local music1 = game.Workspace.Music
local music2 = game.Workspace.Music1
local Part = game.Workspace:FindFirstChild("CameraPart")
local CurrentCamera = workspace.CurrentCamera
task.wait (0.001)
---sets the current camera (your screen) to the part's camera.
CurrentCamera.CameraType = Enum.CameraType.Scriptable --- "scriptable has no behaviour and is only used for when developers need to script custom behaviour - which in this case is to make the player's screen go into the part's screen "
CurrentCamera.CFrame = Part.CFrame --- CFrame is the camera position
---tells the code to play the music and enable blur to be true (blur is visible) before the function
music1:Play()
blur.Enabled = true
---function
function Click()
clicksound:Play() --- plays the code once clicked
script.Parent:TweenSize(clicksize,Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.25,true) --- these 3 lines of code changes the gui's size smaller then back to normal after clicked
task.wait(0.1)
script.Parent:TweenSize(startsize,Enum.EasingDirection.Out,Enum.EasingStyle.Sine,.25,true)
task.wait(2) --- tells the code to wait 2 seconds before running the rest of the function
button:Destroy()
name:Destroy() --- these 2 lines of code destroys the menu gui once play is clicked.
music1:Stop()
music2:Play() --- stops music 1 and plays music 2 once play button is clicked
blur.Enabled = false --- tells the code to disable the blur effect in player's lighting
CurrentCamera.CameraType = Enum.CameraType.Custom --- puts the camera back to the normal screen
end
---runs the function when click
script.Parent.MouseButton1Click:Connect(Click)
Do WaitForChild() instead of FindFirstChild("CameraPart")
The error is saying that it cannot find the part. FindFirstChild() doesn't work in this case because the game is still loading assets when you first join. So, what WaitForChild() does is that it waits and finds the part.
So i made like a loading screen before it but the play button is in the way how can i fix that?
make a script so it waits for the loading screen to end to the button appear
for example: if the loading screen takes like 15 seconds, make the button not visible and add this local script to the button
wait (15)
script.Parent.Visible = true
(to make the button not visible, go to the button properties)
(or just change the button zindex lol
Question, why does this work singleplayer but not multiplayer?
Could you elaborate more?
@@InRift Nevermind, it was an issue inside of team share. Sorry!
Can you elaborate on that? check your output logs and you might have typed something or some scripts that override it?
OMG TYSM
@Rift uhh my script aint working, script in the menuGUI and here is the script btw :
--Variebles
local CurrentCamera = workspace.CurrentCamera
local Part = workspace:waitforchild("MenuCamera")
local PlayBTN = script.Parent.BG.Play_btn
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)
is there any mistakes?
yes, you misspelled variables
@@dragonslayer8517 how
@@dragonslayer8517 ohh i get it
1:11
How can I ACTUALLY make it so that it looks like the thumbnail? :(
Just make a surface gui
Bro, it didn't work for me, when I enter the game it spawns directly, help me, I did everything the same😢
Try checking the camera name. It could have been misspelled
Can you specify the issue you are having by checking the output logs?
How do I add more buttons?
Duplicate the current one and rename it
@@InRift thx but would it just do the same thing like if I name it “controls” wouldn’t it just start the game
@@InRift also u should make a Tut for adding music to the menu
No, you have to script for it
Yes, its simple. Just add a sound and turn playing on.
Heres a video: th-cam.com/video/L7Zvh0ldliY/w-d-xo.html
Didn’t work
It works, make sure you did the Exact same name as his instructions
Search for typos
you did it wrong then
Check the output logs and can you specify the issue?
@@Theundeadforce I found a different main menu cam so I dont need this anymore.
it only works sometimes when i join
Plus 1 sub for you
Tysm
I will steal this.
Make sure to credit the owner or you'll be accused of plagiarism of stealing someone's idea.
Or I misenterpret, if I did misunderstand apologies for getting you offended.
your thing deosn't work bro
i reviewed the script and ur video 100 times and it still deosn't work
the play button doesent dissapear
Check the output logs it might help of that issue and you can fix the script.
doesnt work im going to crash out