ROBLOX STUDIO | How to make a Automatic Sliding door | #RobloxStudio #RobloxDev #Lua #Scripting
🚪 Create a Pro Automatic Sliding Door in Roblox Studio! Learn how to build a sleek, functional automatic sliding door using TweenService—the gold standard for smooth movement in Roblox. Whether you're building a futuristic sci-fi base, a modern mall, or a high-security lab, this tutorial covers everything from the initial build to the final script. We’ll skip the glitchy "Touch" events and use Proximity Prompts or Region Checks (Sensor Parts) to ensure your doors feel responsive and professional. No more getting stuck in the door frame! -- The Script 👇 local TweenService = game:GetService("TweenService") local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out, 0) local Door1Frame = script.Parent.Door1 local Door2Frame = script.Parent.Door2 local Detector = script.Parent.Detector local Goal1Open = { CFrame = Door1Frame.CFrame * CFrame.new(0, 0, 2.2)} local Goal2Open = { CFrame = Door2Frame.CFrame * CFrame.new(0, 0, 2.2)} local Goal1Close = { CFrame = Door1Frame.CFrame } local Goal2Close = { CFrame = Door2Frame.CFrame } local DoorOpen = false local DoorClose = true local function OpenDoor() if DoorClose then DoorClose = false DoorOpen = true TweenService:Create(Door1Frame, tweenInfo, Goal1Open):Play() TweenService:Create(Door2Frame, tweenInfo, Goal2Open):Play() end end local function CloseDoor() if DoorOpen then DoorOpen = false DoorClose = true TweenService:Create(Door1Frame, tweenInfo, Goal1Close):Play() TweenService:Create(Door2Frame, tweenInfo, Goal2Close):Play() end end Detector.Touched:Connect(OpenDoor) Detector.TouchEnded:Connect(CloseDoor) -- Subscribe and like!! 🎮 Hey there, legends! I'm Ashiro, your favorite blue-haired Roblox gamer! 🐔💙 I bring you funny, scary, sad, and epic Roblox adventures—from noob moments to pro plays, and everything in between! 😱🤣💥 Join me as I explore wild games, create crazy content, and maybe scream a little (or a lot)! if you want to join me! my user:LofiPhantom Roblox 💻 Scripter-in-training 🛠️ | 🎥 Content Creator | 💬 Always vibing with the community Subscribe and let’s build a Roblox empire together! #RobloxSquad #MrChicken #GamerLife #RobloxEdits
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.