У нас вы можете посмотреть бесплатно How to make a really cool shop Gui in Roblox studio! или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Script 1 (AnimationScript) -- AnimationScript (LocalScript) - Put this inside MainFrame local TweenService = game:GetService("TweenService") -- Easy references (change names only if you renamed things) local frame = script.Parent -- This is MainFrame local closeButton = frame:WaitForChild("CloseButton") local openButton = frame.Parent:WaitForChild("OpenButton") -- assuming OpenButton is sibling of MainFrame -- Change these to match YOUR GUI's normal size & position local normalSize = UDim2.new(0.45, 0, 0.70, 0) -- example: 45% width, 70% height local normalPosition = UDim2.new(0.5, 0, 0.5, 0) -- centered -- Tween settings (feel free to tweak time/easing) local openTweenInfo = TweenInfo.new( 0.45, -- duration Enum.EasingStyle.Back, -- bounce/overshoot Enum.EasingDirection.Out, 0, false, 0 ) local closeTweenInfo = TweenInfo.new( 0.35, Enum.EasingStyle.Back, Enum.EasingDirection.In ) -- Optional: if you have UICorner for rounded corners local uiCorner = frame:FindFirstChild("UICorner") -- Function to OPEN the GUI local function openGUI() frame.AnchorPoint = Vector2.new(0.5, 0.5) -- scale/position from center frame.Position = normalPosition frame.Visible = true -- Start hidden/small/transparent frame.Size = UDim2.new(0, 0, 0, 0) frame.BackgroundTransparency = 1 if uiCorner then uiCorner.CornerRadius = UDim.new(0, 0) end -- Tween to full size + visible local tween = TweenService:Create(frame, openTweenInfo, { Size = normalSize, BackgroundTransparency = 0 -- or 0.05 for slight glass look }) tween:Play() if uiCorner then TweenService:Create(uiCorner, openTweenInfo, {CornerRadius = UDim.new(0, 16)}):Play() -- rounded = 16 pixels end end -- Function to CLOSE the GUI local function closeGUI() local tween = TweenService:Create(frame, closeTweenInfo, { Size = UDim2.new(0, 0, 0, 0), BackgroundTransparency = 1 }) tween:Play() if uiCorner then TweenService:Create(uiCorner, closeTweenInfo, {CornerRadius = UDim.new(0, 0)}):Play() end -- Hide after animation finishes (prevents click-through issues) tween.Completed:Connect(function() frame.Visible = false end) end -- Connect buttons openButton.MouseButton1Click:Connect(openGUI) closeButton.MouseButton1Click:Connect(closeGUI) -- Optional: start closed frame.Visible = false