Sound if not enough "money"

Hello, so to say it quick I was wondering how to play a sound if the player does not have
enough “money” to buy something


so this is my script
and now I wanna do it that if the player doesnt have the 1000 “money”
that instead of the “sound” the “error sound” gets played

would be cool if you can help me,
Have a nice day.

using an else accomplish this.

if player.leaderstats.Money.Value >= 1000 then
   -- ur existing code
else
   -- this runs if ur money is not greater than or equal to 1000. so, what u want.
end

oh this was so simple xD still ty for helping

1 Like