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 » Scripters
Home Search
 

Srisly?

Previous Thread :: Next Thread 
88GB is not online. 88GB
Joined: 03 Oct 2011
Total Posts: 1465
15 Mar 2015 03:55 PM
This 1 line o' code will NOT work.

script.Parent.Parent.SelectedModel.Value.Name = script.Parent.NameBox.Text


'SelectedModel' is a fulfilled ObjectValue (It's value isn't nil)



'NameBox' is a TextBox.

No output. The other part works. Ugh
Report Abuse
masternick95363 is not online. masternick95363
Joined: 04 Feb 2012
Total Posts: 292
15 Mar 2015 03:58 PM
To get this correct your trying to make SelectedModel = the NameBoxes text?
Report Abuse
88GB is not online. 88GB
Joined: 03 Oct 2011
Total Posts: 1465
15 Mar 2015 03:58 PM
Yup.
Report Abuse
88GB is not online. 88GB
Joined: 03 Oct 2011
Total Posts: 1465
15 Mar 2015 03:59 PM
Wait no... I'm trying to change it's value's name to it's text.
Report Abuse
masternick95363 is not online. masternick95363
Joined: 04 Feb 2012
Total Posts: 292
15 Mar 2015 04:00 PM
Try this

script.Parent.Parent.SelectedModel.Value.Name = tostring(script.Parent.NameBox.Text)
Report Abuse
88GB is not online. 88GB
Joined: 03 Oct 2011
Total Posts: 1465
15 Mar 2015 04:02 PM
The text is already formatted as a string.
Report Abuse
masternick95363 is not online. masternick95363
Joined: 04 Feb 2012
Total Posts: 292
15 Mar 2015 04:04 PM
@88Gb

hmm Well im not sure what the problem is lol it seems so smimple but the smallest mistakes make a script not work lol good luck with this on buddy im not sure what to do :)
Report Abuse
88GB is not online. 88GB
Joined: 03 Oct 2011
Total Posts: 1465
15 Mar 2015 04:07 PM
Lololol I have no idea, it works if I change it's text to a string up front, like this:


Name = "lead"

And it worked e.e
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
15 Mar 2015 05:09 PM
Full script?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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