[ROBLOX Tutorial] – Door and Key SCRIPT



[ROBLOX Tutorial] – Door and Key SCRIPT

[ROBLOX Tutorial] - Door and Key SCRIPT

This time I will show you how to make a door that opens when you use a key. Not building, only scripting this time.

● Subscribe: https://www.youtube.com/channel/UCAxoIRFhLUUcm3r3dGxHAew?sub_confirmation=1

● Tutorials: https://www.youtube.com/playlist?list=PLlgQl2_N0U84OAZmnlB-sjJBhYaJnOShD
● Speed Building: https://www.youtube.com/playlist?list=PLlgQl2_N0U87TYhUSqGGz4-rmj2xZtO4f
● Group: https://www.roblox.com/My/Groups.aspx?gid=2786701
● Twitter: https://twitter.com/Eppobott

SCRIPT:

script.Parent.Touched:connect(function(p)
if p.Parent.Name == “Key1” then — Instead of key1, type the name of your tool
script.Parent.Transparency = 0.5
script.Parent.CanCollide = false
wait(1)
script.Parent.Transparency = 0
script.Parent.CanCollide = true
end
end) #Roblox #RobloxDEV #RobloxStudio #Tutorial #Building #Scripting

Comments are closed.