Humanoid:MoveTo(CFrame.new(HRP.Position * Vector3.new(0,0,math.random(-10,10)), Vector3.new(0,math.random(-30,30),0)))
Humanoid:MoveTo(
CFrame.new(HRP.Position * Vector3.new(0,0,math.random(-10,10)), Vector3.new(0,math.random(-30,30),0))
)
CFrame.new(Vector3, Vector3)
returns a CFrame constructed from two Vector3s, not a Vector3
1 Like
I thought :MoveTo() takes CFrames no? Would I just remove the Cframe.new then?
MoveTo does not take CFrames, it takes Vector3s. Remove the CFrame.new.
1 Like
It just takes a Vector3
and an optional BasePart
It depends on what your intention is
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.