I disabled the avatar shadows and now I need to disable accessory shadows. I have tried two things. Neither work:
Heres the first one:
game:GetService("Players").PlayerAdded:Connect(function(Player) Player.CharacterAppearanceLoaded:Connect(function(Character) for _, v in pairs(Character:GetChildren()) do if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA ("Accessory") then v.CastShadow = false end end end) end)
Here is the second one:
game:GetService("Players").PlayerAdded:Connect(function(Player) Player.CharacterAppearanceLoaded:Connect(function(Character) for _, v in pairs(Character:GetChildren()) do if v:IsA("BasePart") or v:IsA("UnionOperation") then v.CastShadow = false elseif v:IsA("Accessory") then v.Handle.CastShadow = false end end end) end)
If you trying to do every part in the character, just use char:GetDescendants(), and if you only want accessories, just check if v.Parent is an accessory.
Hope this helps:3
Lighting.GlobalShadows = false -- turn off all shadows