|
| 18 Jul 2015 02:54 PM |
what i need is a script that finds all the parts in workspace that are a certain color, then moves them all to lighting
sorry i'm not good at scripting |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 02:56 PM |
for i,v in pairs (game.Workspace:GetChildren()) do if v.BrickColor = BrickColor.new("BrickColorHere") then v.Parent = game.Lighting end end Simple enough :3 if siggy == false then print"nooo :(" end |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jul 2015 03:00 PM |
what is the output? if siggy == false then print"nooo :(" end |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jul 2015 03:02 PM |
OOHHHHHHH change: if v.BrickColor = BrickColor.new("BrickColorHere") then to if v.BrickColor == BrickColor.new("BrickColorHere") then if siggy == false then print"nooo :(" end |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2015 03:03 PM |
i did that before and i got BrickColor is not a valid member of Camera and it still didn't work lemme try something |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jul 2015 03:04 PM |
OK THIS WILL WORK for i,v in pairs (game.Workspace:GetChildren()) do if v:IsA("BasePart") then if v.BrickColor == BrickColor.new("BrickColorHere") then v.Parent = game.Lighting end end end
if siggy == false then print"nooo :(" end |
|
|
| Report Abuse |
|
|