Make games on your phone.
Get the app!
AndroidiOS
Castle
3 Comments
Next up
Automatic Filter. Script in comments. #script #blocked
local blocked = { " " -- Put here someone. example: AnonCapybara50 } local function isBlocked(username) if not username or username == "" then return false end local lname = string.lower(username) if string.find(lname, "^supreme_%d+") then return true end for _, name in ipairs(blocked) do -- Trim whitespace and check match local cleanName = string.match(name, "^%s*(.-)%s*$") if cleanName ~= "" and lname == string.lower(cleanName) then return true end end return false end function onCreate() local user = castle.getCurrentUser() local username = user and user.username or "" if isBlocked(username) then my.text.content = "BLOCKED" print("Blocked user: " .. username) my.variables.filter = 1 else my.text.content = "UNBLOCKED" print("Unblocked user: " .. username) my.variables.filter = 0 end end
Reply
no script in the comments
Reply
"scripts in comments" fart
Reply