(For example)
player.Chatted:connect(function(msg) if(msg == "y" or "yy") then -stuff else if(msg == "n" or "nn") then -stuff else --stuff end end)
I tried doing that and it won't work. Any solutions/tips please?
If statements require a complete statement on every or
, or and
.
Also, you use else if
instead of elseif
, which would make it require an extra end.
Fixed:
player.Chatted:connect(function(msg) if msg == "y" or msg == "yy" then --stuff elseif msg == "n" or msg == "nn" then --stuff else --stuff end end)