Why does BlueBlock's Position gets 0, 0, 0?

I tried to find ways to fix it but didn’t find one.
Sometimes when I run the game, the blue block’s position is 0, 0, 0.

https://gyazo.com/89f5b0b59aa1bab720af234fd498dc35

local redBlock = game.Workspace.Red
local blueBlock = game.Workspace.Blue

local startPosition = Vector3.new(0, 7, 0)
local targetPosition = Vector3.new(7, 1, 7)

redBlock.CFrame = CFrame.new(startPosition, targetPosition)
blueBlock.Position = targetPosition

local Part = Instance.new("Part", workspace)
Part.Anchored = true
Part.BrickColor = BrickColor.Red()
Part.Size = Vector3.new(1, 1, (startPosition - targetPosition).Magnitude)
Part.CFrame = CFrame.new(
	startPosition:Lerp(targetPosition, .5),
	targetPosition
)

That’s odd, the code’s working fine for me.

I know, weird… 30charrrrrrrrrr

I found a script in BlueBlock that caused this, sorry for the lack of understanding!