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

Is there a way to play a certain soundId at a certain walkspeed?

Hi, I was wondering if there's a way to play a custom soundid when walking at a certain speed?

1 answer

Try:

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(c)
		local sound = Instance.new('Sound')
		sound.Parent = c
		c.Humanoid:GetPropertyChangedSignal('WalkSpeed'):Connect(function()
			if c.Humanoid.WalkSpeed == certain number here then
				sound.SoundId = SoundId here
				sound:Play()
			end
		end)
	end)

end)

Every time the walkspeed changes it will check if the value is a certain number.

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