filmov
tv
HOW TO MAKE A MAIN MENU 🛠️ Roblox Studio Tutorial
Показать описание
In todays video I show you how to make a Main Menu, Main menus are used to allow players to interact with the game before they have even begun playing the main game. Main Menus usually have a Play Button, Credits Button and sometimes a settings button.
I Hope you enjoyed the video, Have a lovely rest of your day!
If you are a bit confused what to do, Feel free to message me on Discord and Ill help you out!
Script 1 (Play Button Script) :
local Gui = script.Parent.Parent
script.Parent.MouseButton1Click:Connect(function(clicked)
for i = 1,25 do
wait (0.05)
game.Lighting.Blur.Size = game.Lighting.Blur.Size - 3
end
end)
----------------------
Script 2 (Credits Button Script):
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.CreditsFrame.Visible = not script.Parent.Parent.Parent.CreditsFrame.Visible
if script.Parent.Parent.Parent.CreditsFrame.Visible then
script.Parent.Parent.Visible = false
else script.Parent.Parent.Visible = true
end
end)
----------------------
Script 3 (Credits Close Script):
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
if not script.Parent.Parent.Visible then
script.Parent.Parent.Parent.MainFrame.Visible = true
end
end)
----------------------
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials
Комментарии