Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

HOW CAN I ADJUST THE ANIMATION SPEED WITH PLAYBACKLOUDNESS? [closed]

Asked by 3 years ago
Edited 3 years ago

Please encode Lua code in the Lua block code tag (look for the Lua icon in the editor).

Code

function onRunning(speed)
    if speed > 0.01 then
        playAnimation("walk", 0.1, Humanoid)
        if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
            AdjustSpeed(1/(workspace.Sound.PlaybackLoudness / 100))
        end
        pose = "Running"
    else
        if emoteNames[currentAnim] == nil then
            playAnimation("idle", 0.1, Humanoid)
            if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
                setAnimationSpeed(speed / 10 + workspace.Sound.PlaybackLoudness * 0.02 + 70)
            end
            pose = "Standing"
        end
    end
end
0
use a code block please PolyyDev 214 — 3y
0
Can anyone edit this? I can't read. Xapelize 2658 — 3y

Closed as Non-Descriptive by JesseSong

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 3 years ago

i want it to be idle animation

Ad