I've been making something and this bug occurred. It wasn't just the script, it has to be something in the way I do this; I made a simplified version of it and then used it. The bug is that when switching the CFrames of two character's torsos, sometimes only one will move, causing them to get stuck together. I've made a video of the bug here. I know the quality is low, just focus on the bug.
The code used in the video is this:
local plr=game.Players.LocalPlayer
local char=plr.Character
local mouse=plr:GetMouse()
mouse.Button1Down:connect(function()
if mouse.Target and mouse.Target.Parent:findFirstChild("Torso") then
local targ=mouse.Target.Parent
char.Torso.CFrame,targ.Torso.CFrame=targ.Torso.CFrame,char.Torso.CFrame
end
end)
