How can I have a IF variable == TYPE

Hi! I am trying to make an if statement that checks if a variable is a certain type of object like a part, folder, humanoid, or other. How can I do this?

-- Assuming thing is an Instance
if thing:IsA("Humanoid") then

if thing:IsA("BasePart") then


Try to use typeof() function. Also u can try to use type()

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.