This is My code
local Case = script.Case:Clone()game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Case = script.Case:Clone()
Case:SetPrimaryPartCFrame(Character.HumanoidRootPart.CFrame)
Case.Parent = Character
local weld = Instance.new("ManualWeld")
weld.Part0 = Case.PrimaryPart
weld.Part1 = Character.PrimaryPart
weld.C0 = weld.Part0.CFrame:ToObjectSpace(weld.Part1.CFrame)
weld.Parent = weld.Part0
end)
end)
--ERROR ON LINE 4
someone Please tell me how to fix this this was in a katana tutorial by RED plys if that helps.

5 comments
even if you set PrimaryPart in studio it will be reset after :Cloned
also ManualWeld is WeldConstraint these days i believe
ok thankyou
PrimaryParts wont be reseted after Cloning idk where you get that
i don't get that