Skip to content

Commit

Permalink
Update KohlsLite.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
S-PScripts authored Oct 9, 2024
1 parent 14ac49f commit 93e3cd0
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions Luau/KAH/Main Scripts/KohlsLite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4742,17 +4742,25 @@ return
if string.sub(msg:lower(), 1, #prefix + 5) == prefix..'circa' then
Remind("Warning! Experimental command.")
local ic = 0
local tools = game.Players.LocalPlayer.Backpack:GetChildren()
local toolCount = 0

for _, item in ipairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
if item:IsA("Tool") then
item.Parent = game.Players.LocalPlayer.Character
ic = ic + 1
local angle = (ic - 1) * (360 / #game.Players.LocalPlayer.Backpack:GetChildren()) * (math.pi / 180)
local x = circrad * math.cos(angle)
local z = circrad * math.sin(angle)
item.GripPos = Vector3.new(x, 1, z)
end
end
for _, item in ipairs(tools) do
if item:IsA("Tool") then
toolCount = toolCount + 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 / toolCount) * (math.pi / 180)
local x = circrad * math.cos(angle)
local z = circrad * math.sin(angle)
item.GripPos = Vector3.new(x, 1, z)
end
end

end

Expand Down

0 comments on commit 93e3cd0

Please sign in to comment.