Goal
I’m currently working on a person tracking/following spotlight feature, the goal is to have it where I can reset it when I need to.
Error
My error is that when I run the script to make it follow; it doesn’t turn from the correct angle. Click on me to see the example. The glowing side is what has the light and that’s the side I need to face the player.
Script
while true do
wait(.05)
if game.Workspace:FindFirstChild("Just2Terrify") and game.Workspace["Just2Terrify"]:FindFirstChild("Head") then
script.Parent:SetPrimaryPartCFrame(CFrame.new(script.Parent.PrimaryPart.Position,game.Workspace.Just2Terrify.Head.Position))
end
end