My script is supposed to make the player jump with this animation and allow them to be able to double jump with the use of another animation. As I test it output is giving me the right messages but the player just uses the normal jump animation and doesn't jump twice. Any help?

local DJ = game.ReplicatedStorage.DoubleJumped
local J = game.ReplicatedStorage.Jumped
local Player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local JumpedOnce = false
local JumpedTwice = false

local Jump = Instance.new("Animation")
Jump.AnimationId = "rbxassetid://3090086909"
local DoubleJump = Instance.new("Animation")
DoubleJump.AnimationId = "rbxassetid://3090113038"

UIS.InputBegan:Connect(function(input, proc)
    if not proc and input.KeyCode == Enum.KeyCode.Space then
        if JumpedOnce == false then
            JumpedOnce = true
            print("Player Jumped")
            J:FireServer()
        wait(2)
        if JumpedOnce == true and UIS.InputChanged then
            if not proc and input.KeyCode == Enum.KeyCode.Space then
              JumpedTwice = true
              print("Player Double Jumped")
              DJ:FireServer()
            end
        end
        end
    end
    wait(3)
    JumpedOnce = false
    JumpedTwice = false
end)

4 comments

0

You'll want to remove the jump animation from the default animation script I would imagine. This is found in the player's character. If you place a new Animate script into StarterPlayer > StarterCharacterScripts it will then use that new script instead of the default.

0

I removed it through the HumanoidDescription but I'm not seeing any change.

0

LOL HOLUP GUYS WAIT I NEVER PLAYED THE ANIMATIONS

0

i was bout to say that XD