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

One of the parts in the model is disoriented when trying to weld, how to fix?

Asked by
Synth_o 136
5 years ago
local self = script
local Char = self.Parent
local TestingPack = game:GetService("ReplicatedStorage"):WaitForChild("InfBackpack")
local Clone = TestingPack:Clone()

local WeldPack = function(part0, part1)
    Clone.Parent = Char
    part1.CFrame = Char:WaitForChild("UpperTorso").CFrame
    local weld = Instance.new("ManualWeld", part1)
    weld.Part0 = part0
    weld.Part1 = part1
    weld.C0 = part0.CFrame:inverse() * Char:WaitForChild("UpperTorso").CFrame - Vector3.new(0,0,1) 
end
WeldPack(Clone:WaitForChild("2"), Char:WaitForChild("UpperTorso"))

The backpack is a model in Replicated Storage, The script is in starting Character Scripts. One of the parts in the model is very disoriented, it is horizontal when it is supposed to be vertical, how to fix?

0
Does the model have a primarypart? Is the model in workspace as well as RS? I take it the char is R15? I would also parent it last. ABK2017 406 — 5y
0
If I parent it last, I just fling all over the map Synth_o 136 — 5y

Answer this question