Unexpected CFrame Movement?

Hey everyone,
I have this somewhat odd question

I thought I knew what I was doing when creating a new part, but apparently not… The following script is supposed to make a new part and change the CFrame to the green part’s CFrame (source).

Here’s the script:

local part = workspace.Source
local ray = Instance.new("Part")
ray.Anchored = true
ray.Parent = workspace
ray.Size = part.Size
ray.CFrame = part.CFrame

And this is the output…

Instead of moving the part directly in the position of source, it moves it right next to it with an offset.
I would not expect this to be intended CFrame behavior… Does anyone know the cause of this?

I just tested this in studio and used the exact script. It works perfectly fine for me, and I have tried it multiple times

I would assume collisions, Do you have your part set as a collision. maybe the collision tool?

I tried this in studio trying to replicate the problem, I can’t seem to replicate it.

Not exactly sure what you mean by that. All I did was inset a part, name it source, then quickly wrote that script…

Odd… I wonder why it wouldn’t work for me. This is a brand new baseplate too.

I could send the place file if that helps. Also this was tested using the Run button for studio.

Never mind, I just re-loaded studio and it fixed the problem.
I’ll comment if it happens again.