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: Change Boolean value OnTouch

Previous Thread :: Next Thread 
beastlybuilder33 is not online. beastlybuilder33
Joined: 27 Nov 2008
Total Posts: 7
26 Mar 2013 12:24 PM
trying to figure out how to change the name of a boolean value on touch.
I have a button that generates a model on touch, and that already works, but now i want to add to that the ability for the on touch to change a Boolean value that is inside the model. Obviously this would have to happen after the model exists, so i inserted it into the script after the model is generated, and the model is generated, but the boolean value does not change. This is the line that i added.

hit.Parent.Name=Script.Parent.Parent.Parent.Model.StringValue.none.Name

The script is in a part called head, in a model of the button which is grouped in a model with the model that is being generated. So script.Parent.Parent.Parent is the parent of the model being generated. and the boolean value is inside a string value, inside the model. I want to change the boolean value name from none to the name of the player that touched the button

Thanks,
Beastlybuilder33

Report Abuse
mylifeis2cooldlol is not online. mylifeis2cooldlol
Joined: 08 Mar 2011
Total Posts: 874
26 Mar 2013 12:26 PM
Switch that statement around.
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