So, I have created a spin for element GUI, and to be more specific, I have scripted the magic within the tools.
And the spin for magic GUI works perfectly fine, but I need some kind of script that will ungroup a model when the model will appear in the player’s backpack, so the tools would be visible and ready to use.
You could loop through the contents of the Model with a “for” loop, and set each of the parts parent to the players backpack. Then delete the Model once all the parts have been extracted.
I we’re thinking of a code that will ungroup the model when it’ll be found in a players inventory, this would’ve been an easier way, sadly I don’t know how to make it.
Unfortunately ungrouping a Model, at least to my knowledge, can not be done with as script. The closest thing would be to do as I suggested, and change the parent of all the objects inside the Model and then :Destroy() it after. It would be equivalent to ungrouping the model. Here is a function that could do it for you: