CodeBot
|
  |
| Joined: 01 Jul 2011 |
| Total Posts: 439 |
|
|
| 15 Apr 2014 09:20 PM |
alright im trying to find the childadded in workspace and im trying to go edit his LeftLeg to be transparent.
game.Players.PlayerAdded:connect(function(player)
print(player.Name) name = player.Name game.Workspace.name.LeftLeg.Transparency = 1 --ERROR name is
end)
|
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 15 Apr 2014 09:22 PM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) char["Left Leg"].Transparency = 1 end)end)
--Your script had nothing to do with a childadded event. Learn your termonlogy. |
|
|
| Report Abuse |
|
|
CodeBot
|
  |
| Joined: 01 Jul 2011 |
| Total Posts: 439 |
|
|
| 15 Apr 2014 09:23 PM |
| soo many views, yet no replys |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
| |
|
CodeBot
|
  |
| Joined: 01 Jul 2011 |
| Total Posts: 439 |
|
|
| 18 Apr 2014 02:25 PM |
| ^ i said that while you were typing it. |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2014 03:04 PM |
game.Players.PlayerAdded:connect(function(player)
print(player.Name) name = player.Name Workspace:FindFirstChild(name)["Left Leg"].Transparency = 1
end)
|
|
|
| Report Abuse |
|
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 18 Apr 2014 03:06 PM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(chr) chr['Left leg'].Transparency = 1 end) end)
That said, a character isn't a variable, a boolvalue is. If you're looking for something that might not be there, or a value that's a child of another instance, do this.
value = path.to.instance:FindFirstChild("ValueName") blah = 0x42 .. 0x6C .. 0x61 .. 0x68 --Guess what this says?
Then to change it,
value.Value = blah
--Shira |
|
|
| Report Abuse |
|
|