Тёмный

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

Ezoca
Подписаться 4,9 тыс.
Просмотров 12 тыс.
50% 1

⭐⭐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: 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.

Игры

Опубликовано:

 

11 окт 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@eliglbe
@eliglbe 7 месяцев назад
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)
@uqbahsedits9601
@uqbahsedits9601 2 года назад
Nice Tutorial! Hope to see more.
@Silly_Plays675
@Silly_Plays675 Год назад
Thanks it really helped! :D
@BleusOfficial
@BleusOfficial 5 месяцев назад
Thanks for the help your getting another subscriber! :)
@zadarestebanjimenezsarria2241
it worked thanks!
@IloveTDS50
@IloveTDS50 4 месяца назад
Very epic
@fax..1
@fax..1 Год назад
You are so underatet you will ve huge one day just
@Shortestcoment
@Shortestcoment 2 года назад
if it doesn't work for anyone, just telling to not forget to add the clickdetector in the button
@joeperchance
@joeperchance Год назад
still doesnt work
@XAXAXAXAXAAXAXAXAAXAXAAX
@XAXAXAXAXAAXAXAXAAXAXAAX 11 месяцев назад
@@joeperchancecheck script
@OliverYTroblox
@OliverYTroblox 3 месяца назад
how do I make it open locally
@rampagerito8471
@rampagerito8471 8 месяцев назад
your a chad
@AndyPlayz77
@AndyPlayz77 7 месяцев назад
What if i dont want to wait and click on “Button 2” to close also
@extreme1449
@extreme1449 10 месяцев назад
I know im super late but can someone make it so that u cant click it while the door is open? (use booleans and if statement to check if door is open or not)
@ede1597
@ede1597 2 года назад
How do you add sound to the door opening? Could you tell me if you know.
@ezoca8272
@ezoca8272 2 года назад
add a sound under the door enter an id and make it play when you click the button basicly ** local sound = part1.*your soundeffect name** then under the open door function add this **sound:Play()
@shurixgame
@shurixgame Год назад
Hey! Can you make it turn green when clicked?
@Metigart890
@Metigart890 Год назад
Im using this tutorial to make a scp game
@weloveroblox345
@weloveroblox345 5 месяцев назад
ok but how do i open it back when im at the other side?
@sheep3993
@sheep3993 8 месяцев назад
dosnd work in the new version if rs
@_LuckyyYT
@_LuckyyYT 5 месяцев назад
yo i changed the code a little bit but i dont think its why its not working btw heres the code local part = game.Workspace.Part2 local button = game.Workspace.Button2 local detector = game.Workspace.Button2.ClickDetector detector.MouseClick:Connect(function() part.Transparency = 1 part.CanCollide = false end)
@user-mr5ke5jg4y
@user-mr5ke5jg4y 3 дня назад
Well... you fixed it BUT NOW IT DOESENT CLOSE
@ericissoreal
@ericissoreal Год назад
what if i want to have several doors functioning at the same time in the same game?
@pite414
@pite414 6 месяцев назад
I think u just must rename doors and button
@StealthKey
@StealthKey 2 года назад
will it work if the door is a model with multiple parts instead of just a part
@ezoca8272
@ezoca8272 2 года назад
yes there is no way to open a 1 part door
@ProstoLegendS
@ProstoLegendS 7 месяцев назад
Please tell me How to do timer? Like a U click button and after 20 secs it will Lock
@G102thegoofball
@G102thegoofball 10 дней назад
Change the number on wait(2) to wait(20) or whatever you want, and there you go!
@sergiuarhip178
@sergiuarhip178 Год назад
Can you please tell me where to put the script? i didnt understand where to put it.
@ezoca8272
@ezoca8272 Год назад
its just inserted into workspace
@abdose8789
@abdose8789 2 года назад
Team only pls
@XAXAXAXAXAAXAXAXAAXAXAAX
@XAXAXAXAXAAXAXAXAAXAXAAX Год назад
Thank you it works but you forgot to insert click detector to the button
@MrNick985
@MrNick985 11 месяцев назад
That's why it wasn't working.
@XAXAXAXAXAAXAXAXAAXAXAAX
@XAXAXAXAXAAXAXAXAAXAXAAX 11 месяцев назад
Ik
@joeperchance
@joeperchance Год назад
this wont work
@GuruleGaming
@GuruleGaming Год назад
Can you put the scripts in decs
@ezoca8272
@ezoca8272 Год назад
It is in the decs
@abdose8789
@abdose8789 2 года назад
Team onlt
@carliscool0342
@carliscool0342 2 года назад
yo
@ezoca8272
@ezoca8272 2 года назад
hello
@WoodrowsAmazingWorld
@WoodrowsAmazingWorld 2 месяца назад
didn’t work
@simondiamant2996
@simondiamant2996 3 месяца назад
ofc this dosent work
Далее
[ PS] 100+ Hit Shockwave combo
0:56
Просмотров 14 тыс.
Glitches for EVERY Brawler!
10:06
Просмотров 229 тыс.
Roblox Studio - How to make a game
0:16
Просмотров 1,5 млн
Seek Kit - roblox studio ( read desc )
1:58
Просмотров 105 тыс.
Making FNAF In Roblox
12:12
Просмотров 692 тыс.
МИНИ-ИГРЫ В STANDOFF 2 #shorts
7:0:46
Просмотров 169 тыс.
😱ЭТО ЧТО РОФЛ КАКОЙ-ТО?
16:55
Просмотров 211 тыс.