Как сделать красивое меню? | Roblox Studio

preview_player
Показать описание
Всем привет! С вами я, Matvey Lopi, сегодня я вам покажу, как сделать меню в роблокс студио.
=====================================================
=====================================================
Надеюсь вам понравится мой канал и уроки, если да, то поддержи хотя бы лайком и подпиской!)
=====================================================
Скрипты:
Команда в Command Bar:

CameraScript в ScreenGui:

local plr = game:GetService("Players").LocalPlayer
local Character = plr.Character or plr.CharacterAdded:Wait()
local CameraInst = workspace.Camera

local CameraPart = workspace:WaitForChild("MenuFolder"):WaitForChild("MenuCamera"):WaitForChild("MenuCameraPart").CFrame

repeat wait()
CameraInst.CameraType = Enum.CameraType.Scriptable
until CameraInst.CameraType == Enum.CameraType.Scriptable
CameraInst.CFrame = CameraPart

ButtonScript в Buttons:

local tweenService = game:GetService("TweenService")

for i, v in pairs(script.Parent:GetChildren()) do
if v:IsA("Frame") then
v.MouseEnter:Connect(function()
end)

v.MouseLeave:Connect(function()
end)
end
end

local Popup = {

Settings = "Settings",
Credits = "Credits"

}

for buttonName, frameName in pairs(Popup) do
local button = script.Parent:FindFirstChild(buttonName)
local popupframe = script.Parent.Parent.Popups:FindFirstChild(frameName)

button:WaitForChild("TextButton").Activated:Connect(function()
for i, v in pairs(script.Parent:GetDescendants()) do
if v:IsA("TextButton") then
v.Visible = false
end
end


for i, x in pairs(script.Parent.Parent.Popups:GetChildren()) do
if x:IsA("Frame") then
x.Visible = false
end
end

popupframe.Visible = true
end)
end

script.Parent.Play.TextButton.Activated:Connect(function()
script.Enabled = false

for i, v in pairs(script.Parent:GetDescendants()) do
if v:IsA("TextButton") then
v.Visible = false
end
end



wait(1)

script.Parent.Parent.Parent.CameraScript.Enabled = false
game.Workspace.Camera.CameraType = Enum.CameraType.Custom


wait(1)
script.Parent.Parent.Parent:Destroy()
end)

Back:

local tweenService = game:GetService("TweenService")

script.Parent.TextButton.Activated:Connect(function()
script.Enabled = true


wait(1)

for i, v in pairs(script.Parent.Parent.Parent.Parent.Buttons:GetDescendants()) do
if v:IsA("TextButton") then
v.Visible = true
end
end

script.Parent.Parent.Visible = false
script.Enabled = true
end)

Shadows в Settings:
script.Parent.TextButton.Activated:Connect(function()
if script.Parent.StateValue.Value == true then
game.Lighting.GlobalShadows = false
script.Parent.StateValue.Value = false

script.Parent.State.Text = "Off"
else
game.Lighting.GlobalShadows = true
script.Parent.StateValue.Value = true

script.Parent.State.Text = "On"
end
end)
Комментарии
Автор

Привет, можешь снять видео про магазин но за монетки, (в магазине продаются морфы) (но не предметы)

Z-nubzYT
Автор

Когда новое видео? Очень хочется чтоб ты сделал тутор на магазин как в симуляторах. Когда заходишь в определенную область и открывается магазин. Сделай пожалуйста

GhostNagib
Автор

7:09 у меня на этом моменте парт не появился, что делать?

omnomkryt
Автор

Не мог бы ли ты написать скрипт на Петомцев, которых можно покупать

bendytv
Автор

Гайд хороший только он не твой. Его создатель Asadrith

MrNoob_