✓ Accepted answer
This is working before reseting, but not after, cause the :AddAccessory() function changes he parent of the accessory, so logiclly, the accessory that was stored in server storage is no longer there because we changed its parent, and accessories that are not parented to the player after running the game won't stay there after dying, now what you gotta do is use the :Clone() function, now this is useful it will make a copy of the instance put in its argument, and like that you're original will stay there and there's no problem with loosing the copy.
Also you're script had a ton of problems such as the (myplayername) thing, how will that work? since each player has a different name how will you do that, this is a situation you're always gonna meet, so pay attention, hit is refering to the player's body parts, thenn doing hit.Parent:FindFirstChild is refering to the player that touched's humanoid.
So this is probarly your script
wait(3)
local accessory = game:GetService("ReplicatedStorage").AngelWings:Clone()
script.Parent.Touched:Connect(function(hit)
if hit. Parent:FindFirstChild("humanoid") then
workspace.(myplayername).Humanoid:AddAccessory(accessory)
end
end)
3 comments
Shouldn't you use clone?
The error explains itself?
I mean it works before i reset character