local head = script.Parent
local drone = head.Parent
local character = workspace:WaitForChild("Savory_Ghost")
game:GetService('RunService').Stepped:Connect(function()
local RotationOffset = (drone.PrimaryPart.CFrame - drone.PrimaryPart.CFrame.p):inverse()
drone.Torso.Head.Transform = RotationOffset * CFrame.New(head.Position, character.Head.Position)
end)
I am attempting to make an NPC head part face me. The script says that the last line (not end)) is attempting to call a nil value. None of those values are nil (checked via print functions). What's happening here?
