Hey, i’m making a game that takes place in Mars, and at the moment i need to make an oxygen system.
My idea was to use an intValue to represent oxygen and when it gets to 0 the player dies.
The reason i chose the intvalue is because it would make easier for me to make “Safe areas” where your oxygen never goes down, and a space suit that makes your oxygen go down slower.
But here comes the hard part: You can probably tell it would look better if it had the oxygen bar falling instead of numbers, and i want to do that, but i don’t know how i can make it so the frame follows the number of the intValue.
If anyone could help me to make this it would help a ton, it also does not need to use intValues, it’s just cause it’s easy ut it’s not necessary, thanks
3 Likes
You can make IntValue named “Oxygen” and script with some requirements will wasting oxygen or as you said in “Safe Areas” will give to player Oxygen
Yes, that’s the easy part as i said and i already know how to do that but the help i need is with the GUI
What you mean ?
I mean an oxygen gui where you can see your current oxygen but instead of numbers you can see an oxygen bar with frame and tween service
Yeah that’s probably going to help, thanks
1 Like