Will this work?

I just want to be clear, will this work? haven’t tried this way of instancing multiple values.
image

Nope, you need to do Type == for all arguments because if you don’t put it there it just checks if the value exists or not. The parentheses don’t help either.

1 Like

Guess, then I’ve to go the previous way then. Thanks again

No. You would need to run Type against each string individually; however, if you place these strings into a dictionary and tell the table whether or not they are toggled, you can achieve something similar.

local Types = {
	["Vault Door"] = true;
	["Industrial Door"] = true;
	["Security Gate"] = true
}

local Type = nil

if Types[Type] then
	-- Code will run if that Type is toggled on in the dictionary
end
1 Like

thanks for this information! I would love to use this somwhere.