Anybody know why my accessorys arent registering?

do you guys know why my accessorys dont register inside of a character? heres my script to check but even when the accessorys are put in the character server sided they don appear

local character = script.Parent.Rig

script.Parent.ClickDetector.MouseClick:Connect(function(plr)
	local pos = plr.Character.PrimaryPart.CFrame
	local charCloned = character:Clone()
	charCloned.Name = plr.Name
	plr.Character = charCloned
	charCloned.Parent = workspace
	
	charCloned.PrimaryPart.CFrame = pos
	
	for i,v in pairs(charCloned:GetChildren()) do
		if v:IsA("Part") or v:IsA("MeshPart") then
			v.Anchored = false
		end
	end
	
	for i,v in pairs(plr.Character:GetChildren()) do
		print(v.Name)
		if v:IsA("Accessory") then
			warn("Accessory " .. v.Name)
		end
	end
end)

Server Sided has the accessory in it
image

2 Likes

Manually give the character the Accessories after setting the character:

Humanoid:AddAccessory(YourAccessoryHere)
1 Like

thanks ill try it and see if it works

2 Likes

the accessorys appear but they still dont registering and im using a sever script

1 Like

What you mean dont registering like dont appear?

1 Like

the script doesnt register it inside the character aka its not showing up when i print the whole character and not appearing when i search for accessorys inside the character

1 Like

Well instead of keeping the Accessory inside the character, instead take it out and put it somewhere like ReplicatedStorage, and clone it then parent it to workspace and manually add the accessory as i mentioned above.

1 Like

thats basically what im doing inside my script its cloning the accessory from replicatedstorage into the character with that addaccesory thingy

1 Like

i solved it, i was checking for accessorys AFTER the character was cloned so it was detecting it sorry :smiley:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.