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:
2023-12-19 18:00:36 -05:00
parent e95b377c4e
commit 3a84d5b85d
14 changed files with 281 additions and 1 deletions

View 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