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

In the output it keeps saying 'SoundId cannot be assigned to'?

Asked by 4 years ago
Edited by theking48989987 4 years ago

In the output it keeps saying 'SoundId cannot be assigned to'. I'm pretty sure I did the rest of the script correctly, why does it keep saying that? Here's the script:

local character = script.Parent

delay(0, function() 
    while wait() do
        if character.Humanoid.FloorMaterial  == Enum.Material.Sand then
            character.Humanoid.Running.SoundId = "rbxassetid://138080013"
            character.Humanoid.Running.Volume = 1   
        end 
    end
end)

Answer this question