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)
end
21:45:14.293 Stack Begin - Studio
21:45:14.293 Script ‘Workspace.Tinker.AimScript’, Line 10 - function move - Studio - AimScript:10
21:45:14.293 Script ‘Workspace.Tinker.AimScript’, Line 49 - Studio - AimScript:49
21:45:14.294 Stack End - Studio
I strongly recommend that you use CFrame.LookAt. You’ll want to set the rocket models primary part’s CFrame to the cframe created with CFrame.LookAt by using the SetPrimaryPartCframe method. Make sure that primary part’s front face is facing towards the tip of the rocket.
EDIT: I just realized that you wanted to rotate it using a body Gyro. My bad. I’ll keep my response up incase other people see this answer and it’s what they need.