How to make carry system?

I want to know how I can achieve a player carrying system. I am very familiar with the scripting in roblox it is just the fact that I do not know the best, most efficient way to do it. I heard from other posts that using welds will kill both players if one resets.

here is my current attempt:

                    local otherRP = v:FindFirstChild("HumanoidRootPart")
					local char = workspace:FindFirstChild(plr.Name)
					local humRP = char:FindFirstChild("HumanoidRootPart")
					local head = char:FindFirstChild("Head")
					if otherRP and humRP and head then
						carrying = true
						while carrying do
							task.wait()
							otherRP.CFrame = (head.CFrame+(humRP.CFrame.RightVector *2))
							otherRP.CFrame *= CFrame.Angles(math.rad(-90),0,0)
						end
						
					end

any help will be greatly appreciated.

1 Like

I’d say go with welds, I doubt that if one resets, the carried player will die as well, it’ll just not be attached anymore.

i tried something like this:

local ro, rc=origin.HumanoidRootPart,carry.HumanoidRootPart
	carry.Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
	carry.Humanoid.PlatformStand = true
	carry.HumanoidRootPart.CanCollide = false
	local w=Instance.new("Motor6D")
	w.Name = "carrying"
	w.Part0 = ro
	w.Part1 = rc
	w.C1 = CFrame.new(-2, 0, 0)
	w.C0 = CFrame.new()
	w.Parent = rc
	for _,v in pairs(carry:GetChildren()) do
		if v:IsA("BasePart") then
			v.Massless = true
		end
	end

change the reset button function so when player resets he gets knocked instead of dying

pretty sure this is true but you could just disable resetting or make it knock you when you reset.

Where I need to put in the script