What's the difference between 'type' and 'typeof'?
✓ ANSWER ACCEPTED
What's the difference between 'type' and 'typeof'?
1 answer
✓ Accepted answer
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".
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Thanks man, i needed this too lol
np
thanks dude, I appreciate it