Setting the parent of a cloned character causes the thread to loop

Here’s the code below
Unless I am missin somethin this is quite confusin

local Render = Instance.new("Camera")
Render.Parent = ViewportFrame
Render.Name = "Render"
Character.Archivable = true
local CharacterRender = Character:Clone()
CharacterRender.Parent = ViewportFrame.WorldModel
Character.Archivable = false
ViewportFrame.CurrentCamera = Render
Render.CFrame = CharacterRender:WaitForChild("HumanoidRootPart").CFrame * CFrame.new(0, 0, -6)

I assume the script itself is parented inside the character? causing it to also get cloned?

1 Like

Yeah I didn’t realise that because when I tried to reparent the LocalScript it didn’t work :rofl::rofl: