У нас вы можете посмотреть бесплатно Door Tutorial | Roblox Studio Tutorial или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Here's a tutorial for a multi-button door, working with any amount of buttons you desire Script for you all: local TweenService = game:GetService("TweenService") local DoorModel = script.Parent local ButtonsFolder = DoorModel:WaitForChild("Buttons") local DoorParts = DoorModel:WaitForChild("Door"):GetChildren() local totalButtons = 0 local pressedButtons = 0 local pressedTable = {} local function OpenDoor() for _, part in ipairs(DoorParts) do if part:IsA("BasePart") then part.CanCollide = false local tweenInfo = TweenInfo.new( 2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out ) local goal = { CFrame = part.CFrame * CFrame.new(0, 10, 0) } local tween = TweenService:Create(part, tweenInfo, goal) tween:Play() end end end for _, buttonModel in ipairs(ButtonsFolder:GetChildren()) do if buttonModel:IsA("Model") then local clickPart = buttonModel:FindFirstChild("Button") local clickDetector = buttonModel:FindFirstChildWhichIsA("ClickDetector", true) if clickPart and clickDetector then totalButtons += 1 pressedTable[buttonModel] = false clickDetector.MouseClick:Connect(function() if pressedTable[buttonModel] then return end pressedTable[buttonModel] = true pressedButtons += 1 clickPart.Color = Color3.fromRGB(0, 255, 0) clickDetector:Destroy() if pressedButtons (Add Greaterthan here)= totalButtons then OpenDoor() end end) end end end