Mjest
|
  |
| Joined: 06 Feb 2013 |
| Total Posts: 4 |
|
|
| 15 Feb 2013 03:15 PM |
Trying to make the clone a different color.
There is only one problem...
The clone has the same name and it is saying Workspace.Part Script:3: attempt to index global 'Part1' (a nil value) in the output here is my scripts
Clone:
brick = game.Workspace.Part1
brick:Clone().Parent = workspace wait (1) brick.BrickColor = BrickColor.new ("Really red")
Color change for clone
wait (2) if game.Workspace.Part1 then Part1.Name = Part Part.BrickColor = BrickColor.new ("Really black") end
post solution in comments. |
|
|
| Report Abuse |
|
|
Mjest
|
  |
| Joined: 06 Feb 2013 |
| Total Posts: 4 |
|
| |
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 15 Feb 2013 03:18 PM |
wait (2) if game.Workspace.Part1 then Part1.Name = "Part" game.Workspace.Part.BrickColor = BrickColor.new ("Really black") end |
|
|
| Report Abuse |
|
|