Hey there! The issue is that your 'jun' pointer was to 'Players.Player1', which does not include the player's model. A quick solution that keeps the same premise as the script you've given us to work with is as follows:
03 | local playerIndex = script.Parent.Parent.Name; |
04 | local player = workspace:WaitForChild(playerIndex); |
06 | for _, accessory in pairs (player:GetChildren()) do |
07 | if (accessory.ClassName = = "Accessory" ) then |
08 | accessory.Handle.Transparency = 1 ; |
Essentially, we find the local player's name and index it in the workspace using the :WaitForChild(string 'childName')
method, and then looping through the player's model, setting the transparency of all accessory objects to 1.
Hope this helps!