|
| 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 |
|
|
| 26 Mar 2013 12:26 PM |
| Switch that statement around. |
|
|
| Report Abuse |
|