From 3250b90d90fe572bf95e3067020e3e73dfb51a4d Mon Sep 17 00:00:00 2001 From: S-PScripts Date: Fri, 11 Oct 2024 19:33:18 +0100 Subject: [PATCH] boomci - combine bcirca, circa, and gear me boombox --- Luau/KAH/Main Scripts/KohlsLite.lua | 50 ++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/Luau/KAH/Main Scripts/KohlsLite.lua b/Luau/KAH/Main Scripts/KohlsLite.lua index f7b692a..efaff0d 100644 --- a/Luau/KAH/Main Scripts/KohlsLite.lua +++ b/Luau/KAH/Main Scripts/KohlsLite.lua @@ -2018,7 +2018,55 @@ game.Players.LocalPlayer.Chatted:Connect(function(msg) end end end - + + if string.sub(msg:lower(), 1, #prefix + 6) == prefix..'boomci' then + -- Create boomboxes + SuperCMD(prefix.."gear me boombox") + + -- Circa command + task.wait(0.5) + local ic = 0 + local tools = game.Players.LocalPlayer.Backpack:GetChildren() + local tc = 0 + + for _, item in ipairs(tools) do + if item:IsA("Tool") then + tc = tc + 1 + end + end + + for _, item in ipairs(tools) do + if item:IsA("Tool") then + item.Parent = game.Players.LocalPlayer.Character + ic = ic + 1 + local angle = (ic - 1) * (360 / tc) * (math.pi / 180) + local x = circrad * math.cos(angle) + local z = circrad * math.sin(angle) + item.GripPos = Vector3.new(x, 1, z) + end + end + + task.wait(0.5) + + -- Bcirca command + local check = string.sub(msg:lower(), #prefix + 8, #prefix + 8) + if check == "g" then + local idrinkrum = string.sub(msg, #prefix + 9) ; task.wait(0) + myplay = musictable[idrinkrum].id + else + myplay = string.sub(msg:lower(), 8 + #prefix) + end + song = tonumber(myplay) + + for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do + if v:IsA("Tool") then + pcall(function() + v.Remote:FireServer("PlaySong",song) + end) + end + end + end + if string.sub(msg:lower(), 1, #prefix + 6) == prefix..'bcirca' then -- .supercmd .gear me boombox -> .circa -> .bcirca Remind("Ensure boomboxes are equipped.") local check = string.sub(msg:lower(), #prefix + 8, #prefix + 8)