local UIS = game:GetService("UserInputService")
local CanDoubleJump = true
local CanSetCanDoubleJumpToTrue = false
local Character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
UIS.JumpRequest:Connect(function()
if CanDoubleJump then
Character:WaitForChild("Humanoid").JumpPower = Character:WaitForChild("Humanoid").JumpPower * 1
Character:WaitForChild("Humanoid"):ChangeState(Enum.HumanoidStateType.Jumping)
local Animator = Character:WaitForChild("Humanoid"):FindFirstChild("Animator") or Instance.new("Animator",Character:WaitForChild("Humanoid"))
Animator:LoadAnimation(script.Flip):Play()
CanDoubleJump = true
end
end)