Can someone tell me how i can control a nuclear reactor form a control room that makes energy?. If temp raise too much and preasure too it can blow pulling up rods Will make temp and preassure raise u can check my map fully model by my here (i' modeling 8 years) https://www.roblox.com/games/3820598770/Chernobyl
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.

1 comment
https://scriptinghelpers.org/help/how-post-good-questions-answers