How to get value type in table

Soo, i really wan’t to make pet system and i need help with table, i need to create a if condition that detects when value is string or when value is number or boolean

IG something like

if typeof(VALUE) == "String" then

elseif typeof(VALUE) == "Boolean" then

elseif  typeof(VALUE) == "Number" then

end

yea, it doesn’t work, i make it in for i loop

if typeof(VALUE) == string then

elseif typeof(VALUE) == boolean then

elseif  typeof(VALUE) == number then

end

maybe with them NOT being put as strings or something

1 Like