How to make and script a open door by button in Roblox studio! #Roblox #Lua #RobloxStudio

preview_player
Показать описание
You need:
A click Detector
Weld
and a Script

Script/Code:
local Detector = script.Parent.ClickDetector
local Door = game.Workspace.Doors.Door3

Detector.MouseClick:Connect(function()
Door.CanCollide = false
Door.Transparency = 0.5
wait(0.2)
Door.CanCollide = false
Door.Transparency = 1
wait(10)
Door.CanCollide = true
Door.Transparency = 0
end)
------Information-----
🔴Stream times: 8pm UK time 11:00am morning Eastern Time
Gamer , Graphic Designer and Live Streamer.
------Social Media------

------Music Credits------
Iamvalenine x Horus III - Conzept 7 (No Copyright Trap)

Alan Walker Faded (NCS)

#Roblox #Lua #RobloxStudio
Рекомендации по теме
Комментарии
Автор

How do you do it with a local script??

acreator
Автор

Does this work when you connect all parts [of door] to Model? bc im trying made an bus door

gramywautobusy