You need to tell us which line the errors are on.
In the second bit of code, I ran it in debug mode, and it said just like stayne, that Obastacle did not exist, so used entity type to make the cone I have up there, of the obstacle type. It still did not work.
Another thing. This problem did not happen until I put the cone in there. When I take out the player,obstacle code, it wants me to take out player,ground.
I am sorry for being so helpless...