(ALL I NEEDED TO ADD WAS: ####a.Orientation=a.Orientation+Vector3.new(-90,0,0)
So when throwing, the knife works fine and stuff but i cant figure out how to rotate it 90 degrees down (to make the top face wherever the user is throwing)
##where to read: lines 13 to 20
####side question: i was wondering if you could achieve this with lookvector?
event = game:GetService("ReplicatedStorage")["KnifeEvent"]
storage=game:GetService("ReplicatedStorage")
event.OnServerEvent:Connect(function(player, mode, handle, mousepos)
local char=player.Character
if mode=="Stab"then
print("stab event happening")
handle.knifestab:Play()
handle.Swing.Value=true
wait(0.2)
handle.Swing.Value=false
elseif mode=="Throw" then
local a = storage["ThrownKnife"]:Clone()
a.Parent=workspace
a.CFrame=CFrame.new(handle.Position+handle.CFrame.lookVector*(1),mousepos)
a.Velocity=a.CFrame.lookVector * (300)
a.ThrowHandling.Disabled=false
a.ThrowHandling.Delete.Disabled=false
handle.knifethrow:Play()
a["OwnerTag"].Value=player
elseif mode=="Damage" then
mousepos:FindFirstChild("Humanoid"):TakeDamage(105)
end
end)
