Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is my cloning script acting weird?

So in the game, I tried to clone a zombie. However, if the torso is not anchored, then the game just puts the cloned model in the original's position. If the torso is anchored, then the cloned model is placed in the game in the intended location. However, even if I tried to unanchor it later on, the moment it is not anchored, it teleports back to the original's position. Just what is going on?

1 comment

0

Please post the script

2 answers

Humanoids are weird.

Set the CFrame if the torso whilst it's unanchored.

eg:

zombie = game.Workspace.Zombie:Clone()
zombie.Torso.Anchored = false --Just making sure
zombie.Torso.CFrame = CFrame.new(0, 10, 0) --change the X,Y,Z to whatever

Thanks for the help, but I figured it out....I was messing around with the Torso, when I should be changing the HumanoidRootPart.

This discussion is preserved as it was. New answers, comments, and votes are closed.