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
 

Broken Weld script

Previous Thread :: Next Thread 
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
04 Feb 2012 07:00 PM
Pen, lol okay, good I thought I was the only one who saw that error... XD =3 :P.
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
04 Feb 2012 07:00 PM
@Duke

If you've been on this forum for a while, then you should have seen my many posts.
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
04 Feb 2012 07:01 PM
Also, i never said that disecting free models is bad, im just trying to say that taking free models and NOT learning from them is bad.
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
04 Feb 2012 07:02 PM
Oh, that's true. XD =3 lol.
Report Abuse
brickbuilder74 is not online. brickbuilder74
Joined: 23 Jun 2008
Total Posts: 8810
04 Feb 2012 07:03 PM
Thank you pen, for talking scripting. How would I fix that error? This is my first time welding since this is my first time making a weapon or something else that needs welding.
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
04 Feb 2012 07:04 PM
I havent worked with welds in a while, but if i remember correctly, Part0 is supposed to be the parent of the weld.
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
04 Feb 2012 07:04 PM
Brick, try my script.
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
04 Feb 2012 07:10 PM
@Pen, you seem new, i've been on this forum a lot longer than you :P (back in the time when ElectricAxel was on here!)
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
04 Feb 2012 07:10 PM
@pen

Eh, I was only looking at math mistakes

    local prev
    local parts = script.Parent:GetChildren()
    for i=1,#parts do
        if parts[i]:IsA("BasePart") then --look up :IsA() on the wiki, more efficient than className
            prev = prev and prev or parts[i]; --if prev exists, set to prev else set to parts[i]
            local weld = Instance.new("Weld",prev)
            weld.Part0 = prev
            weld.Part1 = parts[i]
            weld.C0 = prev.CFrame:inverse()*CFrame.new(prev.Position);
            weld.C1 = parts[i].CFrame:inverse()*CFrame.new(prev.Position);
        end
    end
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
04 Feb 2012 07:11 PM
Aw, I miss ElectricAxel...
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
04 Feb 2012 07:12 PM
@bluey
I miss electric. :{

When I first started coming here was when GoldenUrg and meelo were big forumers.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
04 Feb 2012 07:12 PM
@bluey
I miss electric. :{

When I first started coming here was when GoldenUrg and meelo were big forumers.
Report Abuse
SDuke524 is not online. SDuke524
Joined: 29 Jul 2008
Total Posts: 6267
04 Feb 2012 07:12 PM
@bluey
I miss electric. :{

When I first started coming here was when GoldenUrg and meelo were big forumers.
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
04 Feb 2012 07:12 PM
@bluey

Im not THAT new on the forum. I've been on this forum for probably a little over half a year. Maybe like 8 months. I know, that may sound pretty new to you, but still.
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
04 Feb 2012 07:21 PM
yea, Electric converted me from a noob to a regular :3
Report Abuse
Previous Thread :: Next Thread 
Page 2 of 2Go to page: 1, [2] Prev
 
 
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