A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeFAQRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
 
naknak
 
Supernapalm
 
m27frogy
 
slayer9365
 
myrco919
 
branefreez
 
ninga95
 
CloneTrooper787
 
raboy117
 
Top posting users this month
Latest topics
» Send me an Email
January 8th 2016, 10:14 am by naknak

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
July 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
July 6th 2015, 4:16 pm by m27frogy

» Ambassador!
April 15th 2015, 11:40 pm by naknak

» Boop - Tag
April 13th 2015, 9:46 pm by naknak

» Vip Class Script
April 13th 2015, 4:54 pm by naknak

» Who's active?!
April 13th 2015, 4:52 pm by naknak

» Where to go from here.
April 13th 2015, 4:51 pm by naknak

» Genesis Point
July 17th 2014, 7:04 pm by branefreez

» Reward System
July 17th 2014, 5:41 am by m27frogy

» Script Request
July 10th 2014, 11:43 am by naknak

» local scripts?
July 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
July 10th 2014, 11:36 am by naknak

» Hi. I am new here
April 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
January 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
January 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
January 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
November 26th 2013, 3:33 pm by Keanu73

» Improve Coding
October 26th 2013, 1:12 pm by pook03

» Simple Button
September 1st 2013, 6:19 pm by branefreez


Share | 
 

 NXT Building

Go down 
AuthorMessage
m27frogy
The Garbageman
avatar

Posts : 336
Join date : 2011-06-23

PostSubject: NXT Building   June 23rd 2011, 9:57 pm

Since your in Intermediate, I assume that you know how to open Roblox Studio.

Open Roblox Studio. Go to your place and edit it, or make a new page.
Press View>Explorer and View>Properties. You'll now see two windows pop up on the side of the screen. If they don't, repeat these steps.
In the window named "Explorer", click on Workspace.
Next, press Insert>Object>Script. You'll now see a script object appear underneath the "Workspace" object. Now double click the script and insert this code into it:
Code:
function scan(target)
  local children = target:GetChildren()
  local booleanValue = false
  if #children ~= nil then
      for i = 1, #children do
        local child = children[i]
        if child.className == "FileMesh" or child.className == "SpecialMesh" or child.className == "CylinderMesh" or child.className == "BlockMesh" then
            booleanValue = true
        end
      end
  end
  return booleanValue
end

local children = script.Parent:GetChildren()
for i = 1, #children do
  local child = children[i]
  if (child.className == "Part") and (child.Shape ~= "Ball") and (child.Shape ~= "Cylinder") and scan(child) == false then
      child.BackSurface = "Weld"
      child.BottomSurface = "Weld"
      child.FrontSurface = "Weld"
      child.LeftSurface = "Weld"
      child.RightSurface = "Weld"
      child.TopSurface = "Weld"
      local mesh = Instance.new("BlockMesh", child)
  end
  if (child.className == "Seat" or child.className == "VehicleSeat") and scan(child) == false then
      child.BackSurface = "Weld"
      child.BottomSurface = "Weld"
      child.FrontSurface = "Weld"
      child.LeftSurface = "Weld"
      child.RightSurface = "Weld"
      child.TopSurface = "Weld"
      local mesh = Instance.new("BlockMesh", child)
  end
end
print("Process Complete.  Map == 'NXT'")

Now move the script into your model that you want to be NXT. Then click on the play icon and voilah! You're model is NXT!

Why does this work?
Roblox made a mesh called "BlockMesh". It sharpens the corners and makes all the surfaces apear smooth. This script welds every brick that's a regular brick, and doesn't already have a mesh. You can use insert to insert one in there, but it's so hard to do that with everything your free to use this script. Be warned! Cars and things with turning wheels hate this script because it welds they're wheels together! To make a car or tank, start out using bricks with BlockMeshes in them and there will be no problem. Or smooth out the surfaces touching the wheels after the body is built and the script is run.


Last edited by m27frogy on June 29th 2011, 5:31 pm; edited 3 times in total
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter


Posts : 393
Join date : 2011-01-17

PostSubject: Re: NXT Building   June 26th 2011, 7:07 pm

erm. isn't a tutorial supposed to explain what something does and how something works?
Back to top Go down
http://hackthissite.org
m27frogy
The Garbageman
avatar

Posts : 336
Join date : 2011-06-23

PostSubject: Re: NXT Building   June 27th 2011, 11:55 am

I'll edit it to make it clearer. It's awful to try to insert a BrickMesh into everything and weld too.
Back to top Go down
m27frogy
The Garbageman
avatar

Posts : 336
Join date : 2011-06-23

PostSubject: Re: NXT Building   June 27th 2011, 12:01 pm

This script is so awesome! Free models look like they're not free models!! Everything looks profeshional!!! TROLOLOLO
Back to top Go down
blueymaddog
Administrator
Administrator
avatar

Posts : 1081
Join date : 2010-12-09
Age : 20

PostSubject: Re: NXT Building   November 28th 2011, 6:49 am

out of curiosity, why do you need the welding?

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
Sponsored content




PostSubject: Re: NXT Building   

Back to top Go down
 
NXT Building
Back to top 
Page 1 of 1
 Similar topics
-
» Favorite exterior condo design?
» Pirate ship and crop circles
» [Beaver4CP] Building bridges, dams and lodges inside the eBelgium Community
» DIY USB Chess Board
» (FULL) Esamir International News Network

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Tutorials and Resources :: Intermediate-
Jump to: