Ok, well, I am trying to do a command in table thing where when you chat, it checks to see if any of the commands in the commands table match the chat, but it doesn't even try searching the table, just breaks at that point.
local Commands = {
Message = {Text=Prefix.."sm",Module=IM.Message,HasRecipt=false,HasMessage=true},
}
Stuff later...
game.Players.PlayerAdded:connect(function(Player)
print("player")
Player.Chatted:connect(function(Chat)
print("chat")
for i = 1, #Commands do
print("checking")
end
end)
end)
Tried this too...
game.Players.PlayerAdded:connect(function(Player)
print("player")
Player.Chatted:connect(function(Chat)
print("chat")
for i,v in ipairs(Commands) do
print("checking")
end
end)
end)
It stops at "chat" and doesn't print "checking".

1 comment
Thank you! It works now!