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 » Building Helpers
Home Search
 

Re: Vehicle Weld

Previous Thread :: Next Thread 
dusteaty is not online. dusteaty
Joined: 14 Feb 2009
Total Posts: 3590
11 Jul 2011 10:33 PM
How can I weld a Cframed vehicle together and have the vehicle stay together as I made it? I tried a Weld script but that didnt work, and put the wheels into another model, Vehicle's wheels moved though.. so it works but doesnt stay together.
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]
prev.Anchored = false
end end
Report Abuse
dusteaty is not online. dusteaty
Joined: 14 Feb 2009
Total Posts: 3590
12 Jul 2011 12:44 PM
Bump.
Report Abuse
pauljkl is not online. pauljkl
Joined: 23 Oct 2008
Total Posts: 9364
12 Jul 2011 12:58 PM
Anchor the car first, then run the script
Report Abuse
dusteaty is not online. dusteaty
Joined: 14 Feb 2009
Total Posts: 3590
12 Jul 2011 01:10 PM
It still breaks even with the script and anchored..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building 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