When I press the e key and touch the crate, the crate should disappear but it doesn't work. There is nothing in the output and there are no blue or red lines in the script (as you can see.) Please help me as I have tried everything to fix it and it is a major obstacle in my ability to program LUA. I'm sorry if this post was too vague but I have a feeling the problem might be a plugin.
COMMUNITY QUESTION
How to fix Function Problem With 'if' 'then' Statement?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
i think when you move using wasd the thing breaks? This time touch the crate and press e
You should use User Input Service or Context Action Service to get user input