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 » Scripting Helpers
Home Search
 

Player Transparency Script - A little help? (Lines 5-7)

Previous Thread :: Next Thread 
tkcmdr is not online. tkcmdr
Joined: 27 Nov 2011
Total Posts: 94
04 May 2014 10:41 AM
function onPlayerEntered(Player)
if Player.Character == nil then
print 'Player found, confirmed'
repeat wait() until Player.Character ~= nil
x = Player.Character:GetChildren()
if x.className == "Part" then
x.Transparency = 0

end
end
end

game.Players.PlayerAdded:connect(onPlayerEntered)

The above code is tasked with making players transparent when they enter. I am not worried about making their hats transparent, rather just their arms, legs, torso, and head transparent. I am getting nothing on my output, and I have yet to see printing do anything for me. I believe the problem lies somewhere in lines 5-7, but I'll leave that to you. Thank you in advance to those who help me resolve this problem.

Have a nice day!

- TKCMDR
Report Abuse
Krypticon is not online. Krypticon
Joined: 12 Feb 2014
Total Posts: 680
04 May 2014 11:00 AM
Not sure if this helps, but the C in 'className' needs to be capitalised :)
Report Abuse
tkcmdr is not online. tkcmdr
Joined: 27 Nov 2011
Total Posts: 94
10 Jul 2014 10:47 AM
Thank you for trying to help, but after viewing the post over a few times, I had realized that I had set the player transparency to 0, which would make the player completely opaque. In addition, line 6 (Of the script in this post) needs to be fixed. I have fixed the script a long time ago, but I wanted to say what was wrong with this just to let you know that my script was not working simply because of a few simple oversights. Pretty embarrassing, but at least you know.

Have a nice day!

- TKCMDR
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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