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

Why won't the backpack weld to the person?

Asked by
Synth_o 136
5 years ago
Edited 5 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
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
end

WeldPack(Clone:WaitForChild("InfBackpack"), Char:WaitForChild("UpperTorso"))

This script is supposed to weld the backpack to the persons back, why won't it work, btw no errors in the script.

0
What is the "BackPackPart" or "InfBackpack" backpack? brok4d 77 — 5y

Answer this question