How to make roblox's intellisense recognize my function's argument as a className as it recognizes in IsA () and GetService ()?

image

2 Likes

Do you want the code to recognize a object className? You can just reference the property:

if v.ClassName == "Part" then
--idk
end

If you want Roblox’s intellisense specifically to do this, you would have to explore strict types which was recently implemented, though I am unsure whether they fully support this. In any case, this is usually fixed if you used other IDEs like visual studio code where you can download extensions like Roblox LSP.

yes, i want the code to recognize any object className, like function IsA do