self = game.Players.LocalPlayer.Character.Weapon
headCFrame = game.Players.LocalPlayer.Character.Head.CFrame
aimVector = CFrame.new(headCFrame.p, headCFrame.p + headCFrame.lookVector).lookVector
local bullet = Instance.new("Part", workspace)
bullet.CFrame = CFrame.new(self.CFrame.p, self.CFrame.p + aimVector) * 5 -- this line creates the output
The output is bad argument #2 to '?' (Vector3 expected, got number)
I'm making a weapon, and for the purpose of simplifying the thread I just made a bunch of quick variables (in reality self is a part welded to the character's arm) I tested the value of self.CFrame.p + aimVector by checking its .ClassName which printed ClassName is not a valid member of Vector3
I'm not sure if I'm making a stupid mistake or if there's some weird kink to CFrame that I don't know about but help would be greatly appreciated.
