The “Running” sound from the character’s HumanoidRootPart plays randomly despite all the attempts to disable/destroy it after disabling RbxCharacterSounds.
Reproduction Steps
- Open your Roblox Studio application.
- Create a new Baseplate.
- Go to the Explorer tab and create a LocalScript at StarterPlayer > StarterCharacterScripts.
- Execute the code to disable RbxCharacterSounds, including the “Running” sound.
--[Services]--
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerScripts = Player:WaitForChild("PlayerScripts")
if PlayerScripts then
print(PlayerScripts)
end
--[RbxCharacterSounds]--
local RbxCharacterSounds = PlayerScripts:FindFirstChild("RbxCharacterSounds")
if RbxCharacterSounds then
RbxCharacterSounds.Enabled = false
RbxCharacterSounds:Destroy()
print(RbxCharacterSounds)
print(RbxCharacterSounds.Enabled)
end
--[Character]--
local function onCharacterAdded(character)
for _, descendant in ipairs(character:GetDescendants()) do
if descendant:IsA("HumanoidRootPart") then
for _, sound in ipairs(descendant:GetDescendants()) do
if sound:IsA("Sound") and (sound.Name == "Running") then
sound:Destroy()
sound.SoundId = "rbxassetid://0"
print(sound)
print(sound.Name)
print(sound.SoundId)
end
end
end
end
end
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
onCharacterAdded(character)
end)
if player.Character then
onCharacterAdded(player.Character)
end
end)
- Engage in gameplay activities, such as moving the character around the game environment.
- Observe that the “Running” sound unexpectedly plays from the character’s HumanoidRootPart at random intervals during gameplay, despite being disabled by the script.
Beta Features:
I have all the beta features enabled by having the “Auto-Enable Upcoming Features” activated.
System Information:
Roblox Studio Version: 0.620.0.6200463 (64bit)
Reproduction Files:
Roblox Studio Bug Report Place.rbxl (63.4 KB)
Expected Behavior
I expected that it would turn off all of the sounds, and only play from the other LocalScript.