Part disappears even when anchored property is set to true

Hi! I have a problem where I am trying to make a part circle a player, but when the game starts I can see the part for 1 second, then it disappears for some reason.

Here is the video:

I don’t know what could be causing this as the part is anchored, but that doesn’t seem to be as it just disappears and doesn’t fall. It could maybe be a coding error, but I really don’t know.

Here is my code:

local RS = game:GetService("RunService")

local Char = script.Parent
local HRP = Char.HumanoidRootPart
local orbitPart = script.Parent:WaitForChild("Part")

orbitPart.Anchored = true

local cycleDur = 15
local distance = 5

local i = 0
	i = (i + dt/cycleDur) % 1
	local alpha = 2 * math.pi * i
	orbitPart.CFrame = CFrame.Angles(0, alpha, 0) *,0, distance) + HRP.Position

Is archivable enabled? Make sure it is.
If it is already then unanchor the part and anchor it when the game starts.

yes archivable is enabled. and when I anchore/unanchore it, it does nothing

Nevermind I got it to work, for some reason anchoring it in a script wont work, but anchoring before hand without scripts seems to work.