So how to fix this, it doesn't clone and being a part in players also it only works on roblox studio,and not from roblox player, I am cloning a hair btw.
local player = game.Players.LocalPlayer
local d = game:GetService("ReplicatedStorage").Accessories.AwesomeHair:Clone()
d.Parent = game.Workspace:WaitForChild(player.Name)
d.Handle.AccessoryWeld.Part1 = game.Workspace[player.Name].Head
player.Backpack.LocalScript.Disabled = false
script.Parent.Customization.Cover.Visible = true
Open = true
local a = game.Workspace[player.Name]:FindFirstChildOfClass("Accessory")
if game.Workspace[player.Name]:FindFirstChildOfClass("Accessory") == nil then
else
a:Destroy()
end
end

1 comment
I think you have to attach it or something, I'm not too good with accessories.