generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Script Used to work. Now it doesn't. Help please.

Previous Thread :: Next Thread 
SonofNeptune is not online. SonofNeptune
Joined: 11 Nov 2010
Total Posts: 16
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
HoodedEzio is not online. HoodedEzio
Joined: 02 Jan 2012
Total Posts: 3105
25 Mar 2014 06:33 PM
easy
Report Abuse
SonofNeptune is not online. SonofNeptune
Joined: 11 Nov 2010
Total Posts: 16
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
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
14 Apr 2014 03:50 PM
"if msg=={"Open door", "open door", "Open Door", "OPEN DOOR"} then"

wot.

#nerdsunited
Report Abuse
wazap is not online. 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 is not online. 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
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
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
SonofNeptune is not online. SonofNeptune
Joined: 11 Nov 2010
Total Posts: 16
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image