I made simple scripts for some “bunny hop”, but they either get in one way or one of them works. Sometimes when i change script sources in game and reload them, they only work after a restart.
This is their way:
GetSpeed Source:
local hum = script.Parent.Humanoid
local runnow = script.Parent.RunningNow
while hum.Running do
if hum.Jump then
hum.Running:Connect(function(speed)
if speed > .1 then
hum.WalkSpeed += .1
end
end)
end
wait(.1)
end
LoseSpeed Source:
local hum = script.Parent.Humanoid
while not hum.Running do
if hum.MoveDirection == Vector3.new(0, 0, 0) or not hum.Jump then
for i = hum.WalkSpeed, game.StarterPlayer.CharacterWalkSpeed,-2 do
script.Parent.Humanoid.WalkSpeed = i
wait()
end
end
end
When i run my speed bugs and goes up and down.
I need the speed and fov to increase when i walk and jump, and when i stop or stop jumping, the speed smoothly decreases