-- 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)
COMMUNITY QUESTION
My punch script doesn't knock other players up into the air?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Explanation? Errors? Velocity will also need a higher value if you want it to counteract gravity.
Does the rest work? Specifically the damage
Yes everything else works just that the change in velocity doesn't work
put a bodyvelocity inside the characters UpperTorso and use that instead of the velocity
char