Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

HOW CAN I ADJUST THE ANIMATION SPEED WITH PLAYBACKLOUDNESS?

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

2 comments

0

use a code block please

0

Can anyone edit this? I can't read.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.