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 » Scripters
Home Search
 

Re: My vehicles keep unwelding

Previous Thread :: Next Thread 
GlowingSource is not online. GlowingSource
Joined: 03 Jun 2013
Total Posts: 116
25 Jun 2017 10:56 PM
Currently, I am trying to clone a van from the replicated storage to the workspace, but keep finding the bricks falling apart. (The car is made upon studs and inlets) When ever I weld the whole thing, I find the wheels coming apart from the van. Any suggestion on how to prevent this?


Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
26 Jun 2017 12:24 AM
here's a welding script i made a while back. instead of doing the studs and inlet thing, you should use a welding script to weld a whole model together.

local base = script.Parent.basepart--this needs to be the foundation of the model, or whichever part all the other parts are centered around
local p = script.Parent:GetChildren()
for i = 1, #p do
if p[i]:IsA("BasePart") then
local w = Instance.new("Weld", p[i])
w.Part0 = p[i]
w.Part1 = base
w.C0 = CFrame.new()
w.C1 = base.CFrame:inverse() * p[i].CFrame
p[i].Anchored = false
end
end

Report Abuse
qqtt991 is online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
26 Jun 2017 01:36 AM
Try calling MakeJoints() on the model after it enters Workspace.


Report Abuse
GlowingSource is not online. GlowingSource
Joined: 03 Jun 2013
Total Posts: 116
26 Jun 2017 08:30 PM
I tried but it still falls apart and if I weld the whole thing, the wheels wont move.


Report Abuse
GlowingSource is not online. GlowingSource
Joined: 03 Jun 2013
Total Posts: 116
26 Jun 2017 08:50 PM
nvm, thx!


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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