|
| 24 Mar 2012 12:50 PM |
you = "PersonB" -- Change this to your name.
function onTouched(hit)
if hit.Parent.Name == you then --If "you" touched the door, the next code will activate. script.Parent.Transparency = 0.5 script.Parent.CanCollide = false print("User Approved!") wait(2) script.Parent.Transparency = 0 script.Parent.CanCollide = true else print("No.") --If whatever touched wasn't "you", the output will display "No." end --ends the "if" statement. end --ends the function.
script.Parent.Touched:connect(onTouched) --Calls "onTouched" when touched.
|
|
|
| Report Abuse |
|
|
|
| 24 Mar 2012 01:06 PM |
Don't posts your scripts just because you want to give them to other people. Use this forum:
http://www.roblox.com/Forum/ShowForum.aspx?ForumID=17 =
if you want to show off.
This is a forum for HELPING Only = |
|
|
| Report Abuse |
|
|
|
| 24 Mar 2012 01:15 PM |
| I'm only posting scripts for the people who need them not to show off just for helping. |
|
|
| Report Abuse |
|
|