Is it possible to check if a value is a table/array?
Let's say I want to send a value through a remote event, In the remote event how would I check if the value is a table or not?
There is a built in function called typeof(val)
that can be used for this purpose.
local x = 3 local y = {t=5} local z = nil print(typeof(x),typeof(y),typeof (z)) --> number table nil