Hello!
I am trying to create a character customization screen however when I attempt to attach an accessory the accessory will appear in the explorer will not attach properly when in game. I am pretty bad at explaining stuff so please see the video below
1 Like
Fixed this!
After searching around a bit I found out that LocalScripts donโt attach accessories very well so I switched to using a RemoteEvent to attach accessories.
LocalScript:
if selected == "Hairstyle" then
for i, v in pairs(cc:GetChildren()) do
if v:IsA("Accessory") then
local f = v:FindFirstAncestor("HairAttachment")
if not f then
v:Destroy()
end
end
end
repstor.Accessory:FireServer(selected,itemname)
end
Script:
local repstor = game:GetService("ReplicatedStorage")
local cc = game.Workspace.CharacterModel.CC
repstor.Accessory.OnServerEvent:Connect(function(user,selected,itemname)
local items = repstor.Items
local clone = items[selected][itemname]:Clone()
cc.Humanoid:AddAccessory(clone)
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.