-- Decompiled with the Synapse X Luau decompiler.


local l__UserInputService__1 = game:GetService("UserInputService");
local u1 = nil;
local u2 = nil;
local u3 = false;
local u4 = false;
local u5 = nil;
local l__LocalPlayer__6 = game.Players.LocalPlayer;
local l__DoubleJump__7 = script:WaitForChild("DoubleJump");
function onJumpRequest()
	if u1 then
		if u2 then
			if u1:IsDescendantOf(workspace) then
				if u2:GetState() == Enum.HumanoidStateType.Dead then
					
				else
					if u3 then
						if not u4 then
							u4 = true;
							u2.JumpPower = u5 * 1.2;
							u2:ChangeState(Enum.HumanoidStateType.Jumping);
							l__LocalPlayer__6.Character.Humanoid:LoadAnimation(l__DoubleJump__7):Play();
						end;
					end;
					return;
				end;
			end;
		end;
	end;
end;
local function v2(p1)
	u1 = p1;
	u2 = p1:WaitForChild("Humanoid");
	u4 = false;
	u3 = false;
	u5 = u2.JumpPower;
	u2.StateChanged:connect(function(p2, p3)
		if p3 == Enum.HumanoidStateType.Landed then
			u3 = false;
			u4 = false;
			u2.JumpPower = u5;
			return;
		end;
		if p3 == Enum.HumanoidStateType.Freefall then
			wait(0.2);
			u3 = true;
		end;
	end);
end;
if l__LocalPlayer__6.Character then
	v2(l__LocalPlayer__6.Character);
end;
l__LocalPlayer__6.CharacterAdded:connect(v2);
l__UserInputService__1.JumpRequest:connect(onJumpRequest);
