Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
Edited 4 years ago

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
0
is it behind the player and on the left? raid6n 2196 — 4y
0
what? it's just the left. behind is a error iiDkOffical 109 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago
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

Ad

Answer this question