# Help needed with script

**URL:** <https://forum.playcanvas.com/t/help-needed-with-script/1009>\
**Category:** Help & Support\
**Created:** [October 2, 2015, 12:14am UTC](https://forum.playcanvas.com/t/help-needed-with-script/1009 "2015-10-02T00:14:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmbushGames](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/ambushgames/32/4928_2.png) [@AmbushGames](https://forum.playcanvas.com/u/AmbushGames)\
**Post date:** [October 2, 2015, 12:14am UTC](https://forum.playcanvas.com/t/help-needed-with-script/1009/1 "2015-10-02T00:14:21Z")

</div>

I need to be able to move the box forward/backward depending on the direction. My script doesn’t do that. How can I change it so it will work?  
[https://playcanvas.com/editor/code/356115/input.js](https://playcanvas.com/editor/code/356115/input.js)
