CoreScript Error

I tried using the exact same script and it works for me, strange.