I want a model to have a position. I tried to set a primary part cframe but it kept telling me it was wrong.
Cursor.Move:Connect(function()
local CursorPosition = Cursor.Hit.p
local TurretPosition = Turret:SetPrimaryPartCFrame()
local LookVector = Vector3.new(CursorPosition.X,TurretPosition.Y,CursorPosition.Z)
TurretPosition.CFrame = CFrame.new(Gun.Position, LookVector)
end)

15 comments
ok
my brain in now scrambled from that but ok thank you
In the local turretPosition = turret.Position it wont work shouldnt it be cframe?
It has to be a Vector3, can you tell me why it’s not working?
this pops up 15:18:58.678 - Position is not a valid member of Model
Ah, easy fix, let me know if that worked!
ok
now this pops up 15:59:24.962 - Model:GetPrimaryCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this.
Click on the Model Object and look in properties, is there a PrimaryPart Object set? If not, then click the empty box and click the centre most Instance of the model
would i have put the part name inside of Turret:GetPrimaryCFrame()? Like Turret:GetPrimaryCFrame(Body)?
That did it
thank you so much!
IVE BEEN WORKING ON THIS FOR WEEKS AND YOU DID IT! Thank you so much!!!!
You’re welcome!^•^
Dyk how to make the turret shoot where the mouse is?