You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
if the value string isn’t in the mai table then it should stop or do an action
- What is the issue? Include screenshots / videos if possible!
but instead it prints everything in the table as “a” x times
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Only this, idk anything else…
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local mai = { }
local omg = {
["Okay"] = true;
["Not Okay"] = false;
["Maybe Okay"] = true;
}
for key, value in pairs(omg) do
if value == true then
table.insert(mai, key)
end
end
for i2, val in pairs(mai) do
if game.Players.LocalPlayer.Character.StandMorph.StandSkin.Value ~= val then
print("a") -- it's printing the one's that are true, I just want it to not do anything if the value isn't in the "mai" table
end
end