-- Services
local UIS = game:GetService("UserInputService")
local storage = game:GetService("ReplicatedStorage")

--Variables
local player = game.Players.LocalPlayer
local char = player.Character
local hum = char.Humanoid
local right = char:FindFirstChild("RightLowerArm")

--Debounces
local CoolDown = false
local debounce = true

--Animation
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://2637322749"
local load = hum:LoadAnimation(animation)


UIS.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.Q and CoolDown == false then
		
		CoolDown = true
		load:Play()
	
	right.Touched:Connect(function(hit)
		if hit.Parent:FindFirstChild("Humanoid") and debounce == true then
			debounce = false
			hit.Parent.UpperTorso.Velocity = Vector3.new(0,200,0) --- this part 
			hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
			wait(1)
			debounce = true
	end
end)
	
	wait(2)
	CoolDown = false
	
	end
end)

5 comments

0

Explanation? Errors? Velocity will also need a higher value if you want it to counteract gravity.

0

Does the rest work? Specifically the damage

0

Yes everything else works just that the change in velocity doesn't work

0

put a bodyvelocity inside the characters UpperTorso and use that instead of the velocity

0

char