I was recently make a knife that throws however I hit an error. It wouldn't thrust when it was activated, but it had no errors.
Please help me out! Code:
while wait() do
if mouseDown then
if tick() - StartedDown > 3 then
local OldKnife = script.Parent.Handle
local Knife = script.Parent.Handle:Clone()
Knife:ClearAllChildren()
local BV = Instance.new('BodyVelocity')
Knife.Parent = game.Workspace.Knives
Knife.CanCollide = false
Knife.CFrame = OldKnife.CFrame
OldKnife.Transparency = "1"
BV.Parent = Knife
BV.MaxForce = Vector3.new('1e8,1e8,1e8')
BV.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 50
print('hi')
wait(1)
OldKnife.Transparency = "0"
end
end
end
end
