But when I run the program, it says entity does not exists.
Most likely this is because your LoadMesh() commands failed. Make sure that all of the files are located in the same folder (which you said they were) and make sure they are spelled correctly.Like I said, the LoadMesh command must be failing although I don't know why. Did you try isolating to see if it's only one of the meshes that don't load or both?