|
| 19 Nov 2013 07:57 AM |
K so the title explains it all any help?
|
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 19 Nov 2013 08:03 AM |
Worn hats are located inside the Character as a Hat object. Inside the Hat object you should find a part called "Handle" which if you change it's Transparency property will give you the desired result. |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 08:09 AM |
| Hello ben, So would I do player.Character or nope? |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 08:10 AM |
It's your choice. You could define it from workspace.
2 ways. --first one workspace.CHARACTERNAME.Hat.Handle.Transparency = 1 --second one game.Players.PLRNAME.Character.Hat.Handle.Transparency = 1
|
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 10:33 AM |
Or you can use the working way for Index, Object in pairs (Game.Players.Player.Character:GetChildren()) do pcall(function() Object.Handle.Transparency = 1 end) end |
|
|
| Report Abuse |
|
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
|
| 19 Nov 2013 10:41 AM |
| and that will also turn all your equipped tool fully/partly invisible :D |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 10:51 AM |
I see no problem with that because the only reason to turn the hats invisible is for a invisibility tool but ok pcall(function() if not Object:IsA("Tool") then Object.Handle.Transparency = 1 end end) |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 10:57 AM |
game.PlayerAdded:connect(plr) game.Character:connect(chr) for k,v in pairs(chr:children()) do if v:IsA("Hat") then v.Handle:remove() end end end) end)
This will remove hats when a play enter the game. |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 11:02 AM |
game.PlayerAdded:connect(plr) plr.CharacterAdded:connect(chr) for k,v in pairs(chr:children()) do if v:IsA("Hat") then v.Handle:remove() end end end) end)
fix |
|
|
| Report Abuse |
|
|