Hello there, I need help with bullet projection, I tried to do it and I used this
local ok = script.Parent.Handle.ShootAttachment.CFrame
SomeShit.Size = Vector3.new((RayResult.Positionscript.Parent.Handle.ShootAttachment.WorldPosition).Magnitude,0,0)
SomeShit.CFrame = CFrame.new(ok:Lerp(RayResult.Position,0.5),RayResult.Position)
And I got error with the CFrame line
17:44:27.684 Unable to cast Vector3 to CoordinateFrame - Server - Server:79
17:44:27.684 Stack Begin - Studio
17:44:27.684 Script 'Players.Pixeluted.Backpack.Pistol.Server', Line 79 - Studio - Server:79
17:44:27.684 Stack End - Studio
Thanks for any help!