Universal Script 📌
11.4k Views
1.5k Executions

Bunny Hop or Bhop

Universal Script 📌
AzScripter
AzScripter1M views
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Features: - Each jump increases the player speed +5 - smooth - this is Bunny Hop / Bhop - Universal Script

View Raw
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local hrp = char:WaitForChild("HumanoidRootPart")

local baseSpeed = 16 -- standard roblox speed
local jumpBoost = 5 -- how much faster per hop
local speedCap = 100 -- dont go too crazy
local decelRate = 50 -- slow down speed when sliding
local lowFriction = 0.01 -- makes it slippery
local currSpeed = baseSpeed

-- save original props
local origProps = hrp.CustomPhysicalProperties or PhysicalProperties.new(0.7, 0.3, 0.5, 1, 1)
local slipProps = PhysicalProperties.new(origProps.Density, lowFriction, origProps.Elasticity, 100, origProps.ElasticityWeight)

local lastHzSpeed = 0
local lastDir = Vector3.new(0, 0, 0)
local sliding = false

-- jump to boost speed
hum.Jumping:Connect(function()
    currSpeed = math.min(currSpeed + jumpBoost, speedCap)
    hum.WalkSpeed = currSpeed
    sliding = false
    hrp.CustomPhysicalProperties = origProps
end)

-- heartbeat for updates
game:GetService("RunService").Heartbeat:Connect(function(delta)
    if hum.MoveDirection.Magnitude > 0 then
        lastDir = hum.MoveDirection.Unit
        sliding = false
        hrp.CustomPhysicalProperties = origProps
    end

    local hzSpeedNow = (hrp.Velocity * Vector3.new(1, 0, 1)).Magnitude

    if hzSpeedNow < lastHzSpeed * 0.5 and lastHzSpeed > baseSpeed * 1.5 then
        currSpeed = baseSpeed


Comments

4
Log in to join the conversation. Login
yafes's profile picture
yafes4 months ago

funny xd works good thank you

1
Kyelisz's profile picture
Kyelisz7 months ago

tried

1
What_why's profile picture
What_why11 months ago

idk man it dosnt seem to work, no errors in f9 or anything

1
What_why's profile picture
What_why11 months ago

nvm my executor broke when i tr* to run it but its all good now

1

Tags

More universal scripts

See all
Universal Script 📌
3.8k
184.5k
Bumped 3 hours ago
Script hub
340
31
4 hours ago
Universal Script 📌
28.6k
663.4k
Bumped 6 hours ago
Script hub
13.7k
2.7k
Bumped 8 hours ago
Key System
Paid
Script hub
263.6k
88.1k
Bumped 8 hours ago
Key System
Universal Script 📌
2.9k
9.5k
Bumped 9 hours ago
Universal Script 📌
611
38
Approved 9 hours ago
Universal Script 📌
645
36
Approved 9 hours ago