Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you make an Energy Bar GUI?

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.

3 answers

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

1 comment

0

I don't think so

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.

1 comment

0

Where do I put in something something something?

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

This discussion is preserved as it was. New answers, comments, and votes are closed.