pawnz
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 286 |
|
|
| 21 Nov 2015 12:07 AM |
function Disembark() occupant.BrickColor = BrickColor.new"Bright red" use.BrickColor = BrickColor.new"Bright red" local w = turret:findFirstChild("Player") if w and w.Part1 then local t = w.Part1 w:Destroy() t.CFrame = turret.Body.CFrame + turret.Body.CFrame.lookVector * 6 w.Part1.Parent.Humanoid.Sit = false for i, v in pairs(t.Parent:GetChildren()) do
if v:IsA("BasePart") then v.Transparency = 0 elseif v:IsA "HumanoidRootPart" then <--- Fix needed here <--- <--- <--- v.Transparency = 1 <--- Fix needed here <--- <--- <--- elseif v:IsA("Hat") then v.Handle.Transparency = 0
end end end end |
|
|
| Report Abuse |
|
|
pawnz
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 286 |
|
|
| 21 Nov 2015 12:08 AM |
HumanoidRootPart turns visible and Blue, trying to get it off of the list of "Basepart" that all turns to transparency = 0
Can anyone help me? |
|
|
| Report Abuse |
|
|
pawnz
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 286 |
|
| |
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 21 Nov 2015 12:18 AM |
| is 'HumanoidRootPart' a class name? I can't find any docs about it. |
|
|
| Report Abuse |
|
|
pawnz
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 286 |
|
|
| 21 Nov 2015 12:22 AM |
| HumanoidRootPart is a Bright blue part that occupies the same space as the players torso, and it is categorized under "BasePart" because the script makes it visible upon exit/disembarking. |
|
|
| Report Abuse |
|
|
pawnz
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 286 |
|
| |
|
pawnz
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 286 |
|
|
| 21 Nov 2015 12:37 AM |
Fixed it.
w.Part1.Parent.HumanoidRootPart.Transparency = 1 |
|
|
| Report Abuse |
|
|