I'm trying to make a launch pad that launches you at the same angle that the launch pad itself is facing. The original code I used to launch directly upwards was one I used a YouTube video tutorial to figure out:


script.Parent.Touched:Connect (function(Hit)
	if Hit.Parent:FindFirstChild ("Humanoid") then
		local H = Hit.Parent.Humanoid
		H.JumpPower = 265
		H.Jump = true
		wait (1)
		H.JumpPower = 50
		H.JumpPower = false
	end
end)

I tried altering it with Vector3 but it didn't work out:

script.Parent.Touched:Connect (function(Hit)
	if Hit.Parent:FindFirstChild ("Humanoid") then
		local H = Hit.Parent.Humanoid
		H.Velocity = Vector3.new(50, 50, 0)
	end
end)

I don't actually know what I am doing or how to fix it. My scripting knowledge is very minimal, and I can only understand basic scripts and what lines do. Any help with what I am doing wrong?