Hi, I’m trying ot change the morph script my game is using so that it disables the Running and Jumping sounds after the player receives a morph, as keeping those sounds breaks the immersion of the game.
I’ve tried removing the sounds when the player connects, but as soon as you pick a morph, the sounds come back despite not being part of the morphs themselves.
This is the morph script I’m currently using:
local event = game.ReplicatedStorage.ChangeChar -- Event is triggered by a button in the StarterGUI
local swim = game.ReplicatedStorage.Swim
event.OnServerEvent:Connect(function(player,model)
local Char = model:Clone()
local Pos = player.Character:GetPrimaryPartCFrame()
local name = player.Name
Char.Name = name
player.Character:Destroy()
player.Character = Char
swim:Clone().Parent = player.Backpack
Char.Parent = workspace
Char:SetPrimaryCFrame(Pos)
local RootPart = Char:WaitForChild("HumanoidRootPart")
local Running = RootPart:WaitForChild("Running")
local Jumping = RootPart:WaitForChild("Jumping")
Running.Volume = 0
Jumping.Volume = 0
end)
I’m not seeing anything in the output window that hints at what the issue could be, so I was hoping someone here might have a solution.