I'm not too faimilar with clone but i believe you had that wrong, I am using a new part as a substitute. Also you needed to add a maxForce and a new cframe for the part, let me know if this works for you! :)
01 | local Tool = script.Parent |
02 | local Player = game:GetService( "Players" ).LocalPlayer |
03 | local Animations = Tool.Animations |
04 | local ThrowAnimation = Animations.ThrowAnimation |
05 | local Debounce = false |
06 | local ThrowSound = Tool.Handle.Throw |
07 | local Mouse = Player:GetMouse() |
08 | local PlayAnimation = game:GetService( "ReplicatedStorage" ):WaitForChild( "PlayAnimation" ) |
09 | local StopAnimation = game:GetService( "ReplicatedStorage" ):WaitForChild( "StopAnimation" ) |
10 | Tool.Activated:Connect( function () |
11 | if Debounce = = false then |
21 | local NewProjectile = Instance.new( 'Part' ) |
22 | game.Debris:AddItem(NewProjectile) |
23 | local BodyVelocity = Instance.new( "BodyVelocity" ,NewProjectile) |
24 | BodyVelocity.Parent = NewProjectile |
25 | BodyVelocity.Velocity = Player.Character.Head.CFrame.lookVector* 90 |
26 | BodyVelocity.MaxForce = Vector 3. new( math.huge , math.huge , math.huge ) |
27 | NewProjectile.Parent = game.Workspace |
28 | NewProjectile.CFrame = Player.Character.UpperTorso.CFrame *CFrame.new( 0 , 0 , - 9 ) |
30 | NewProjectile.Touched:Connect( function (hit) |
31 | if hit and hit.Parent:WaitForChild( "Humanoid" ) then |
32 | hit.Parent.Humanoid:TakeDamage( 25 ) |
33 | NewProjectile:Destroy() |