Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gui button script does not adds accessory to a player character. Any idea how to fix this script? [closed]

Asked by 5 years ago

Hey everyone, I have problem with this script, basically it should add custom accessory to a player. Any idea how to fix that?

local playerModel = game.Players.LocalPlayer.Character
local humanoid = playerModel:WaitForChild("Humanoid")

script.Parent.MouseButton1Click:Connect(function()
if humanoid then
playerModel:AddAccessory(game.ReplicatedStorage.DarkWings)

end
end)

Closed as Too Broad by User#24403

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?