i made a jump script, which is like a gmod bhop thingy but i want it to make build up speed, everytime i keep jumping, my speed goes faster or velocity something, any ideas? oh heres code if needed
uis.InputBegan:Connect(function(input)
if isKeyPressed(Enum.KeyCode.Space ) and isKeyPressed(Enum.KeyCode.LeftShift ) then
if isKeyPressed(Enum.KeyCode.W ) then
if not bhopped then
bhopped = true;
Character.Humanoid.JumpPower = 0
debris:AddItem(bodyvelocity, 0.01)
print('linearvelocity added')
Character:WaitForChild("HumanoidRootPart").Velocity = Character:WaitForChild("HumanoidRootPart").CFrame.LookVector * 130 + Vector3.new(0, 5, 0);
bodyvelocity.Velocity = Character:WaitForChild("HumanoidRootPart").CFrame.LookVector * 175 + Vector3.new(0, 5, 0);
bodyvelocity.MaxForce = Vector3.new(1000,0,1000)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
task.wait(0.5);
bhopped = false;
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
--bodyvelocity:Remove()
--bodyvelocity:Destroy()
-- bodyvelocity.VectorVelocity = Vector3.new(0,0,0)
bodyvelocity.Velocity = Vector3.new(0,0,0)
bodyvelocity.MaxForce = Vector3.new(0,0,0)
print('linearvelocity changed to 0')
Character.Humanoid.JumpPower = 50
--local StartTime
end;
end;
end
end);