What's the difference between 'type' and 'typeof'?
type
is a Lua function and returns whether something is a booleon, a number, a string, a function, a CFunction, a userdata, a table, or nil. typeof
is part of the Roblox API and does the same thing, except it recognizes Roblox userdatas (such as a Player
or Part
) as types as well and returns their type name rather than simply "userdata".