I have a sheep that is supposed to follow behind the player when it is captured, which it does, but it the code I have only set it to stay behind the character on one axis at all times so it often looks strange when the player turns it's torso around, the sheep still follows from that same first direction. Is there a way to have the sheep follow relative to one side of the player instead of along an axis?
repeat -- The position of who possesses the sheep. local followerPosition = hit.Character.PrimaryPart.Position humanoid:MoveTo(followerPosition - Vector3.new(0, 0, -5)) wait() until isBlueSheep == false
You'd have to simply not use an axis. This should keep it 5 studs away
repeat -- The position of who possesses the sheep. local followerPosition = hit.Character.PrimaryPart.Position local mypos = --SHEEP POSITION humanoid:MoveTo( followerPosition+(mypos-followerPosition).unit*5 ) wait() until isBlueSheep == false