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)

2 comments
Thanks it worked, I don't know what was wrong but it worekd perfectly
With a square bracket, the script is expecting something else, not a string which will be printed.