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: Is there an easy way to weld?

Previous Thread :: Next Thread 
EcIiptic is not online. EcIiptic
Joined: 12 Aug 2009
Total Posts: 13737
02 Jan 2014 05:56 PM
Okay my question is. Is there a way to put everything where you want to put it, then in one action, weld everything together where the parts all are currently?

I'm wondering this cuz...




WELDING IS SO FREAKING TEDIOUS.
Report Abuse
StBashkir is not online. StBashkir
Joined: 29 Aug 2008
Total Posts: 26171
02 Jan 2014 05:59 PM
If you put them in a model and use this in, say, the command bar (yes, the command bar can have multilined scripts).

function WeldModel(m)
local base;
for i,v in pairs(m:GetChildren()) do
if v:IsA("BasePart") then
if not base then base = base
else
local w = Instance.new("Weld", game.JointsService)
w.C1 = v.CFrame:toObjectSpace(base.CFrame)
w.Part0, w.Part1 = base, v
end
end
end
end

WeldModel(Workspace['ModelName']);
Report Abuse
EcIiptic is not online. EcIiptic
Joined: 12 Aug 2009
Total Posts: 13737
02 Jan 2014 06:05 PM
Doesn't work.

My modal's name is called "Missile"
And all parts are of "Part" classname.

I tried editing your script for that,but it didn't weld.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
02 Jan 2014 06:13 PM
@StBashkir

if not base then base = base

should that not be base = v

@Ecliptic

Search for "Auto Weld" in free models, there's plenty out there
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