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
|
  |
| 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
|
  |
| 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 |
|
|