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

How do i weld the arms to the torso and the stering wheel? R15

Asked by 7 years ago

--[[Shutdown]]

car.DriveSeat.ChildRemoved:connect(function(child)
    if child.Name=="SeatWeld" and child:IsA("Weld") then
        script.Parent:Destroy()
        character["LeftUpperArm"].Transparency = 0
    character["RightUpperArm"].Transparency = 0
    local Weld = car.Misc.Wheel.A:FindFirstChild("NewWeld")
    local Weld2 = car.Misc.Wheel.A:FindFirstChild("NewWeld2")
    if Weld ~= nil then
        Weld:Destroy()
    end
    if Weld2~= nil then
        Weld2:Destroy()
    end 
    end
end)
car.DriveSeat.ChildAdded:connect(function(child)
    character["LeftHand"].Transparency = 0
    character["RightHand"].Transparency = 0
            local W = Instance.new("Weld")
            W.Part0 = RightArm
            W.Part1 = car.Misc.Wheel.A
            local CJ = CFrame.new(car.Misc.Wheel.A.Position)
            local C0 = RightArm.CFrame:inverse()*CJ
            local C1 = car.Misc.Wheel.A.CFrame:inverse()*CJ
            W.C0 = C0
            W.C1 = C1
            W.Parent = RightArm
            local Y = Instance.new("Weld")
            Y.Name = "NewWeld"
            Y.Part0 = car.Misc.Wheel.A
            Y.Part1 = RightArm
            Y.C0 = CFrame.new(0.2,-0.9,-2.5) * CFrame.fromEulerAnglesXYZ(-0.01,

1.5, -1.8) Y.Parent = Y.Part0 ------------------------------------------------ local W = Instance.new("Weld") W.Part0 = LeftArm W.Part1 = car.Misc.Wheel.A local CJ = CFrame.new(car.Misc.Wheel.A.Position) local C0 = LeftArm.CFrame:inverse()CJ local C1 = car.Misc.Wheel.A.CFrame:inverse()CJ W.C0 = C0 W.C1 = C1 W.Parent = RightArm local Y = Instance.new("Weld") Y.Name = "NewWeld2" Y.Part0 = car.Misc.Wheel.A Y.Part1 = LeftArm Y.C0 = CFrame.new(-0.2,0.93,-2.6) * CFrame.fromEulerAnglesXYZ(0.93, 1.8, -2.2) Y.Parent = Y.Part0 end)

Answer this question