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: invisibility script

Previous Thread :: Next Thread 
F18ACE is online. F18ACE
Joined: 24 Jun 2015
Total Posts: 4025
26 Jun 2016 10:00 PM
I'm trying to make a script that will turn a player invisible when they enter a seat. Does anybody here know the pathfinding I should use to identify the parts? (torso, Arm1, etc.)
Report Abuse
F18ACE is online. F18ACE
Joined: 24 Jun 2015
Total Posts: 4025
26 Jun 2016 10:05 PM
bump
Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
26 Jun 2016 10:08 PM
Pathfinding isn't really related to that at all. Just connect a Changed event to the seat and check and see if the 'Occupant' property was changed when it's fired. If it was, get the value of that property (which would be a Player object if it's not nil), get the player's character and then iterate through it and set the transparency for everything that is a BasePart to 0.
Report Abuse
F18ACE is online. F18ACE
Joined: 24 Jun 2015
Total Posts: 4025
26 Jun 2016 10:10 PM
I already have the activation line, I just need to know how to identify the parts.
Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
26 Jun 2016 10:20 PM
Well, if you want to see what type of limb it is, just include a check.

if (part.Name == "Right Arm") then
-- code here
end
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
26 Jun 2016 10:21 PM
for i,v in pairs (Character:GetChildren()) do
if v:IsA"BasePart" then
v.Transparency=1
end
end


gibbe ur hats https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=10537769
Report Abuse
F18ACE is online. F18ACE
Joined: 24 Jun 2015
Total Posts: 4025
26 Jun 2016 10:23 PM
thanks
Report Abuse
F18ACE is online. F18ACE
Joined: 24 Jun 2015
Total Posts: 4025
26 Jun 2016 10:25 PM
just tried the script, but nothing happened.
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
26 Jun 2016 10:26 PM
you have to define Character


gibbe ur hats https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=10537769
Report Abuse
F18ACE is online. F18ACE
Joined: 24 Jun 2015
Total Posts: 4025
26 Jun 2016 10:26 PM
The script already has it defined as "player", but it still didn't work after changing it.
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