Copy salient and essential scripts and models from Plane Building Roblox

This commit is contained in:
2026-06-10 02:53:40 +01:00
commit 891781366d
76 changed files with 10904 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
local module = {}
function module.new(this,boombox,context)
this.sound = _G.GetInstance(_G.GetInstance(boombox,"Plank"),"Sound")
end
module.messages = {
source = function(this,speaker,context,value)
this.sound.SoundId = "rbxassetid://"..(tostring(value or "") or "")
end,
default = function(this,speaker,context,value)
if value > 0.5 then
this.sound:Play()
elseif value == 0 then
this.sound:Pause()
elseif value < -0.5 then
this.sound:Stop()
end
end,
}
module.manifest = {
"Boombox"
}
return module