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.

3 comments

0

what is deprecated

0

findFirstChild vs FindFirstChild

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.