I want to (the question), I searched all over for something like this, just found how to make a double jump script, completely contrasting my question.
Here's my script
local UserInputService = game:GetService("UserInputService")
local LshiftKey = Enum.KeyCode.LeftShift
local SpaceKey = Enum.KeyCode.Space
local function IsShiftKeyDown()
return UserInputService:IsKeyDown(LshiftKey)
end
local function SpaceKeyDown()
return UserInputService:IsKeyDown(SpaceKey)
end
local function KeyPressed(input)
if IsShiftKeyDown() then
script.Parent.Humanoid.WalkSpeed = 32
else
script.Parent.Humanoid.WalkSpeed = 16
end
if SpaceKeyDown() then
wait(0.005)
script.Parent.Humanoid.WalkSpeed = 32
wait(0.2)
script.Parent.Humanoid.WalkSpeed = 16
end
end
UserInputService.InputBegan:Connect(KeyPressed)
UserInputService.InputEnded:Connect(KeyPressed)
At lines 20 to 25, it fires first time when the player jumps (with the spacebar held), then after > 1 jumps, it fires randomly.
( Important Note: This script is very basic as my scripting knowledge isn't that high (which is probably a problem considering the question). I'll try to understand if I get any complex answers and probably ask dumb questions regarding it. Really hope I was as constructive as possible to my current question. )

1 comment
The script is a 'Local Script' inside 'game/StarterPlayer/StarterCharacterScripts'