Also, make sure the entity you are attaching a script to is set to dynamic. They are static by default.
And, by your script you are going to be setting the entity position to the player's position at the time the script is initialized, which happens only once per entity. So, this script will continuously set the entity to the player position that was detected when this entity initialized. If the player moves then this entity will still move to the original player's position. If you want the entity to continuously move to the player's "current" position then you need to get the player's current values in main, not in init.
System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085