-
What do you want to achieve? I want to use workspace:BulkMoveTo() to move parts using CFrames instead of using part.CFrame
-
What is the issue? workspace:BulkMoveTo() doesn’t work when i use it. The parts and CFrames tables are correct and it still wouldn’t work. it doesn’t throw an error.
-
What solutions have you tried so far? I’ve tried to print those two tables and it gave me this:
{[1] = Head,
[2] = Head}
{[1] = -52.6448021, 4.42675638, 22.3263283, 0, 0, 1, 0, 1, -0, -1, 0, 0,
[2] = -52.6448021, 4.42675638, 22.3263283, 0, 0, 1, 0, 1, -0, -1, 0, 0}
The Client Script:
local B = Enum.BulkMoveMode.FireCFrameChanged
game.ReplicatedStorage.EnemyRemote.OnClientEvent:Connect(function(Data)
local BatchParts = {}
local BatchCFrames = {}
for i,v in pairs(Data) do
--Enemy[v[1]].Model.CFrame = v[2]
table.insert(BatchParts,Enemy[v[1]].Model)
table.insert(BatchCFrames,v[2])
end
print(BatchParts)
print(BatchCFrames)
workspace:BulkMoveTo(BatchParts,BatchCFrames,B)
end)
Note: using Enemy[v[1]].Model.CFrame = v[2]
works fine