I’m using the new bodymovers (alignposition & alignorientation) to achieve the target player being carried by another player. The client/the one doing the carrying is able to see the animations well, but on the server the animation isn’t being replicated. Anyone have an idea on why this is happening?
Screenshot in client:
Screenshot in server:
local targetEntity = self:ReturnClosestTarget()
if targetEntity and targetEntity.KnockdownHandler.Isknocked and not targetEntity.KnockdownHandler.Beingcarried then
self.Iscarrying = targetEntity;
targetEntity.KnockdownHandler.Beingcarried = true;
targetEntity.character.Humanoid.PlatformStand = true
targetEntity.character.HumanoidRootPart.Massless = true
targetEntity:modifyCollisionGroup("Knocked");
utilityModule.Ragdoll(targetEntity.character, "Remove", targetEntity)
local alignPos = Instance.new("AlignPosition")
alignPos.RigidityEnabled = true
alignPos.ReactionForceEnabled = true
alignPos.Attachment0 = targetEntity.character.HumanoidRootPart.CarryAttachment
alignPos.Attachment1 = self.entity.character.HumanoidRootPart.CarryAttachment
alignPos.Name = "CarryPos"
alignPos.Parent = self.entity.character.HumanoidRootPart
local alignOrien = Instance.new("AlignOrientation")
alignOrien.RigidityEnabled = true
alignOrien.Name = "CarryOrientation"
alignOrien.Attachment0 = targetEntity.character.HumanoidRootPart.CarryAttachment
alignOrien.Attachment1 = self.entity.character.HumanoidRootPart.CarryAttachment
alignOrien.Parent = targetEntity.character.HumanoidRootPart
self.entity.MovementController.speedBuffers["Carrying"] = 0.9;
self.entity.MovementController.jumpBuffers["Carrying"] = 0.9;
self.carryingWeld = alignOrien;
self.carryingAnim:Play()
targetEntity.KnockdownHandler.carriedAnim:Play()
end