rbx 音效脚本问题

问题描述 投票:0回答:1

在这个 rbx 音效脚本中

sound.Volume = FootstepsSoundGroup:WaitForChild(humanoid.FloorMaterial).Volume * (vel.Magnitude/12) * humanoid.Loudness.Value
        sound.EmitterSize = FootstepsSoundGroup:WaitForChild(humanoid.FloorMaterial).Volume * (vel.Magnitude/12) * 50 * humanoid.Loudness.Value

输出显示:

Loudness is not a vaild memeber of "Workspace.mudavoor.Humanoid"

我想在此脚本中进行哪些更改?获得声音

roblox roblox-studio
1个回答
0
投票

您缺少名为“Loudness”的

NumberValue
,这会导致错误消息。

确保您有一个名为“响度”的数值,该数值是玩家角色人形的父级。

© www.soinside.com 2019 - 2024. All rights reserved.