peyquinn
|
  |
| Joined: 23 Jul 2009 |
| Total Posts: 2486 |
|
|
| 19 Nov 2011 07:21 PM |
I need this script to change all of the decals. It only changes one.
script.Parent.Touched:connect(function(pa) if pa.Parent and game.Players:playerFromCharacter(pa.Parent) and pa.Name=="Head" then script.Parent.Decal.Texture="_second_texture_" end end)
|
|
|
| Report Abuse |
|
|
peyquinn
|
  |
| Joined: 23 Jul 2009 |
| Total Posts: 2486 |
|
| |
|
peyquinn
|
  |
| Joined: 23 Jul 2009 |
| Total Posts: 2486 |
|
| |
|
peyquinn
|
  |
| Joined: 23 Jul 2009 |
| Total Posts: 2486 |
|
| |
|
|
| 20 Nov 2011 07:49 PM |
script.Parent.Touched:connect(function(pa) if pa.Parent and game.Players:playerFromCharacter(pa.Parent) and pa.Name=="Head" then for _, v in pairs(script.Parent:children()) do if v.Name == "Decal" and v:IsA("Decal") then v.Texture = "texture" end end end end) |
|
|
| Report Abuse |
|
|
peyquinn
|
  |
| Joined: 23 Jul 2009 |
| Total Posts: 2486 |
|
| |
|