|
| 25 Mar 2014 02:39 PM |
[Background info= Block name = Door, Block Transparency = .5]
admins = {"SonofNeptune", "xTehx", "pandyjj", "TeheyoMama"}
function isAdmin(name) for i,v in pairs(admins) do if name:lower() == v:lower() then return true end end return false end
local door=script.Parent game.Players.PlayerAdded:connect(function(p) if isAdmin(p.Name) then p.Chatted:connect(function(msg) if msg=={"Open door", "open door", "Open Door", "OPEN DOOR"} then door.Transparency=.5 wait (.1) door.Transparency=.6 wait (.1) door.Transparency=.7 wait (.1) door.Transparency=.8 wait (.1) door.Transparency=.9 wait (.1) door.Transparency=1 door.CanCollide=false elseif msg=={"Close door", "close door", "Close Door", "CLOSE DOOR"} then door.CanCollide=true door.Transparency=.9 wait (.1) door.Transparency=.8 wait (.1) door.Transparency=.7 wait (.1) door.Transparency=.6 wait (.1) door.Transparency=.5 end end) end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Apr 2014 03:50 PM |
| So far everyone I have asked has said that they cant find anything wrong with it and that it should work. |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2014 03:50 PM |
"if msg=={"Open door", "open door", "Open Door", "OPEN DOOR"} then"
wot.
#nerdsunited |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 14 Apr 2014 03:50 PM |
if msg=={"Open door", "open door", "Open Door", "OPEN DOOR"} then
What. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 14 Apr 2014 03:51 PM |
| that ninja ._. and its scary how we posted almost the same thing ._. |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2014 03:56 PM |
Ew what is this:
if msg=={"Open door", "open door", "Open Door", "OPEN DOOR"} then
It should be:
if msg:lower() == "open door" then |
|
|
| Report Abuse |
|
|
|
| 15 Apr 2014 02:55 PM |
| Thanks so much. I know what to do now and can finish what I was doing. Thanks again. |
|
|
| Report Abuse |
|
|