mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 14:51:55 +00:00
21 lines
497 B
Lua
21 lines
497 B
Lua
local HumanoidRPSettings = {}
|
|
HumanoidRPSettings.__index = HumanoidRPSettings
|
|
|
|
function HumanoidRPSettings.constructor(HumanoidRootPart: BasePart)
|
|
return setmetatable({
|
|
HumanoidRootPart = HumanoidRootPart
|
|
}, HumanoidRPSettings)
|
|
end
|
|
|
|
function HumanoidRPSettings:DisableRobloxSounds()
|
|
local HRP_objects = self.HumanoidRootPart:GetChildren()
|
|
for i = 1, #HRP_objects do
|
|
local Object = HRP_objects[i]
|
|
|
|
if Object:IsA("Sound") then
|
|
Object.Volume = 0
|
|
end
|
|
end
|
|
end
|
|
|
|
return HumanoidRPSettings |