I have a script that basically welds an accessory to my head. It works fine in a localscript, however I need it in regular script. So, I copied and pasted it into a regular script but now the script automatically deletes all the children of the accessory. Am I doing something wrong? How could I prevent this?
wait(5) local player = game.Players.TrixitesWasTaken local char = player.Character local eyes = game.ReplicatedStorage.Accessory:Clone() local head = char.Head head.Transparency = 1 eyes.Handle.Handle.C1 = CFrame.Angles(math.rad(180), 0, 0) eyes.Handle.Eye.Eye.C1 = CFrame.Angles(math.rad(180), 0, 0) eyes.Handle.Eye1.Eye1.C1 = CFrame.Angles(math.rad(180), 0, 0) eyes.Handle.Middle.Middle.C1 = CFrame.Angles(math.rad(180), 0, 0) eyes.Handle.Part.Part.C1 = CFrame.Angles(math.rad(180), 0, 0) eyes.Handle.Handle.Part1 = head eyes.Handle.Handle.Part0 = eyes.Handle eyes.Handle.Part.Part.Part1 = head eyes.Handle.Middle.Middle.Part1 = head eyes.Handle.Eye1.Eye1.Part1 = head eyes.Handle.Eye.Eye.Part1 = head