Roblox Scripting Tutorial: Making Open/Close Door Buttons

Channel:
Subscribers:
2,110
Published on ● Video Link: https://www.youtube.com/watch?v=nfYWzAbd1zY



Roblox
Game:
Roblox (2006)
Category:
Tutorial
Duration: 10:29
14,455 views
83


In this tutorial, we'll learn about variables, MouseClick, and onTouched functions.

Music by C418 and I!

Script:
local door = script.Parent.Parent.Door

function onTouched(p)
door.CanCollide = true OR false
door.Transparency = 0 OR .8
end

script.Parent.ClickDetector.MouseClick:connect(onTouched)

Want to help make this channel better? You can donate to me via Roblox Robux!
http://ow.ly/En9x30hdeWy

Be sure to follow me on Twitter after rating, commenting, and subscribing!
@Rrrrry2468







Tags:
Rrrrry123
Rrrrry2468
Twitter
Roblox
Scripting
Tutorial
Lua
Making
Open
Close
Door
Button
Click
Touch
OnTouched
MouseClick
Brick
Block
C418
Scripting Language (File Format Genre)
Programming
CanCollide
Properies
Variables
Functions



Other Statistics

Roblox Statistics For RyGuyGaming

At present, RyGuyGaming has 459,946 views spread across 106 videos for Roblox, and roughly a days worth of Roblox videos were uploaded to his channel. This makes up 17.76% of the content that RyGuyGaming has uploaded to YouTube.