Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you remove the player's FootSteps completely for every client?

Asked by 4 years ago

Before you answer this question please hear me out. I tried making the player spawn with a local script that deletes the running sound located in the HumanoidRootPart. Only problem is that it only deletes the running sound for the clients, not the other clients. The goal is to delete it for every single client on the server. You may just say "Why not delete the running sound using a script and not local script?" Well because the running sound can only be read/visible on a local script. I tried using a remote event from Server to Client to delete the sound every time the player spawns but it only does it once and doesn't do it for every moment the player spawns. I spent days on this and it did not work :( . I also want to mention that i could just copy a Model and put it into StarterCharacter but only problem is that i don't want to change the appreance of the player.

Here's the Remote Event Script

Script:

local Players = game.Players
local SoundEvent = workspace.SoundEvent
local CharacterLoadedEvent = workspace.CharacterLoaded

Players.PlayerAdded:Connect(function(x)
    x.CharacterAppearanceLoaded:connect(function()
        SoundEvent:FireAllClients(x)
        CharacterLoadedEvent:FireAllClients(x)
    end)
end)

Local Script:

local Players = game.Players
local SoundEvent = workspace.SoundEvent


function RemoveSounds(x)
    for i,v in pairs(Players:GetChildren()) do
        workspace:WaitForChild(v.Name, true).HumanoidRootPart:WaitForChild("Running", math.huge or true):Destroy()
    end

end


SoundEvent.OnClientEvent:Connect(RemoveSounds)
0
You're an idiot. Why would you want this? apexslab 15 — 4y
0
Use CharacterAdded event instead Block_manvn 395 — 4y
0
The guy above me is bad >:(, don't care about him. Block_manvn 395 — 4y
0
Apexslab, it is true that my knowledge is very limited like for example this topic. Doesn't help to say it rather than help the person out when they need it. davie10863 9 — 4y

1 answer

Log in to vote
0
Answered by
SnowieDev 171
4 years ago

Removes the running sound from the client's character; put this in a Server Script.

game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
        if HumanoidRootPart:FindFirstChild("Running") then
            HumanoidRootPart.Running:Destroy()
        end
    end)
end)
Ad

Answer this question