Skip to content

Commit

Permalink
wip circulize command (inspired by xkah's.)
Browse files Browse the repository at this point in the history
  • Loading branch information
S-PScripts authored Oct 3, 2024
1 parent 89acdc9 commit 0054f99
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Luau/KAH/Main Scripts/KohlsLite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4491,6 +4491,24 @@ return
end
end

if string.sub(msg:lower(), 1, #prefix + 5) == prefix..'circa' then
Remind("Warning! Experimental command.")
local radius = 5
local ic = 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():len()) * (math.pi / 180)
local x = radius * math.cos(angle)
local z = radius * math.sin(angle)
item.GripPos = Vector3.new(x, 1, z)
end
end

end

if string.sub(msg:lower(), 1, 7) == 'cprefix' then
Remind("Your current prefix is "..prefix)
end
Expand Down

0 comments on commit 0054f99

Please sign in to comment.