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: "HumanoidRootPart" for V how do I define?

Previous Thread :: Next Thread 
pawnz is not online. 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 is not online. 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 is not online. pawnz
Joined: 22 Feb 2010
Total Posts: 286
21 Nov 2015 12:15 AM
Bump
Report Abuse
DrHaximus is not online. 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 is not online. 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 is not online. pawnz
Joined: 22 Feb 2010
Total Posts: 286
21 Nov 2015 12:33 AM
bump
Report Abuse
pawnz is not online. pawnz
Joined: 22 Feb 2010
Total Posts: 286
21 Nov 2015 12:37 AM
Fixed it.

w.Part1.Parent.HumanoidRootPart.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