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 » Scripting Helpers
Home Search
 

Re: Smoothplastic removes studs?

Previous Thread :: Next Thread 
Dwarlon is not online. Dwarlon
Joined: 18 Jul 2013
Total Posts: 4604
10 Aug 2014 06:36 PM
Make place

make parts smoothplastic

play game

studs/welds invisible

help pls
Report Abuse
notfruit is not online. notfruit
Joined: 21 Sep 2012
Total Posts: 1386
10 Aug 2014 06:38 PM
Make a script that says

For _, child in pairs(Workspace:GetChildren()) do
Child.Parent = nil
End

And save changes :)
Report Abuse
Dwarlon is not online. Dwarlon
Joined: 18 Jul 2013
Total Posts: 4604
10 Aug 2014 06:42 PM
Funny thing is is that you wrote that wrong, lol
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 Aug 2014 06:43 PM
This isnt even about scripting, nor is it an actual problem.
Report Abuse
Dwarlon is not online. Dwarlon
Joined: 18 Jul 2013
Total Posts: 4604
10 Aug 2014 06:45 PM
maybe i should have reworded my question:

Is smoothplastic supposed to remove studs/welds
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 Aug 2014 06:46 PM
Obviously, its a completely different surface type
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
10 Aug 2014 06:52 PM
Here run this:

Smooth = function(targ)
for _, v in pairs (targ:GetChildren()) do
if v:IsA("BasePart") then
v.TopSurface, v.BottomSurface, v.FrontSurface, v.BackSurface, v.RightSurface, v.LeftSurface = 10,10,10,10,10,10
else
Smooth(v)
end
end
end;
Smooth(workspace)

--Note that this may not work because I'm testing a recursive way of iterating. If it doesn't find any BasePart, then it iterates through let's say a model and runs it idk
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
10 Aug 2014 07:07 PM
Sensei, SmoothPlastic is a texture, and Studs is a SurfaceType.

It's not supposed to, but for some reason it does. Try using Metal, whhich is the most similar.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 Aug 2014 07:08 PM
Oh
wat
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
10 Aug 2014 07:09 PM
You can have a plastic brick with studs on it, just like you can have welds on a SmoothPlastic brick.

They're two separate properties.
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
10 Aug 2014 07:42 PM
ROBLOX added support for a legacy feature, which is a miracle in itself. You can't expect much. Though I find this annoying as well.
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
10 Aug 2014 08:12 PM
"For _, child in pairs(Workspace:GetChildren()) do
Child.Parent = nil
End"

It would be:

for _,child in pairs(workspace:GetChildren()) do
child.Parent:Destroy()
end

Also that would result in error because you cannot destroy terrain, so this is an easy fix:


for _,child in pairs(workspace:GetChildren()) do
pcall(function()
child.Parent:Destroy()
end)
end

or:

for _,child in pairs(workspace:GetChildren()) do
if not child:IsA"Terrain" then
child.Parent:Destroy()
end
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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