If a person uses a knife or uses a sword, it takes out some energy. so if you use a knife, it takes 5 energy but if your energy is 4, 3,2,1 or 0, it wont let you use the knife. and tell me where to put the script.
You should be able to put the actual script anywhere as long as its in workspace. Does it include anything in the script that would involve a "Parent?"
Put this where the bug is.
--Something something something Energy = Energy -1 --Something something something
The energy will be -1 or -2 or -3 or -4 or -5. I think it's best to do it with a health bar. You can put the script... Anywhere... It doesn't matter. Unless the script is using...
example:clone().Parent = script.Parent ___________
See the script.Parent? I don't see anything wrong. Well because you didn't post the script so... I wouldn't know.
Closed as Not Constructive by OniiCh_n and User#2
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?