Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

parenting a cloned tool freezes roblox studio?

Asked by 2 years ago

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

Log in to vote
0
Answered by 2 years ago

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

0
redownloading it doesnt work, and my computer works perfectly fine TheDude646 72 — 2y
Ad

Answer this question