Hey Devs, how can I make this drone face the angle he’s going to.
So like for example in this video how can I make the drone look at the spawn location?
I use BodyPosition to move the drone.
local Part = game.Workspace.Move
local Lookpart = game.Workspace.Look
local RunService = game:GetService("RunService")
RunService.Heartbeat:Connect(function()
local LookAtPart = Lookpart.CFrame:PointToWorldSpace(Vector3.new(0,0,-3)):Lerp(Part.Position, .1)
Lookpart.CFrame = CFrame.lookAt(Lookpart.Position, LookAtPart, Lookpart.CFrame.UpVector)
end)
Amazing, works perfectly as expected, thank you so much.