How to Add Double Jumps (30 seconds) - Roblox Studios

  Рет қаралды 2,798

Maze Sunshine

Maze Sunshine

Күн бұрын

Пікірлер: 14
@mazesunshine3946
@mazesunshine3946 11 ай бұрын
local maxJumps = 2 -- amount of jumps in the air local jumpCooldown = 0.1 -- how fast you can jump again while in the air local userInputService = game:GetService("UserInputService") local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local jumpCount = 0 local canJump = false local function onStateChanged(oldState, newState) if newState == Enum.HumanoidStateType.Landed then jumpCount = 0 canJump = false elseif newState == Enum.HumanoidStateType.Freefall then wait(jumpCooldown) canJump = true elseif newState == Enum.HumanoidStateType.Jumping then canJump = false jumpCount = jumpCount + 1 end end humanoid.StateChanged:Connect(onStateChanged) userInputService.JumpRequest:Connect(function() if canJump and jumpCount < maxJumps then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end)
@Botamisprime
@Botamisprime 11 ай бұрын
Holy crap tysm I needed this for my new obby
@mazesunshine3946
@mazesunshine3946 11 ай бұрын
You're Welcome!
@Mittin1
@Mittin1 11 ай бұрын
well it works and its useful thank yu brother
@mazesunshine3946
@mazesunshine3946 11 ай бұрын
Your welcome brother!
@LukaPlemeniti
@LukaPlemeniti 12 күн бұрын
it rlly works thank you your awesome 😀
@Legend_Gamerz7
@Legend_Gamerz7 Ай бұрын
You are the best person ever
@Mr_mario20
@Mr_mario20 Ай бұрын
Your the best!!!
@ェエェ
@ェエェ 8 ай бұрын
how do i add an animation to it
@CuRioSitYNeXusQueSt
@CuRioSitYNeXusQueSt 5 ай бұрын
i tried it and worked but only once, if i die its doesnt work
@Suvboom
@Suvboom 5 ай бұрын
BRO WHAT DESCRIPTION VIDEO
@TheRealPaintist
@TheRealPaintist 9 ай бұрын
W channel
How to Make a Sittable Seat (30 Seconds) | Roblox Studios Tutorial
0:38
What Is The Best DPS Tower in TDS?
14:53
tz
Рет қаралды 56 М.
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 95 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 5 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 18 МЛН
Confronting Ronaldo
00:21
MrBeast
Рет қаралды 33 МЛН
I Learned How to SCRIPT in 7 Days | Roblox
11:00
Simjet
Рет қаралды 130 М.
Every single error code on roblox explained.
12:39
mini
Рет қаралды 1,2 МЛН
Iron Lung is not as bleak of a setting as people think(sorry)
19:16
I updated my plugin and now its 100X better
5:07
Orange
Рет қаралды 4,2 М.
Creating An Entire Roblox Game in Just 1 Hour!
4:52
Maze Sunshine
Рет қаралды 18 М.
i made the same design in programs never made for design
19:38
elliotisacoolguy
Рет қаралды 1,2 МЛН
A Guide to Minecraft's Most Ridiculous Mod
16:16
Mykra
Рет қаралды 591 М.
Playing TERRIBLE Sprunki Knock Offs...
9:05
tyl
Рет қаралды 39 М.
You Forgot about this Roblox Developer...
9:00
Ventuist
Рет қаралды 184 М.
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 95 МЛН