How to make my players go faster when they jump

I want to make my players go faster when they jump, i’ve already made it but its not good as how i want it. It goes in a straight line without decreasing in height (im using linear velocity here), I want the player to smoothly decrease in height while jumping but still goes faster when they jump especially when they are stop moving half way while jumping…

local Humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
local player = game.Players.LocalPlayer
local HRP = player.Character.HumanoidRootPart
local UserInputService = game:GetService("UserInputService")

UserInputService.JumpRequest:Connect(function()
	task.wait(0.3)
	
	local Attachment = Instance.new("Attachment", HRP) 
	local LV = Instance.new("LinearVelocity", Attachment) 
	LV.MaxForce = math.huge
	LV.VectorVelocity = HRP.CFrame.lookVector * 100 
	LV.Attachment0 = Attachment 
	task.wait(0.1)
	LV:Destroy()
	Attachment:Destroy()
end)

(I can’t be bothered to use Debris)

2 Likes
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local HRP = char:WaitForChild("HumanoidRootPart")
local db = false

--if not char then
--	warn("No char")
--end

--if not HRP then
--	warn("No HRP")
--end

local UserInputService = game:GetService("UserInputService")

UserInputService.JumpRequest:Connect(function()
	if db == false then
		db = true
		task.wait(.3)

		local Attachment = Instance.new("Attachment", HRP) 
		local LV = Instance.new("LinearVelocity", Attachment) 
		LV.MaxForce = math.huge
		LV.VectorVelocity = HRP.CFrame.lookVector * 150
		LV.Attachment0 = Attachment 
		task.wait()
		LV:Destroy()
		Attachment:Destroy()
		db = false
		
		task.wait(1)
	elseif db == true then return end
	
end)

Hi! I tried not to change too much the original script. Mainly i just fixed some stuff with the variables and added a debounce so it doesn’t bug (you could fly if you spammed the space bar) anddd i changed the time in which the Linear Velocity destroys so it has that “falling down” effect.

I hope this helps you with your problem :wink:

2 Likes

anothing i notice is that it seems to be changing the Y axis of the player, making the player have no gravity effect. How would i disable this?

What do you mean by “chaging the Y axis of the player”?

The y axis is fixed, its like theres no gravity for a moment

I checked with a while loop if the Y axis is repeated on air but it’s not, i think it’s just the effect of falling, there’s this fraction of time where the y axis is somewhere around 10,5 to 10,7 studs, but as i said there’s no moment on air where the studs are repeated