Is it possible to do type checking on attributes?
When players join the game I give them some attributes about the skin and character selected in the game and I wondered if it is possible to do typechecking
Is it possible to do type checking on attributes?
When players join the game I give them some attributes about the skin and character selected in the game and I wondered if it is possible to do typechecking
typechecking is a static typing and doing what you described would’ve required runtime checks (very bad) so instead you can just cast it:
part:GetAttribute("MyAttribute")::string
for example
Don’t forget that typechecking is about using types and not enforcing them.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.