So I wanna rotate a part of a model to face the position of another part. I have tried the following script, but it always return the error Argument 1 missing or nil
..
How would I go about fixing this?
Here's the line of code I have that's suposed to rotate it:
script.Parent.Top:SetPrimaryPartCFrame(script.Parent.Top.PrimaryPart.Position, game.Workspace:FindFirstChild(Target).HumanoidRootPart.Position)
Note: "game.Workspace:FindFirstChild(Target).HumanoidRootPart.Position" is the position the model is supposed to look at.
Any help is appreciated!
Thanks!