Hi, I was wondering if there's a way to play a custom soundid when walking at a certain speed?
COMMUNITY QUESTION
Is there a way to play a certain soundId at a certain walkspeed?
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.
