|
| 20 Jun 2016 08:15 PM |
Here is the script
tool.Activated:connect(function() for i,v in pairs(player:GetChildren()) do if v:IsA("Part") then v.Transparency = 0.5 end end end)
The problem is I'm trying to take all the parts from the character and setting their transparency, but this is not working for a reason. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2016 08:16 PM |
| Also, the player:GetChildren() -player is a function so don't worry |
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 20 Jun 2016 08:33 PM |
local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:wait()
for i,v in next, char:GetChildren() do if v:IsA("BasePart") then v.Transparency = 0.5 end end
|
|
|
| Report Abuse |
|
|
|
| 20 Jun 2016 08:51 PM |
| Oo, thanks! -worked great. |
|
|
| Report Abuse |
|
|