generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How do I make this work?

Previous Thread :: Next Thread 
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
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
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
11 Jul 2013 05:14 PM
Also is this correct?
function MD1(x,y)
game.StarterGui.GuiMain.Frame.Textbox.Value = +1
end
Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
11 Jul 2013 05:16 PM
Help?
Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
11 Jul 2013 05:18 PM
Scripting helpers?
Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
11 Jul 2013 05:20 PM
Wow sh is really inactive
Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
11 Jul 2013 05:25 PM
Bump
Report Abuse
smiley599 is not online. 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
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
11 Jul 2013 05:31 PM
Reactor is a variable
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
11 Jul 2013 05:33 PM
So how does it have a value then?
Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
11 Jul 2013 05:36 PM
The value is inside the textbox.
Report Abuse
smiley599 is not online. 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
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
11 Jul 2013 05:43 PM
It's a number value
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
11 Jul 2013 05:50 PM
if Reactor.value == 1

Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
11 Jul 2013 05:54 PM
But i have another script that adds one if you press it
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
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 is not online. 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
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
11 Jul 2013 06:23 PM
That's not the only problem kevn.
Report Abuse
thetommygun is not online. thetommygun
Joined: 21 Mar 2011
Total Posts: 6159
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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image