Since a group is a collection of parts, you will need to loop through the parts and manually change their transparency to 1. For this example, we will be using the "for i,v in pairs" loop (https://developer.roblox.com/articles/For-Loops). First, we will need to get the parts in the model for the loop to cycle through. We can the parts (otherwise known as "Children") of a model by using a built-in roblox feature ":GetChildren" (https://developer.roblox.com/api-reference/function/Instance/GetChildren). After that, we will need to create the variables and assign one the table of parts. In all, it should look like this.
1 | local model = game.Workspace.Model |
2 | local childrenInModel = model:GetChildren() |
Next, we will need to add the "for i,v in pairs" loop. Now that we have table of parts in the model, we can go on and set the loop. It should look similar to this.
1 | for i,v in pairs (childrenInModel) do |
Since anything besides parts can be in a model, we will need to check whether the part is an actual part. We can do this by adding another roblox built-in feature ":IsA" (https://developer.roblox.com/api-reference/function/Instance/IsA). Basically, this feature checks whether the part is what you want to check it is. So we would ":IsA" like this.
1 | for i,v in pairs (childrenInModel) do |
Finally, we will need to change the transparency of the object to make it "disappear". This is as easy as simply writing "v.Transparency = 1". So in the end, your code should look similar to this.
1 | local model = game.Workspace.Model |
2 | local childrenInModel = model:GetChildren() |
4 | for i,v in pairs (childrenInModel) do |