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

Question about the Event called "MoveTo" or "Move"?

Asked by 5 years ago

I am looking into a script that basically tracks the torso so if i move my character left the object moves left or any other direction the upperTorso moves. So my question is, is there another event that tracks the Torso but does not move to it.

function move(target)
    local dir = (target.Position - bin.Position).unit
    local spawnPos = bin.Position
    local pos = spawnPos + (dir * 1)
    bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos,  pos + dir)
    bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
end

function moveto(target)
    bin.BodyPosition.position = target.Position
    bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
end

this is a what i am talking about.

0
what is deprecated Carforlife1 59 — 5y
0
findFirstChild vs FindFirstChild fredfishy 833 — 5y
0
Ohh i didnt notice that, thats something i need to correct, but tge script works just i wanted to know if there are any events that just have it turn and look at player instead of following it, like the game Alone how the npc heads move thatd what i am trying to make. Carforlife1 59 — 5y

Answer this question