Player spawning in default spawn area while having an existing spawn

The players team is auto-assigned and is spawning in the default spawn area, despite having a spawn location.

The spawn location isn’t neutral and it has the same team color as the player.

I haven’t added any scripts that change the player’s team or their position besides this one, inside StarterCharacterScripts:

while 90 > 10 do
	wait ()
	repeat wait () until workspace.TeleportFolder.Object.Value ~= nil or workspace.TeleportFolder.CFrame.Value ~= nil
	if workspace.TeleportFolder.UsingObject.Value == true then
		if workspace.TeleportFolder.Object.Value then
			local obj = workspace.TeleportFolder.Object.Value
			script.Parent.HumanoidRootPart.CFrame = workspace.TeleportFolder.Object.Value.CFrame
			repeat wait () until workspace.TeleportFolder.UsingObject.Value == false or workspace.TeleportFolder.Object.Value ~= obj
		end
	else
		if workspace.TeleportFolder.CFrame.Value then
			local cframe = workspace.TeleportFolder.CFrame.Value
			script.Parent.HumanoidRootPart.CFrame = workspace.TeleportFolder.CFrame.Value
			repeat wait () until workspace.TeleportFolder.UsingObject.Value == true or workspace.TeleportFolder.CFrame.Value ~= cframe
		end
	end
end

but it only teleports the player when the values are changed.

Video:

robloxapp-20220706-2019331.wmv (1.7 MB)

Properties of Spawn Location:

nevermind, it was the teleport script lol