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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: I need help with a weld.

Previous Thread :: Next Thread 
KIeos is not online. KIeos
Joined: 18 Jul 2012
Total Posts: 4917
16 Aug 2012 10:55 PM
Here's the script:

local prev
local parts = script.Parent:GetChildren()
for i = 1,#parts do
if (parts[i].className == "Part") then
if (prev ~= nil)then
local weld = Instance.new("Weld")
weld.Part0 = prev
weld.Part1 = parts[i]
weld.C0 = prev.CFrame:inverse()
weld.C1 = parts[i].CFrame:inverse()
weld.Parent = prev
end
prev = parts[i]
end
end
wait(3)
script:remove()

I need it to work with wedges too, but it doesn't. Can anyone help me with that?
Report Abuse
KIeos is not online. KIeos
Joined: 18 Jul 2012
Total Posts: 4917
16 Aug 2012 10:57 PM
bump
Report Abuse
KIeos is not online. KIeos
Joined: 18 Jul 2012
Total Posts: 4917
17 Aug 2012 01:04 PM
double bump
Report Abuse
KIeos is not online. KIeos
Joined: 18 Jul 2012
Total Posts: 4917
17 Aug 2012 02:21 PM
triple
Report Abuse
JakieMcCool is not online. JakieMcCool
Joined: 07 Feb 2012
Total Posts: 3298
17 Aug 2012 02:23 PM
I'll bump for you.
Report Abuse
FearMeIAmLag is not online. FearMeIAmLag
Joined: 02 Jun 2012
Total Posts: 1748
17 Aug 2012 02:27 PM
Bump4U
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
17 Aug 2012 02:28 PM
http://wiki.roblox.com/index.php/Category:Deprecated_items
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
17 Aug 2012 02:29 PM
The number one idiot on SH: JakieMcCool.
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