A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog 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
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
naknak
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
Supernapalm
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
m27frogy
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
slayer9365
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
myrco919
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
branefreez
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
ninga95
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
CloneTrooper787
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
raboy117
NXT Building Vote_lcapNXT Building Voting_barNXT Building Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
NXT Building EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
NXT Building EmptySeptember 14th 2020, 1:16 pm by MrNicNac

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

» New Site Possibly
NXT Building EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
NXT Building EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
NXT Building EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
NXT Building EmptyApril 13th 2015, 4:54 pm by naknak

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

» Genesis Point
NXT Building EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
NXT Building EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
NXT Building EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
NXT Building EmptyJuly 10th 2014, 11:39 am by naknak

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

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

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

» FlashLight Script
NXT Building EmptyJanuary 1st 2014, 2:11 pm by m27frogy

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

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

» Improve Coding
NXT Building EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
NXT Building EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 NXT Building

Go down 
3 posters
AuthorMessage
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

NXT Building Empty
PostSubject: NXT Building   NXT Building EmptyJune 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
avatar


Posts : 393
Join date : 2011-01-17

NXT Building Empty
PostSubject: Re: NXT Building   NXT Building EmptyJune 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
m27frogy


Posts : 336
Join date : 2011-06-23

NXT Building Empty
PostSubject: Re: NXT Building   NXT Building EmptyJune 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
m27frogy


Posts : 336
Join date : 2011-06-23

NXT Building Empty
PostSubject: Re: NXT Building   NXT Building EmptyJune 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
blueymaddog


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

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

out of curiosity, why do you need the welding?
Back to top Go down
Sponsored content





NXT Building Empty
PostSubject: Re: NXT Building   NXT Building Empty

Back to top Go down
 
NXT Building
Back to top 
Page 1 of 1
 Similar topics
-
» RPG building
» Brick Batlle building!
» Intermediate Building Forum Help
» Building badges
» I'm not good at building,

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