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

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago
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)
0
I thought you guys don't answer requests?? QuantumScripter 48 — 6y
Ad

Answer this question