Whats an Good Brick Weld Script for Cars?
Okay, I have this Car Where all the bricks fall off the front.. I used this Persons Weld scripts but it does not seem to Keep the bricks welded on. I have the script in the Brick Itself. Any Ideas?
06 | weld = Instance.new( "Weld" ) |
09 | local HitPos = x.Position |
10 | local CJ = CFrame.new(HitPos) |
11 | local C 0 = x.CFrame:inverse() *CJ |
12 | local C 1 = y.CFrame:inverse() * CJ |
21 | if (c [ n ] .className = = "Part" ) then |
22 | if (c [ n ] .Name ~ = "MainPart" ) then |
23 | stick(c [ n ] , t.MainPart) |
28 | if (c [ n ] .className = = "Flag" ) then |
29 | if (c [ n ] .Name ~ = "MainPart" ) then |
30 | stick(c [ n ] , t.MainPart) |
35 | if (c [ n ] .className = = "Handle" ) then |
36 | if (c [ n ] .Name ~ = "MainPart" ) then |
37 | stick(c [ n ] , t.MainPart) |
42 | if (c [ n ] .className = = "Hat" ) then |
43 | if (c [ n ] .Name ~ = "MainPart" ) then |
44 | stick(c [ n ] , t.MainPart) |
49 | if (c [ n ] .className = = "Seat" ) then |
50 | if (c [ n ] .Name ~ = "MainPart" ) then |
51 | stick(c [ n ] , t.MainPart) |
56 | if (c [ n ] .className = = "SpawnLocation" ) then |
57 | if (c [ n ] .Name ~ = "MainPart" ) then |
58 | stick(c [ n ] , t.MainPart) |
63 | if (c [ n ] .className = = "TrussPart" ) then |
64 | if (c [ n ] .Name ~ = "MainPart" ) then |
65 | stick(c [ n ] , t.MainPart) |
70 | if (c [ n ] .className = = "VehicleSeat" ) then |
71 | if (c [ n ] .Name ~ = "MainPart" ) then |
72 | stick(c [ n ] , t.MainPart) |
82 | t.MainPart.Anchored = false |