|
| 11 Jul 2013 05:13 PM |
Reactor = game.StarterGui.GuiMain.Frame.Textbox if Reactor.Value = "Value Number is supposed to be here but I dont know how to put" then Reactor.Text = Value |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 05:14 PM |
Also is this correct? function MD1(x,y) game.StarterGui.GuiMain.Frame.Textbox.Value = +1 end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 11 Jul 2013 05:25 PM |
What type of value is "Reactor"?
Correction:
function MD1(x,y) game.StarterGui.GuiMain.Frame.Textbox.Value = game.StarterGui.GuiMain.Frame.Textbox.Value +1 end |
|
|
| Report Abuse |
|
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 11 Jul 2013 05:33 PM |
| So how does it have a value then? |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 05:36 PM |
| The value is inside the textbox. |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 11 Jul 2013 05:41 PM |
| Is the value a Boolean, or an int, or a string, or a 3value? |
|
|
| Report Abuse |
|
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
|
| 11 Jul 2013 05:54 PM |
| But i have another script that adds one if you press it |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 06:19 PM |
Reactor = game.StarterGui.GuiMain.Frame.Textbox if Reactor.Value.Value == number then
Assuming that the name of the value inside your Textbox is named 'Value' |
|
|
| Report Abuse |
|
|
Kevnn22
|
  |
| Joined: 10 May 2013 |
| Total Posts: 295 |
|
|
| 11 Jul 2013 06:22 PM |
If statements need double = == :D
"For every minute you are sad, you lose sixty seconds of happiness." |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 06:23 PM |
| That's not the only problem kevn. |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 08:54 PM |
Reactor = game.StarterGui.GuiMain.Frame.Textbox if Reactor.Value.Value == number then Reactor.Text = number
Is that correct? |
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 11 Jul 2013 09:02 PM |
Reactor = game.StarterGui.GuiMain.Frame.Textbox number = Reactor.Value.Value-- I would not recommend leaving a Value named "Value"
if Reactor.Value.Value == number then Reactor.Text = "..number.." |
|
|
| Report Abuse |
|
|
Kevnn22
|
  |
| Joined: 10 May 2013 |
| Total Posts: 295 |
|
|
| 11 Jul 2013 09:28 PM |
| @thedestroyer I picked the first problem that came up at just glancing it :P Even that little mistake will stop the whole script xD |
|
|
| Report Abuse |
|
|