$ 0 0 Your code looks fine, I believe you are using the prefab of the spider instead of the one from the scene and that is causing the issue...