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: Command to change all surfaces to one?

Previous Thread :: Next Thread 
Trinibot10 is not online. Trinibot10
Joined: 28 Aug 2011
Total Posts: 2971
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
Trinibot10 is not online. Trinibot10
Joined: 28 Aug 2011
Total Posts: 2971
08 Jan 2016 11:20 AM
bump
Report Abuse
lokkut is not online. lokkut
Joined: 18 Mar 2009
Total Posts: 1794
08 Jan 2016 11:21 AM
What do you mean "command"?..
Report Abuse
direMitten is not online. direMitten
Joined: 18 Jun 2015
Total Posts: 1294
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
direMitten is not online. direMitten
Joined: 18 Jun 2015
Total Posts: 1294
08 Jan 2016 11:31 AM
Also, Roblox when TF are we getting post formatting?!
Report Abuse
Injeciton2 is online. Injeciton2
Joined: 30 Dec 2015
Total Posts: 192
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
Trinibot10 is not online. Trinibot10
Joined: 28 Aug 2011
Total Posts: 2971
08 Jan 2016 12:06 PM
Sorry man I mean in the COMMAND bar.

Report Abuse
Rakonus is not online. 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
Trinibot10 is not online. Trinibot10
Joined: 28 Aug 2011
Total Posts: 2971
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
MahouReikon is not online. MahouReikon
Joined: 15 Feb 2014
Total Posts: 1359
08 Jan 2016 01:03 PM
Loop all the dam shiz and change surfaces :3


The Legend of Heroes Sen no Kiseki
Report Abuse
Trinibot10 is not online. Trinibot10
Joined: 28 Aug 2011
Total Posts: 2971
08 Jan 2016 01:52 PM
bump
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
08 Jan 2016 01:58 PM
Change the properties..

Brick.TopSurface == "Smooth" or whatever
Report Abuse
Trinibot10 is not online. Trinibot10
Joined: 28 Aug 2011
Total Posts: 2971
08 Jan 2016 06:27 PM
The command bar at the bottom of the screen in Studio
Report Abuse
Rakonus is not online. Rakonus
Joined: 19 Dec 2014
Total Posts: 1004
08 Jan 2016 08:40 PM
game.Workspace.Part.Material = "Whichever material"
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
09 Jan 2016 10:58 AM
Material not surfaces
Report Abuse
Trinibot10 is not online. Trinibot10
Joined: 28 Aug 2011
Total Posts: 2971
10 Jan 2016 08:57 AM
so .Surface then?
Report Abuse
DivinePheonix is not online. DivinePheonix
Joined: 30 Mar 2011
Total Posts: 11190
10 Jan 2016 09:55 AM
U still need the script bro?
Report Abuse
Trinibot10 is not online. Trinibot10
Joined: 28 Aug 2011
Total Posts: 2971
12 Jan 2016 05:47 PM
Yes please AS A COMMAND if possible.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
Trinibot10 is not online. Trinibot10
Joined: 28 Aug 2011
Total Posts: 2971
15 Jan 2016 09:53 PM
Ok...
A little confused.
Report Abuse
luis91899 is not online. luis91899
Joined: 21 Dec 2010
Total Posts: 7
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
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
03 Nov 2016 05:37 PM
select bricks > open up Surface tab > change to smooth
y u need script u lazy bum
Report Abuse
Exfiltrate is not online. Exfiltrate
Joined: 29 Mar 2013
Total Posts: 10917
03 Nov 2016 05:44 PM
5
Report Abuse
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
03 Nov 2016 05:45 PM
exfiltrate what are you doing
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