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

How to make sounds play at different volumes based on hit velocity?

I'm trying to make it so if someones walking on a Mat it plays at a regular volume, but if they fall on the mat from say 10 studs high it makes the noise louder or plays a different sound if the previous option is not possible.

1 answer

SomePart.Touched:Connect(function(part)
    if part.Velocity.Magnitude > 10 then -- put number 
        part.Sound.Volume = 10 -- do whatever
        part.Sound:Play() -- put sound in part
    end
end)

1 comment

0

I thought you guys don't answer requests??

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