This script checks for banned text but it always returns false?
Asked by
7 years ago Edited 7 years ago
EDIT: It turns out it only DOESN'T work if the text contains spaces
I am making a SB game, and for the script executor it has a function that checks for banned functions. It doesn't seem to work. Could anyone help me?
17 | checkIfBanned = function (text) |
19 | if string.find(string.lower(text),string.lower(banned [ i ] )) ~ = nil then |
20 | warn( '__Error: Code contains banned text' ) |
30 | print (checkIfBanned( "Teleport Service" )) |
It's probably something obvious and I'm just stupid. Any help would be appreciated.