local bullet = Instance.new("Part",workspace)
bullet.Size = Vector3.new(1,0.5,0.5)
bullet.CFrame = p.Character.HumanoidRootPart.CFrame * m.Hit.LookVector
bullet.CanCollide = false
local BV = Instance.new("BodyVelocity")
BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BV.Parent = bullet
BV.Velocity =(m.Hit.p - p.Character.HumanoidRootPart.Position).Unit*500
m = mouse p = player Whenever I click, this fires. I am trying to make the CFrame look in the same direction I am clicking, how would I fix this.
error:;
22:09:29.110 - Workspace.goodadmins.Tool.LocalScript:58: bad argument #3 to 'CFrame' (CFrame expected, got Vector3)
22:09:29.111 - Stack Begin
22:09:29.112 - Script 'Workspace.goodadmins.Tool.LocalScript', Line 58
22:09:29.113 - Stack End

1 comment
i wanna help on your game