generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: how do i make all parts in a grouped part invisible?

Previous Thread :: Next Thread 
Sacred_Eternal is not online. Sacred_Eternal
Joined: 21 Feb 2014
Total Posts: 473
28 Jun 2017 07:21 PM
note: i'm still new to scripting.
okay so.
i'm trying to make a stand script, and i just can't make my stand go invisible
like.
it's arm/grouped part of it is like "StandTurretRightArm"
and all of it parts in it are just things like Part's, Wedge, REF.
i tried doing something like
Workspace.Sacred_Eternal.StandTurretRightArm.Part.Transparency = "1"
but still, nothing. none of the parts named "Part" isn't invisible, at all

how do i make things like StandTurretTorso, StandTurretHead,StandTurretLeftLeg, and other body parts invisible?
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
28 Jun 2017 07:23 PM
What is a grouped part? Do you mean a Model? What is a StandTurret?
Report Abuse
Sacred_Eternal is not online. Sacred_Eternal
Joined: 21 Feb 2014
Total Posts: 473
28 Jun 2017 07:25 PM
first question answered itself with the second question
also, third question is that StandTurret is what it's called
Report Abuse
TheArtisticDragon is online. TheArtisticDragon
Joined: 04 Mar 2017
Total Posts: 173
28 Jun 2017 07:26 PM
i think it would go something like this for script

script.Parent:GetAllChildren(function(blahblah)
if blahblah.transparency == 0 then
blahblah.transparency = 1
end
end)

then insert script into the model

tbh i dont know if it will work
Report Abuse
Tunablesea28e3 is not online. Tunablesea28e3
Joined: 07 Jun 2015
Total Posts: 8
28 Jun 2017 07:28 PM
I'm pretty sure transparency returns as an integer, did you try removing double quotations? ("")
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
28 Jun 2017 07:29 PM
for _, v in pairs(model:GetChildren()) do
if v.Name == "StandTurretTorso" or v.Name == "StandTurretHead" or v.Name == "StandTurretLeftLeg" then--etc...
v.Transparency = 1
end
end
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
28 Jun 2017 07:30 PM
No, putting it as a String still works, but I still think it should be a number value.
Report Abuse
Sacred_Eternal is not online. Sacred_Eternal
Joined: 21 Feb 2014
Total Posts: 473
28 Jun 2017 07:40 PM
Players.Sacred_Eternal.PlayerGui.Script:2: attempt to index global 'model' (a nil value)
Report Abuse
Sacred_Eternal is not online. Sacred_Eternal
Joined: 21 Feb 2014
Total Posts: 473
28 Jun 2017 07:40 PM
@jonah, by the way
Report Abuse
silvereye56 is not online. silvereye56
Joined: 29 Sep 2013
Total Posts: 60
28 Jun 2017 07:43 PM
if its a group, put it in lighting or other stuff, and do

local x = game.Lighting.group group is the group u want to be invisible

x.Transparency = 1
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image