lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 20 Sep 2013 05:46 PM |
g=workspace.WIJGuns:GetChildren() for j=1,#g do c=g[j]:GetChildren() for i=1,#c do if c[i].ClassName ~= "IntConstrainedValue" and c[i].ClassName ~= "LocalScript" and c[i].ClassName ~= "Script" and c[i].ClassName ~= "IntValue" then c[i].BackSurface = "SmoothNoOutlines" c[i].BottomSurface = "SmoothNoOutlines" c[i].FrontSurface = "SmoothNoOutlines" c[i].LeftSurface = "SmoothNoOutlines" c[i].RightSurface = "SmoothNoOutlines" c[i].TopSurface = "SmoothNoOutlines" end end end
Indenting is not done properly. Whatever. This script takes a child of a child and then takes their outlines and turns them off. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 20 Sep 2013 05:47 PM |
| Your point of your long script? |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
| |
|
| |
|
| |
|
|
| 20 Sep 2013 05:48 PM |
There was no point in that. Just do game.Lighting.Outlines = false pwn
~I don't suffer from insanity. I enjoy every minute of it. |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 20 Sep 2013 05:50 PM |
c=workspace:GetChildren() for i=1,#c do if c[i].BrickColor == BrickColor.new("Medium stone grey") then c[i].BackSurface = "SmoothNoOutlines" c[i].BottomSurface = "SmoothNoOutlines" c[i].FrontSurface = "SmoothNoOutlines" c[i].LeftSurface = "SmoothNoOutlines" c[i].RightSurface = "SmoothNoOutlines" c[i].TopSurface = "SmoothNoOutlines" end end
|
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 20 Sep 2013 05:51 PM |
| Jean the point of this is selecting a certain model then turning their outlines off while keeping everything elses, because I find the outline aesthetic rather pleasing on scenery but not on guns. |
|
|
| Report Abuse |
|
|
Merely
|
  |
| Joined: 07 Dec 2010 |
| Total Posts: 17266 |
|
|
| 20 Sep 2013 05:59 PM |
local enum = Enum.SurfaceType.SmoothNoOutlines
function removeOutlines(model) for _,obj in pairs(model:GetChildren()) do if obj:IsA("BasePart") then obj.BackSurface = enum obj.BottomSurface = enum obj.FrontSurface= enum obj.LeftSurface = enum obj.RightSurface = enum obj.TopSurface = enum end removeOutlines(obj) end end
removeOutlines(game.Selection:Get()[1]) |
|
|
| Report Abuse |
|
|