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

How do I move players/clones that follow the orientation?

ps, this question connects with this question


Hello! The title may be confusing, but I'm trying to make a clone that follows the player on their left. Apparently, they don't follow the orientation and keep on going behind or in front. How am I supposed to solve this?

local char = game.Players.iiDkOffical.Character
char.Archivable = true

local bob = char:Clone()
bob.Parent = char
bob.Animate.Disabled = true
bob.Animate.Disabled = false
while true do
    wait()
    bob.Humanoid:MoveTo(char.HumanoidRootPart.Position + Vector3.new(5,0,0))
end

2 comments

0

is it behind the player and on the left?

0

what? it's just the left. behind is a error

1 answer

✓ Accepted answer
local char = game.Players.iiDkOffical.Character
char.Archivable = true
Distance = 5

local bob = char:Clone()
bob.Parent = char
bob.Animate.Disabled = true
bob.Animate.Disabled = false
while true do
    wait()
    bob.Humanoid:MoveTo(char.HumanoidRootPart.Position + char.HumanoidRootPart.CFrame.RightVector * Distance)
end

This should work You can change Distance

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