So, this is what I want to do but I have no idea on how I could do it efficiently. Let me give a scenario similar to mine. Say you walk up to a machine to repair. When you touch it, a Gui pops up. When you press "e" the Gui counts down from 5 - 1. When you walk away, it resets unless it was repaired. Now there are hundreds of these machines and making an individual value for every one of these is absurd. The gui is cloned from the machine to the players playergui from a script in the model. I already know how to do all of this, but how would I make it to where if you walked away from the machine (the gui would destroy itself.) how would I make it to where it would save itself?
My recommendation is this: Have an intValue
inside each machine called "repairTime" or something similar. This will be how you save the time.
OR if you don't want to do the work of putting a value inside each machine (hundreds you say?) what you can do is just have a function inside the script to do this when you walk up to the machine:
Does this make sense?