Skip to content

Commit

Permalink
boomci - combine bcirca, circa, and gear me boombox
Browse files Browse the repository at this point in the history
  • Loading branch information
S-PScripts authored Oct 11, 2024
1 parent 29f1d0d commit 3250b90
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion Luau/KAH/Main Scripts/KohlsLite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3250b90

Please sign in to comment.