Could you please post a complete example of what you did? And if you can, reduce you problem to something minimal like I did in my earlier post: for example, Jump probably has nothing to do with you problem, and you could just keep the logic of your code, but not actually call Jump.
There is a relatively complete list of advice that you might find useful to express your problem in a way that will help us help you more effectively: Please read: make it easier to help you
By the way, did you try the example I gave you? Did it work?