i have the accessory as a child of the localscript (which is in startercharacterscripts) and its name is "Bone"

the code for the script is here:

local character = script.Parent
character.Humanoid.BreakJointsOnDeath = false

character.Humanoid.Died:Connect(function()
	character.Humanoid:AddAccessory(script.Bone)
end)

3 comments

0

and then nothing happened

0

wouldnt you do this on the server or by a regular script

0

you need to use remotes, you fire a remote event to execute that function