|
| 08 Jan 2016 02:06 AM |
| I remember having the command but lost it when my computer was wiped out and forgot to save it. Does anyone know/remember it? The one where it would set all surfaces as a certain thing? If anyone could remember and tell me here, it would be appreciated. |
|
|
| Report Abuse |
|
|
| |
|
lokkut
|
  |
| Joined: 18 Mar 2009 |
| Total Posts: 1794 |
|
|
| 08 Jan 2016 11:21 AM |
| What do you mean "command"?.. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 11:30 AM |
function setPartSurfaceType(part, surfaceType, surfaces) --3rd argument defaults to all surfaces if not surfaces then surfaces = {} for _, normalID in pairs(Enum.NormalId:GetEnumItems()) do table.insert(surfaces, normalID.Name) end end --Set the selected (or all) surfaces to the given surface type for _, surface in pairs(surfaces) do part[surface.."Surface"] = surfaceType end end
setPartSurfaceType(game.Workspace.Baseplate, "Universal", {"Top", "Bottom"}) setPartSurfaceType(game.Workspace.Part, "Weld")
The above function takes 3 arguments: argument explanation part the part to be changed surfaceType the surface type that you want the part to have surfaces table with names of the surfaces that should be changed. Defaults to all faces
If you don't understand the explanation and examples of how to use it, just ask.
|
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 11:31 AM |
| Also, Roblox when TF are we getting post formatting?! |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 12:06 PM |
diremitten, it doesn't work. function setPartSurfaceType(part, surfaceType, surfaces) --3rd argument defaults to all surfaces if not surfaces then surfaces = {} for _, normalID in pairs(Enum.NormalId:GetEnumItems()) do table.insert(surfaces, normalID.Name) end end --Set the selected (or all) surfaces to the given surface type for _, surface in pairs(surfaces) do part[surface.."Surface"] = surfaceType end end
setPartSurfaceType(game.Workspace.Baseplate, "Universal", {"Top", "Bottom"}) setPartSurfaceType(game.Workspace.Part, "Weld")
Yes, it doesn't work. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 12:06 PM |
Sorry man I mean in the COMMAND bar.
|
|
|
| Report Abuse |
|
|
Rakonus
|
  |
| Joined: 19 Dec 2014 |
| Total Posts: 1004 |
|
|
| 08 Jan 2016 12:11 PM |
| Maybe use the getchildren then use the value of property material and say which one it is, or something like that. |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 12:38 PM |
| Someone MUST have the COMMAND. So annoyed I lost it know that I know it's so hard to 're-find' |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 01:03 PM |
Loop all the dam shiz and change surfaces :3
The Legend of Heroes Sen no Kiseki |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Jan 2016 01:58 PM |
Change the properties..
Brick.TopSurface == "Smooth" or whatever |
|
|
| Report Abuse |
|
|
|
| 08 Jan 2016 06:27 PM |
| The command bar at the bottom of the screen in Studio |
|
|
| Report Abuse |
|
|
Rakonus
|
  |
| Joined: 19 Dec 2014 |
| Total Posts: 1004 |
|
|
| 08 Jan 2016 08:40 PM |
| game.Workspace.Part.Material = "Whichever material" |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 10 Jan 2016 09:55 AM |
| U still need the script bro? |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2016 05:47 PM |
| Yes please AS A COMMAND if possible. |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2016 05:52 PM |
"AS A COMMAND if possible." Technically, the command bar only runs the usual Roblox Lua with Roblox APIs, so that's not quite applicable. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Nov 2016 05:31 PM |
This might be super late but I think I know what you mean. Copy the code between the ------------ into the command bar ------------ local PartToBeChanged function setPartSurfaceType(part, surfaceType, surfaces) --3rd argument defaults to all surfaces if not surfaces then surfaces = {} for _, normalID in pairs(Enum.NormalId:GetEnumItems()) do table.insert(surfaces, normalID.Name) end end --Set the selected (or all) surfaces to the given surface type for _, surface in pairs(surfaces) do part[surface.."Surface"] = surfaceType end end
setPartSurfaceType(PartToBeChanged, "SmoothNoOutlines", {"Top", "Bottom","Front","Back","Left","Right"}) ------------ After "local PartToBeChanged" put the locaation of the part i.e. "= game.Workspace.Brick" Without the "s NOTE: This will only change one brick at a time. |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2016 05:37 PM |
select bricks > open up Surface tab > change to smooth y u need script u lazy bum |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Nov 2016 05:45 PM |
| exfiltrate what are you doing |
|
|
| Report Abuse |
|
|