Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can you use a cylinder as a car base and add it more things?

Asked by
Tripyfy 28
6 years ago

I know that a cylinder can be used as a car but... how do you weld things into the cylinder and also how can I add decorations if its a cylinder? :/

1 answer

Log in to vote
0
Answered by 6 years ago

Make a bunch of individual welds:

for h,i in pairs (game.Workspace.Car:GetDescendants()) do
    if i.ClassName == "Part" and h.ClassName == "Part" then
        local w = Instance.new("Weld")
        w.Parent = game:GetService("JointsService")
        w.C1 = i.CFrame:toObjectSpace(h.CFrame)
        w.Part0 = i
        w.Part1 = h
    end
end
Ad

Answer this question