I’ve made this carry script. But there’s one issue, whenever I jump with the body I get stuck easily in the ground.
https://gyazo.com/e7c5212a3bbbeea30beb32841f9cfdaa
I’ve tried to change the collision groups in physics service, but it didn’t work.
Here is the script that welds the players
local function plrweld(carrying,carried)
local one,two = carrying.Character.HumanoidRootPart, carried.Character.HumanoidRootPart
game:GetService("PhysicsService"):CreateCollisionGroup("nocollision")
game:GetService("PhysicsService"):CollisionGroupSetCollidable("nocollision","nocollision",false)
carried.Character.Humanoid.PlatformStand = true
local weld = Instance.new("Weld")
weld.Part0 = one
weld.Part1 = two
weld.C1 = CFrame.new(-2, -1, 0)
weld.C0 = CFrame.new()
weld.Parent=two
for _,v in pairs(carried.Character:GetChildren()) do
if v:IsA("BasePart") then
game:GetService("PhysicsService"):SetPartCollisionGroup(v,"nocollision")
v.Massless=true
end
end
for _,v in pairs(carrying.Character:GetChildren()) do
if v:IsA("BasePart") then
game:GetService("PhysicsService"):SetPartCollisionGroup(v,"nocollision")
end
end
end