|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 28 Jun 2017 07:28 PM |
| I'm pretty sure transparency returns as an integer, did you try removing double quotations? ("") |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 28 Jun 2017 07:40 PM |
| Players.Sacred_Eternal.PlayerGui.Script:2: attempt to index global 'model' (a nil value) |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|