of     1   

skellione
#221331856Friday, July 14, 2017 9:05 PM GMT

So as the title says, does anyone know a script where your hats are locally transparent and others can view your hats but you cannot?
Flubberlutsch
#221333399Friday, July 14, 2017 9:27 PM GMT

1. You need FilteringEnabled for those sort of local changes to work. Enable it in Workspace properties. 2. Create a LocalScript in game.StarterPlayer.StarterCharacterScripts with the following code: local humanoid = char.Parent:WaitForChild("Humanoid") function hideaccessories() for i,p in pairs(humanoid:GetAccessories()) do p.Handle.Transparency = 1 end end function showaccessories() for i,p in pairs(humanoid:GetAccessories()) do p.Handle.Transparency = 0 end end If you want to make the accessories invisible upon spawn, add this line: hideaccessories() ~ Flub
Flubberlutsch
#221333509Friday, July 14, 2017 9:29 PM GMT

Whoops messed something up, replace local humanoid = char.Parent:WaitForChild("Humanoid") with local humanoid = script.Parent:WaitForChild("Humanoid")
skellione
#221333919Friday, July 14, 2017 9:35 PM GMT

Thanks but where do I put "hideaccessories()"
micheru
#221334853Friday, July 14, 2017 9:47 PM GMT

--no you dont need any of that just do this repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character local player = game.Players.LocalPlayer local hat = player.Character.HATNAMEHERE hat.Transparency = 0 hat.LocalTransparencyModifier = 1 --this code must be in a local script to work
Mescalyne
#221334999Friday, July 14, 2017 9:48 PM GMT

micheru that doesn't work you need to have that called every render cycle to use localtransparencymodifier because the engine overrides any changes at the beginning of every frame
Flubberlutsch
#221335044Friday, July 14, 2017 9:49 PM GMT

micheru your answer makes no sense as the post title says "hatS", he wants to perform the action on all accessories. skelli, you can put the command hideaccessories() anywhere in the same script. If you want it to run on spawn, just put it below the rest of the code.
skellione
#221349373Friday, July 14, 2017 11:42 PM GMT

Flubber none of it is working, did I do something wrong? It's in Starter Player Scripts and it's in a local script. local humanoid = script.Parent:WaitForChild("Humanoid") function hideaccessories() for i,p in pairs(humanoid:GetAccessories()) do p.Handle.Transparency = 1 end end function showaccessories() for i,p in pairs(humanoid:GetAccessories()) do p.Handle.Transparency = 0 hideaccessories() end end

    of     1