Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// This is better Weld code than in my video, so use this instead!
- function Weld()
- local parts,last = {}
- local function scan(parent)
- for _,v in pairs(parent:GetChildren()) do
- if (v:IsA('BasePart')) then
- if (last) then
- local w = Instance.new('Weld')
- w.Name = ('Weld')
- w.Part0,w.Part1 = last,v
- w.C0 = last.CFrame:inverse()
- w.C1 = v.CFrame:inverse()
- w.Parent = last
- end
- last = v
- table.insert(parts,v)
- end
- scan(v)
- end
- end
- scan(script.Parent)
- for _,v in pairs(parts) do
- v.Anchored = false
- end
- end
- Weld()
- script:Remove()
Add Comment
Please, Sign In to add comment