It’s not that it doesn’t work as it is but on the other player’s screen it takes time to arrive but the screen of the player who is loading the other looks as it should
Just a few hours ago I learned how to use AlignPositions so I don’t quite understand what the error could be
the code is in a server script:
CarryEvent.OnServerEvent:Connect(function(player, MousePosition, TorsoPosition)
local Params2 = RaycastParams.new()
Params2.FilterDescendantsInstances = {player.Character}--player.Character
Params2.FilterType = Enum.RaycastFilterType.Blacklist
Params2.IgnoreWater = true
local direction = (MousePosition - TorsoPosition).Unit * 10 --Max Distance
local result = game.Workspace:Raycast(TorsoPosition, direction, Params2)
if result then
if result.Instance.Parent:FindFirstChild("Humanoid") then
local Character = player.Character
local CarringChar = result.Instance.Parent
if CarringChar.Ragdolled.Value == true then
-------------------------------------------------------------------------
local Attachment1 = Instance.new("Attachment", Character.Torso)
local Attachment0 = Instance.new("Attachment", CarringChar.Torso)
Attachment1.Name = "Attachment1"
Attachment0.Name = "Attachment0"
Attachment1.CFrame = CFrame.new(2,1,0) * CFrame.Angles(90,0,0)
local AlignOrientation = Instance.new("AlignOrientation", CarringChar.Torso)
local AlignPosition = Instance.new("AlignPosition", CarringChar.Torso)
-------------------------------------------------------------------------
AlignPosition.Name = "CarringWeld"
AlignOrientation.Name = "CarringOrientation"
AlignPosition.Attachment0 = Attachment0
AlignPosition.Attachment1 = Attachment1
AlignPosition.RigidityEnabled = true
AlignOrientation.Attachment0 = Attachment0
AlignOrientation.Attachment1 = Attachment1
AlignOrientation.RigidityEnabled = true
-------------------------------------------------------------------------
CarringChar.CarryingCharacter.Value = Character
end
end
end
end)
I would be very grateful if someone helps me, I have no idea what the error is
(I also couldn’t find someone with the same problem )