Как сделать красивое меню? | Roblox Studio
Всем привет! С вами я, Matvey Lopi, сегодня я вам покажу, как сделать меню в роблокс студио. ===================================================== →Мой канал / @matveylopi51 →Мой дискорд (здесь также есть скрипты) / discord →Задонить https://www.donationalerts.com/r/matv...
→Оригинал • How to make a Main Menu Gui // 2023 // Rob... ===================================================== →Профиль https://www.roblox.com/users/28538555...
Надеюсь вам понравится мой канал и уроки, если да, то поддержи хотя бы лайком и подпиской!) ===================================================== Скрипты: Команда в Command Bar: local part = Instance.new("Part") part.Parent = workspace part.CFrame = game.Workspace.CurrentCamera.CFrame part.Name = "MenuCameraPart" 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") local tweenInfoButtons = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut) for i, v in pairs(script.Parent:GetChildren()) do if v:IsA("Frame") then v.MouseEnter:Connect(function() tweenService:Create(v, tweenInfoButtons, {BackgroundColor3 = Color3.fromRGB(40,40,40)}):Play() end) v.MouseLeave:Connect(function() tweenService:Create(v, tweenInfoButtons, {BackgroundColor3 = Color3.fromRGB(49,49,49)}):Play() end) end end local tweenInfoPopups = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut) 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 tweenService:Create(script.Parent, tweenInfoPopups, {Position = UDim2.new(0.5,0,1.25,0)}):Play() tweenService:Create(script.Parent.Parent.Title, tweenInfoPopups, {Position = UDim2.new(0.5,0,-1.25,0)}):Play() for i, x in pairs(script.Parent.Parent.Popups:GetChildren()) do if x:IsA("Frame") then x.Visible = false x.Position = UDim2.new(0.5,0,1.5,0) end end popupframe.Visible = true tweenService:Create(popupframe, tweenInfoPopups, {Position = UDim2.new(0.5,0,0.5,0)}):Play() 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 tweenService:Create(script.Parent, tweenInfoPopups, {Position = UDim2.new(0.5,0,1.25,0)}):Play() tweenService:Create(script.Parent.Parent.Title, tweenInfoPopups, {Position = UDim2.new(0.5,0,-1.25,0)}):Play() tweenService:Create(script.Parent.Parent.Parent.Transition, tweenInfoPopups, {Position = UDim2.new(0,0,0.5,0)}):Play() wait(1) script.Parent.Parent.Parent.CameraScript.Enabled = false game.Workspace.Camera.CameraType = Enum.CameraType.Custom tweenService:Create(script.Parent.Parent.Parent.Transition, tweenInfoPopups, {Position = UDim2.new(-1,0,0.5,0)}):Play() wait(1) script.Parent.Parent.Parent:Destroy() end) Back: local tweenService = game:GetService("TweenService") local tweenInfoPopups = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut) script.Parent.TextButton.Activated:Connect(function() script.Enabled = true tweenService:Create(script.Parent.Parent.Parent.Parent.Buttons, tweenInfoPopups, {Position = UDim2.new(0.516, 0,0.71, 0)}):Play() tweenService:Create(script.Parent.Parent.Parent.Parent.Title, tweenInfoPopups, {Position = UDim2.new(0.516, 0,0.228, 0)}):Play() tweenService:Create(script.Parent.Parent, tweenInfoPopups, {Position = UDim2.new(0.5,0,1.5,0)}):Play() 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)