Weird worm movement while spawning part

This script creates a part every second to add to the character. There is no issue with the script, but as you can see, it kind of jolts backward.

Gif of Issue

local bodyCount = 1
local lastBody = nil

local function CreateBody(character)
	local bodyClone = replicatedStorage:WaitForChild('Body'):Clone()
	bodyClone.RopeConstraint.Attachment0 = bodyClone.Attachment
	bodyClone.Name = 'Body'..bodyCount
	
	if lastBody then
		bodyClone.RopeConstraint.Attachment1 = lastBody.Attachment
	else
		bodyClone.RopeConstraint.Attachment1 = character.Body.Attachment
	end
	bodyClone.Parent = character
	
	lastBody = bodyClone
	bodyCount += 1
end

local function CharacterAdded(character)
	for i = 1, 20 do
		CreateBody(character)
		wait(1)
	end
end
1 Like

This is probably because of server latency, correct me if Iā€™m wrong.

1 Like