IntValue not being created

It is one of the worst ways of creating an object via a script. You are getting the parent first.