mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-15 21:51:55 +00:00
New game file structure
Scratch making the framework/engine open source for now until i figure out a better file structure that will work with Rojo
This commit is contained in:
21
src/client/Character/Client/HumanoidRootPart.lua
Normal file
21
src/client/Character/Client/HumanoidRootPart.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
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.SoundId = "rbxassetid://0"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return HumanoidRPSettings
|
||||
Reference in New Issue
Block a user