Hey, I have problem with this script, the main function of this script is to add to a player accessory (Wings) from ServerStorage after player will click a gui button. Accessory should attach to a player UpperTorso but for some reason my script doesn't work. So how can i fix that script to attach this Accessory to player (Accessory should be visible to all players on the server not only for the client)
Any help is going to be appreciated :)
local A = game.Players.LocalPlayer.Character
local humanoid = A:WaitForChild("Humanoid")
script.Parent.MouseButton1Click:Connect(function()
if humanoid then
humanoid:AddAccessory(game.ServerStorage.Wings:Clone())
local handle = game.ServerStorage.Wings.Handle
local attachmentH = Instance.new("Attachment", handle)
attachmentH.Position = A.humanoid.UpperTorso
end
end)
Console error: "Wings is not a valid member of ServerStorage" (Wings accessory is placed in ServerStorage)

1 comment
i n d e n t a t i o n