Hello. I am working on a finishing move for a sword and I wanted it to be unique, so it creates a ghost of yourself on to the side that mirrors the action. However, It doesn’t work whenever I try to change values of the individual parts, like collision and material. The only part that seems to be affected by the code is the HumanoidRootPart. However putting print(bodypart) actually does work.
player.Character.Archivable = true
local clone = player.Character:Clone()
player.Character.Archivable = false
clone:FindFirstChild("The Crucible"):Destroy()
clone.Parent = workspace
clone.PrimaryPart.Position = player.Character.PrimaryPart.Position
for i, bodypart in pairs(clone:GetDescendants()) do
if bodypart.ClassName == "Part" then
bodypart.BrickColor = BrickColor.new("Really red")
end
end