My game is a Dragon Ball Quiz and the first door is supposed to open when you say "dragon ball" but I also want it to open if you say "dragonball" and when I tried to edit it for more than one phrase, the line for it went red. Here's the entire script: door = script.Parent --this is the door
function onChatted(msg, recipient, speaker)
-- convert to all lower case
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (msg == "dragon ball", "dragonball") then --This line turned red when I added , "dragonball"
door.CanCollide = false
door.Transparency = 0.7
wait(5)
door.CanCollide = true
door.Transparency = 0
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end
game.Players.ChildAdded:connect(onPlayerEntered)
Any help would be appreciated, if it can't be fixed, it's ok I can just have it say one thing. :)

1 comment
Thank you greatly Star! :D