As you can see my turret is broken How do I prevent that from happening(also I don’t know what is that broken part of the turret is called and sorry for bad grammar)
Assuming there are no errors, try making the waits longer. Also, is Workspace["F-16C Fighting Falcon"] a model? If it is, try retrieving the position value of one of it’s parts.
Yeah I had the same problems as well, if the part not orientated (0,0,0) then the CFrame constructor will treat the way the turret should face up wrong like what has happened.
To fix this you can add a offset rotation CFrame in order to correct it out like so:
while true do
wait(0)
script.Parent.CFrame = CFrame.new(script.Parent.Position, game.Workspace["F-16C Fighting Falcon"].Position)
script.Parent.CFrame *= CFrame.fromOrientation(a,b,c)
wait(0)
end
You will have to find the correct a,b,c values to orientated it correctly which you can do by using an Attachment CFrame. An example is in my resource which I made for these types of situations: