Daanni
|
  |
| Joined: 21 Mar 2010 |
| Total Posts: 423 |
|
|
| 29 Dec 2013 08:44 PM |
For example, (this is in a localscript) game.Players.LocalPlayer.Character.Right Arm.Transparency = 1 It doesn't work cause there's a space. (Please note that I cannot rename the part) How do I change it's tranpsrency?
"Why hasn't anyone invented edible birthday candles yet?" |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 08:45 PM |
| game.Players.LocalPlayer.Character["Right Arm"].Transparency = 1 |
|
|
| Report Abuse |
|
|
CrniOrao
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 2274 |
|
|
| 29 Dec 2013 08:45 PM |
| game.Players.LocalPlayer.Character["Right Arm"].Transparency = 1 |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 08:47 PM |
@CrniOrao You copy mai script |
|
|
| Report Abuse |
|
|
brianush1
|
  |
| Joined: 12 Sep 2009 |
| Total Posts: 90 |
|
|
| 29 Dec 2013 08:48 PM |
| This is the best, in my opinion: game.Players.LocalPlayer.Character:findFirstChild'Left Arm'.Transparency=1 |
|
|
| Report Abuse |
|
|
CrniOrao
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 2274 |
|
| |
|
|
| 29 Dec 2013 08:52 PM |
:O
worksapce['thing with spaces']:Destroy()
THIS IS LIKE FINDFIRSTCHILD?? THIS HELPS SO MUCH |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 29 Dec 2013 08:53 PM |
| Not exactly, if you use it the script will assume that it is there and not check to see if it is there. |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Dec 2013 08:56 PM |
@brianush1
you forgot to put parentheses around the string in :findFirstChild(string) :) |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2013 08:57 PM |
@broccoli7040 You don't haz to do that what he did forget is to capitalize that f. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Dec 2013 08:57 PM |
Only use FindFirstChild if it might not exist or the name of the child is the same as a name of a property of the object.
part["Name"]:Destroy() won't work since part["Name"] will be a string part:FindFirstChild("Name"):Destroy() on the other hand will destroy the part (assuming it exists) |
|
|
| Report Abuse |
|
|