Variable "Tables"

Since I make a “table”, for example, blocked words, but instead of doing one by one, I wanted to make a variable that already specified all blocked words? :

local Blocked_Words ={
“Blah”,
“Bleh”,
}

1 Like

What are you asking? What are you trying to do? This post is super vague and I have no idea what you’re trying to say.

1 Like

Roblox has already made something that blocks all bad words for you as well as a guide. Also, if you’re making a chat system you must use this or else your game will get shut down.

Yes, you can have a table store multiple values. What are you asking though? What are you confused by?

1 Like

This, a table that can store several values. how I do?

You showed how to do it in your original post. You can just do

local blockTable = {"value1", "value2", "etc"}

You can access the values by doing blockTable[1], (which would be “value1”) blockTable[2], (“value2”) and so on. If you want to check if any of them are part of a message, you can loop through a table using a generic for loop.

3 Likes

Many months later, I already solved the problem, but your answer has nothing to do, that was just an example.