Hi! I'm wanting to add a system into my game that will change the player's footstep sound based on the conditions they're in- which will basically boil down to whether they're intersecting certain parts. However, while I vaguely know how to detect when the player is in contact with something, I'm not really sure how to change the footstep sound dynamically. This project is essentially my first proper learning experience with Roblox development, so I only really know how to change the default sound with the RbxCharacterSounds script. I need some help figuring out how to have a script on the player dynamically change the step sound.
If it changes anything, the game is single player and every script so far is a local script.
** You are now Level 1! **