Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

parenting a cloned tool freezes roblox studio?

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 answer

Redownload Roblox Studio. You should be good to go! Otherwise, it might be your computer having errors. - Leo

1 comment

0

redownloading it doesnt work, and my computer works perfectly fine

This discussion is preserved as it was. New answers, comments, and votes are closed.