Character Sounds v2 - INCREASE YOUR GAME PERFORMANCE! [VERSION 1.1]

Hey everyone!


The default Roblox sound script for characters has a few issues with it, many of them are fixed here! This script relies on a more “global” approach compared to the current “local” per player approach to the script, while still being local and not requiring the server.

Perks

  • Less connections.
  • More customizable.
  • Less loops.
  • Reduced memory, and increased performance.
  • Customizable character logic. (Can choose which characters get the sounds.)
  • Runs on 1 Stepped event TOTAL instead of 1 per player.

How To Use

  • Get the script here!
  • Insert it into StarterPlayerScripts!
    pic1
  • Call the “CharacterLoaded” event within the script ON THE CLIENT as soon as you are SURE that the character is fully loaded in. The script makes NO attempts to make sure the character is loaded in, that’s your job.
  • script.CharacterLoaded:Fire(Character Humanoid, Player Instance, Character RootPart)

  • Call this for every character that loads, that you want to have sounds. Including other players!
  • All done!

Extra

The extra performance benefits of this script will slowly kick in if there are ALOT of players in your game. This script is simply meant as a extra way to SQUEEZE some more performance out of your game!

If you have any feedback, questions, concerns or advice on how to speed up performance even more. Please don’t hesitate to reply below, or message me here on the developer forums. Happy developing! :slight_smile:

Update Log

Its recommended you check back here often to make sure your module is up to date!

  • Update 1.01 (May 30th, 2021)

    • Fixed issue with walking sounds not stopping or playing properly.
  • Update 1.1 (June 4th, 2021)

    • Improved performance through localizing global variables and table.create. (Small increase.)
    • Now supports luau type checking.
    • Changed old deprecated velocity property to the new AssemblyLinearVelocity.
    • Fixed issue of sounds not properly playing at start of game.

Support

  • If you want to support me and this script, leave a like on this post and follow me on twitter! That’d be greatly appreciated!
  • You can also check out my other open source script here!
30 Likes

I have a little question. This character sounds script is for sounds like Stepping on Metal/Grass or for sounds like the walking sound/oof sound


I like it.

No, this script simply improves the default script (which controls death, walking, climbing, swimming sounds etc) in terms of performance and memory. It does not change the actual sound effects in any way.

I asked because I didn’t get to read or take the old one, so that’s why I’m asking. Although that doesn’t answers my question:

The default one (old one) is automatically inserted into your game no matter what. It controls death, walking, climbing, swimming sounds etc. My version simply improves the performance.

Why the sound still not playing???

Do you have the latest version? Make sure your roblox sounds are up.

I still using the lastest version

I’d need more information on this bug before I can fix it.

New Update!

  • Improved performance through localizing global variables and table.create. (Small increase.)
  • Now supports luau type checking.
  • Changed old deprecated velocity property to the new AssemblyLinearVelocity.
  • Fixed issue of sounds not properly playing at start of game.

Make sure to update your module!

Since you seem to emphasize performance a lot, how negligible are the performance gains?

Like I said in the OP;

The performance is not ground breaking and won’t make your game’s fps explode. It will help you maybe get a few more frames on lower end devices OR servers with many players.

It also provides better customization as well as uses updated features, rather then deprecated ones!

2 Likes

Amazing stuff. This is something I love to see when it comes to performance and boosting it any many games! Thank you so much for this open resource.

1 Like