Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make an Energy Bar GUI? [closed]

Asked by
istiyak 13
10 years ago

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.

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?

3 answers

Log in to vote
0
Answered by 10 years ago

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?"

0
I don't think so istiyak 13 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

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.

0
Where do I put in something something something? istiyak 13 — 10y
Log in to vote
-1
Answered by
KAAK82 16
10 years ago

PM me I dont have time to put up solutions here...