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

How to make random movement look to goal point?

Asked by 5 years ago

Hello,

first sorry for my english.

Problem: We have made a pet who flys randomly around, but we find no way to rotate the pet in the right position to the end point.

If the Pet is only by the character we use this script.Parent:SetPrimaryPartCFrame ( script.Parent.Parent.Parent.LowerTorso.CFrame + (direction * increment) + Vector3.new(-8,0,0.2) )

for the right direction but how we can solve this without the cframe of the character?

Thx in advance.

0
use BodyGyro and the LookAt CFrame constructor User#23365 30 — 5y

Answer this question