I'm making dagger throw for a game I'm working on, however I only know how to script the dagger aiming at my mouse, and I don't know how to make it so the dagger points away from my torso and travels in a straight line towards where I'm facing, here's the code to spawn it:
Remote.OnServerEvent:Connect(function(Player, Mouse)
local Character = Player.Character or Player.CharacterAdded:wait()
local ThrownDagger = DaggerModel:Clone()
ThrownDagger.Parent = workspace
ThrownDagger.Anchored = false
ThrownDagger.CanCollide = false
ThrownDagger.Name = "ThrownDagger"
ThrownDagger.CFrame = Character.UpperTorso.CFrame
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BodyVelocity.Velocity = Mouse.LookVector*50
BodyVelocity.Parent = ThrownDagger
Apologies if it's messy or poorly written, I only started recently and this game is mostly for the sake of practice. Any help would be appreciated.
