what is better to use
if script.Parent.[ValueName].Value = 1 then
-- do something end
elseif script.Parent.[ValueName].Value = 2 then
-- do something end [POSSIBLE}END}IDK]
or
use a bool value and do this
what is better to use
if script.Parent.[ValueName].Value = true then
-- do something end
elseif script.Parent.[ValueName].Value = false then
-- do something end [POSSIBLE}END}IDK]
Booleans return true or false. Integers return whole numbers.
Booleans are the right choice.
Also, use "==" and not "=". You should use double "=" for conditional statements and one "=" for stuff like changing values of variables/values.