How to make an Automatic Door on Roblox Studio

Опубликовано: 17 Октябрь 2024
на канале: StudioTutorialzYT
7,006
162

---- ★ Songs ★ ----

Intro Song Link: chill anthem - BROCKBEATS: https://www.youtube.com/watch?v=kubRG...

Outro Song Link: Sweetest - Murat Uslu: (The song got deleted for some reason so here is the link to his youtube channel): https://www.youtube.com/channel/UCfj-...

Background Music: LuKremBo - boba tea: https://www.youtube.com/watch?v=fROFG...

---- ★ Profile Link! ★ ----

https://web.roblox.com/users/97907289...

---- ★ Script ★ ----

script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then


while true do

local door = script.Parent.Parent:FindFirstChild("Door")

door.Transparency = 1
door.CanCollide = false

wait (1)

door.CanCollide = true
door.Transparency = 0
return

end
end
end