Am I doing this wrong?
02 | [ "jameswowsmile" ] = true ; |
03 | [ "leslielol1234" ] = true ; |
06 | game.Players.PlayerAdded:connect( function (player) |
07 | if group [ player.Name ] then |
08 | player.Chatted:connect( function (msg) |
17 | function onChatted(msg, recipient, speaker) |
21 | local source = string.lower(speaker.Name) |
22 | msg = string.lower(msg) |
24 | if (msg = = "FloorClose" ) then |
25 | door.CanCollide = false |
32 | function onPlayerEntered(newPlayer) |
33 | newPlayer.Chatted:connect( function (msg, recipient) onChatted(msg, recipient, newPlayer) end ) |
36 | game.Players.ChildAdded:connect(onPlayerEntered) |
This is supposed to give two players (Jameswowsmile and Leslielol1234) permission to say a command that would make a floor disappear when you say "FloorClose". I tested this and it didn't work. What did I do wrong?