Script working fine in studio commandline (not testing) but not working in game testing

local difference = 11

for i=1,amountNum do
		local FG = last:Clone()
		FG.Parent = game.Workspace
		local nFrame = CFrame.new(Vector3.new(last.Position.X,last.Position.Y,last.Position.Z-difference))
		FG:SetPrimaryPartCFrame(nFrame)
		last = FG
	end

Studio console:
image

In studio testing:

1 Like

Still an issue. Have not figured this out yet.

1 Like

Do you have anchored the parts?
Try to add FG.Anchored = true before FG.Parent

2 Likes