i'm trying to implement a viewmodel in my game by cloning the player's character and the tool, but when i try to parent to tool's clone to the cloned character roblox studio freezes (from what i can tell) indefinitely.
the code in question (clientside)
character.Archivable = true
local viewModel = character:Clone()
character.Archivable = false
local viewTool = tool:Clone()
viewModel.Parent = character
viewTool.Parent = viewModel
i know it's just the part that sets the parent because if i comment that line out it doesn't freeze, but the tool is invisible.

1 comment
redownloading it doesnt work, and my computer works perfectly fine