generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Remove outlines from a model

Previous Thread :: Next Thread 
lolb3 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
20 Sep 2013 05:47 PM
Your point of your long script?
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
20 Sep 2013 05:47 PM
It's not recursive
Report Abuse
NiceChristianDude is not online. NiceChristianDude
Joined: 11 Jan 2012
Total Posts: 1802
20 Sep 2013 05:48 PM
^
Report Abuse
tallconnor123 is not online. tallconnor123
Joined: 23 Nov 2010
Total Posts: 3235
20 Sep 2013 05:48 PM
lighting
outline []

done
Report Abuse
jeannerett is not online. jeannerett
Joined: 29 Apr 2009
Total Posts: 171
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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image