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

How i do a nuclear reactor script?

1 answer

Not going to give you the script because that is for you to learn, but I will explain the process you need to go through. If you don't know anything in here, Google it and if you're still confused, ask questions here.

First, you're going to want to be able to have buttons to control the temperature/pressure. You can link the in game buttons to a script using a click detector and use the click detector click event to raise / lower the temp/pressure depending which button the player clicked.

The temp/pressure will be variables inside the code.

When the button is clicked, update the temperature/pressure variables then update the pressure in game however you want to display it to the player.

Have an if statement checking how high the variables are and update the game accordingly.

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