Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What's the difference between 'type' and 'typeof'?

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".

3 comments

0

Thanks man, i needed this too lol

0

np

0

thanks dude, I appreciate it

This discussion is preserved as it was. New answers, comments, and votes are closed.