I have a model of a bus that I'm trying to clone into the workspace. Many work just fine but there is one that is particularly causing me problems.
1 | clonedbus = game.ServerStorage:FindFirstChild(bus..colour):Clone() |
2 | clonedbus.Parent = game.Workspace |
3 | clonedbus.Name = bus..spawner |
4 |
5 | clonedbus:MakeJoints() |
As you can see I have used :makeJoints() but the bus is still falling apart in places.
Any way I can fix this?
Heres a video: http://gfycat.com/LinedMatureAgouti
01 | --Remember MakeJoints() can only be used on Workspace Objects, BasePart Objects, and Model Objects |
02 | --It can be used on Workspace Objects and BasePart Objects only if they have the right Surface ID to make a Joint. |
03 | --Also if this does not have a Model then we must create one in order for MakeJoints to work. |
04 | Model = Instance.new( "Model" ,Workspace) |
05 | Model.Name = "ModelForBus" --We change the name of Model |
06 | clonedbus = game.ServerStorage:FindFirstChild(bus..colour):Clone() |
07 | clonedbus.Parent = game.Workspace.ModelForBus --We put it in the Model named ModelForBus in Workspace |
08 | clonedbus.Name = bus..spawner |
09 | clonedbus:MakeJoints() |
10 | pcall ( function () end ) -- Just incase any false errors occur. |
11 | --If this helped and worked leave a upvote. Much appreciated |