player = game.Players.LocalPlayer h = player.Character.Head script.Parent.MouseButton1Down:connect(function() h.face:Destroy() for _,v in pairs(player.Character:GetChildren()) do if v.ClassName == "Hat" then v:Destroy() game.ServerStorage.NatsuHair1:clone().Parent = player.Character game.ServerStorage.NatsuHair2:clone().Parent = player.Character end end
ServerStorage can only be accessed by the server; That is, LocalScripts and pretty much everything related to clients or clients themselves cannot access things inside of ServerStorage. Use ReplicatedStorage if you need to store things that both the server and cliens can access.