How to make a Door Open When Clicked Button (Roblox Studio Tutorial)

Опубликовано: 21 Май 2026
на канале: Ezoca
16,625
267

⭐⭐Thanks for watching
---------------------------------------------------------
script:
local part = game.Workspace.Part2
local button = game.Workspace.Button2
local detector = game.Workspace.Button2.ClickDetector

detector.MouseClick:Connect(function()
part.Transparency = 0.8
part.CanCollide = false
wait(2)
part.Transparency = 0
part.CanCollide = true
end)
---------------------------------------------------------
⭐socials⭐
---------------------------------------------------------
⭐tiktok: https://www.tiktok.com/@ezocaa?lang=en
⭐twitch:   / ezoca  
---------------------------------------------------------
20 likes for a door where you need a key to open it
Comment below your thought's and if you want more Roblox
scripting tutorials.