Okay to sum up my problem I'm making a fully operational AI on roblox to help out on studio when you have questions and stuff but for some reason it's not working
bosswalrus
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg, player) if msg:lower():sub(1,10) == "bosswalrus" then returnmsg = '' am = msg:sub(12):lower() if am == "hello" then print["Hello]" end end) end)
print["Hello]"
should probably be print"[Hello]"
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg, player) if msg:lower():sub(1,10) == "bosswalrus" then returnmsg = '' am = msg:sub(12):lower() if am == "hello" then print("Hello") end end) end)