Created prefab follows player instead of being fixed to the world

The code you provided does not indicate any such behavior, the problem must be somewhere else in your code.
Also, please use codetags: