I've tried this script here:
wait(1)
local players = game:GetService("Players")
local player = game.Players.LocalPlayer
game:GetService("ServerStorage")
while true do
if player.Character:FindFirstChild("Humanoid").Health==75 then
game.Players.LocalPlayer.Character.Humanoid:AddAccessory(game.ServerStorage.GreyHair)
wait(5)
else
print("nope")
game.Players.LocalPlayer.Character.Humanoid:AddAccessory(game.ServerStorage.GreyHair)
wait(5)
end
end
But I get errors saying that 'GreyHair' is not a valid member of ServerStorage. Is there a more efficient way of doing this? Note: I would like to just change the hair and face of the character. Thank you!

1 comment
LocalScripts have no access to ServerStorage's descendants. Try moving GreyHair to ReplicatedStorage.