Quirky CMD
Quirky CMD
remotepath.Parent = quirkycmd
cmdbox.Parent = quirkycmd
mobileopen.Parent = quirkycmd
cmdlist.Parent = cmds
--[[Variables]]--
local debugOutput = true
local checkTime = 0.33
local UGCVS = game:GetService("UGCValidationService")
local uis = game:GetService("UserInputService")
local sgui = game:GetService("StarterGui")
local rs = game:GetService("RunService")
local rStorage = game:GetService("ReplicatedStorage")
local players = game:GetService("Players")
local genv = (getgenv and (getgenv() ~= getfenv()) and getgenv()) or _G
local gethiddenproperty = gethiddenproperty or
(pcall(UGCVS.GetPropertyValue,UGCVS,workspace,"Name") and function(i, v) return
UGCVS:GetPropertyValue(i, v) end)
local sethiddenproperty = sethiddenproperty or function(inst,i,v) inst[i] = v end
local isnetworkowner = isnetworkowner or function(part) return part.ReceiveAge == 0
end
local isMobile = uis.TouchEnabled
local isTesting = game.PlaceId == 16245218863
local modernChat = game:GetService("TextChatService").ChatVersion ==
Enum.ChatVersion.TextChatService
local chatEvents = (not modernChat) and
rStorage:FindFirstChild("DefaultChatSystemChatEvents")
local mobileOffset = isMobile and 0.25 or 0
local prefix = ";"
local prefixEnum = Enum.KeyCode.Semicolon
-- credits to itzyaboyluq on github for the word list
local wordList = {"delete", "remove", "destroy", "clean", "clear","bullet", "bala",
"shoot", "shot", "fire", "segway", "handless", "sword", "attack", "despawn",
"deletar", "apagar"}
local localPlayer = players.LocalPlayer
local camera = workspace.CurrentCamera
local mouse = localPlayer:GetMouse()
local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
local bodyColors = character:WaitForChild("Body Colors",0.1) or
character:WaitForChild("Head"):WaitForChild("HatAttachment",0.1) or
character:WaitForChild("Head")
if not bodyColors then return error("no test instance found") end
local gui = quirkycmd or
localPlayer:FindFirstChildOfClass("PlayerGui"):FindFirstChild("quirkyCMD")
local box = gui:WaitForChild("cmdBox")
local mobileButton = gui:WaitForChild("mobileOpen")
local cmdsFrame = gui:WaitForChild("cmds")
local cmdsList = cmdsFrame:WaitForChild("cmdList")
local cmdTemplate = cmdsList:WaitForChild("template")
local closeButton = cmdsFrame:WaitForChild("closeButton")
local remotePath = gui:WaitForChild("remotepath")
local visible = false
genv.connections = {}
local commands = {}
local remotes = {}
local services = {}
local privilegeLevels = {}
local rankNames = {"admin", "owner", "local"}
local bans = {}
local loopkills = {}
local infected = {}
local killauras = {}
local wslocks = {}
local slockEnabled = false
local inDatabase = false
local atts = {
"BodyProportionScale",
"BodyWidthScale",
"BodyHeightScale",
"BodyDepthScale",
"HeadScale",
"BodyTypeScale"
}
local limbs = {
"arm",
"leg",
"foot"
}
coroutine.resume(irisCoroutine)
function isfile(str)
local str = str or ""
return files:FindFirstChild(str) and true or false
end
function writefile(str,txt)
local str = str or ""
local val = isfile(str) and files[str] or Instance.new("StringValue",
files)
val.Name = str
val.Value = txt
end
function readfile(str)
local str = str or ""
if not files:FindFirstChild(str) then return error("file " .. str .. "
does not exist") end
return files[str].Value
end
function listfiles(str)
local res = {}
for i,v in pairs(files:GetChildren()) do
table.insert(res, v.Name)
end
return res
end
function loadfile(str)
local str = str or ""
if not files:FindFirstChild(str) then return error("file " .. str .. "
does not exist") end
return loadstring(files[str].Value)
end
end
--[[Prepare UI]]--
cmdsFrame.Visible = false
cmdTemplate.Visible = false
mobileButton.Visible = false
box.Position = UDim2.new(0.5 - box.Size.X.Scale/2, 0,1,50)
privilegeLevels[localPlayer.Name] = 3
table.insert(genv.connections, players.PlayerAdded:Connect(function(plr)
privilegeLevels[plr.Name] = 0
end))
table.insert(genv.connections, players.PlayerRemoving:Connect(function(plr)
privilegeLevels[plr.Name] = nil
end))
--[[Misc. functions]]--
function debugPrint(...)
if not debugOutput then return end
warn(...)
end
debugPrint("loaded UI")
function notify(title,text,duration)
sgui:SetCore("SendNotification", {
Title = title or "",
Text = text or "",
Duration = duration or 5
})
end
return targets
end
function abort()
for i,v in pairs(genv.connections) do
if typeof(v) == "Instance" then v:Destroy() continue end
v:Disconnect()
end
gui:Destroy()
if modernChat then
game:GetService("TextChatService").TextChannels["RBXGeneral"].OnIncomingMessage =
nil
end
if Iris then
Iris.Disabled = true
end
coroutine.yield(irisCoroutine)
end
if success then
debugPrint(result)
inDatabase = true
if genv.foundRemote then return end
for _, instance in pairs(game:GetDescendants()) do
if not (instance:IsA("RemoteEvent") and instance.Name == result)
then continue end
genv.foundRemote = instance
remotePath.Visible = false
break
end
end
end
function delete(instance)
genv.foundRemote:FireServer(instance)
debugPrint("deleted instance " .. instance.Name)
end
toggleBar(false)
end)
local lastMousePos
local lastGoalPos
local dragSpeed = 20
mobileButton.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or
input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = mobileButton.Position
lastMousePos = uis:GetMouseLocation()
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
mobileButton.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)
table.insert(genv.connections,rs.Heartbeat:Connect(update))
end
if modernChat then
game:GetService("TextChatService").TextChannels["RBXGeneral"].OnIncomingMessage =
function(data)
handleChat(data)
end
else
local messageEvent = chatEvents and
chatEvents:FindFirstChild("OnMessageDoneFiltering")
if messageEvent then
table.insert(genv.connections, chatEvents and
messageEvent.OnClientEvent:Connect(handleChat))
end
end
--[[Add command bar functionality]]--
table.insert(genv.connections,box.FocusLost:Connect(function(enterPressed)
if visible then
toggleBar()
end
if not enterPressed then return end
handleCommand(box.Text, localPlayer)
end))
--[[Create commands]]--
addCommand("cmds", function()
cmdsFrame.Visible = true
end, {"commands"}, 3)
addCommand("setprefix", function(plrs,newPrefix)
local char = newPrefix:sub(1,1)
if char == "" then prefix = ";" return end
prefix = char
prefixEnum = getKeyCode(char)
end, {"prefix"}, 3)
addCommand("setbind", function()
uis.InputBegan:Wait() -- fires Return KeyCode
local enum = uis.InputBegan:Wait().KeyCode
prefixEnum = enum
end, {"bind"}, 3)
addCommand("admin", function(plrs)
for i,v in pairs(plrs) do
if v == localPlayer then continue end
privilegeLevels[v.Name] = 1
debugPrint(`{v.Name} has been made an admin`)
end
end, {"addadmin"}, 2)
addCommand("unadmin", function(plrs)
for i,v in pairs(plrs) do
if v == localPlayer then continue end
privilegeLevels[v.Name] = 0
debugPrint(`{v.Name} is no longer an admin`)
end
end, {"removeadmin"}, 2)
addCommand("owner", function(plrs)
for i,v in pairs(plrs) do
if v == localPlayer then continue end
privilegeLevels[v.Name] = 2
debugPrint(`{v.Name} has been made an owner`)
end
end, {"addowner", "op"}, 3)
addCommand("unowner", function(plrs)
for i,v in pairs(plrs) do
if v == localPlayer then continue end
privilegeLevels[v.Name] = 0
debugPrint(`{v.Name} is no longer an owner`)
end
end, {"removeowner", "deop"}, 3)
addCommand("ranks", function()
local printString = "\nQuirkyCMD ranks:\n"
for name,level in pairs(privilegeLevels) do
if level == 0 then continue end
local plr = players:FindFirstChild(name)
if not plr then continue end
local displayName = plr.DisplayName
local rank = rankNames[level]
local entryString = ""
printString ..= `{displayName}` .. ((name ~= displayName and `
(@{name})`) or "") .. ` - {rank}\n`
end
print(printString)
end, {"admins", "owners"}, 3)
addCommand("aliases", function()
local printString = "\nQuirkyCMD command aliases:\n"
for i,v in pairs(commands) do
local aliases = v.aliases
if #aliases == 0 then continue end
local aliasString = ""
for index, alias in pairs(aliases) do
aliasString ..= alias .. (index == #aliases and "" or ", ")
end
printString ..= `{v.name}: [{aliasString}]\n`
end
print(printString)
end, {}, 3)
addCommand("explorer", function()
local function addTree(Instance)
local InstTree = Iris.Tree({Instance.Name})
Iris.SameLine() do
if Iris.SmallButton({"Delete"}).clicked then
delete(Instance)
end
if Iris.SmallButton({"Clear children"}).clicked then
for i,v in pairs(Instance:GetChildren()) do
delete(v)
end
end
Iris.End()
end
if InstTree.state.isUncollapsed.value then
for i,v in pairs(Instance:GetChildren()) do
addTree(v)
end
end
Iris.End()
end
Iris:Connect(function()
Iris.Window({"QCMD Explorer", [Iris.Args.Window.NoClose] = false},
{size = Iris.State(Vector2.new(200, 300)), position = Iris.State(Vector2.new(500,
75))}) do
local priorityServices = {"Workspace", "Lighting", "Players",
"ReplicatedStorage", "StarterPlayer", "StarterPack", "StarterGui"}
for i,v in pairs(priorityServices) do
addTree(game:GetService(v))
end
for i,v in pairs(game:GetChildren()) do
if table.find(priorityServices, v.ClassName) then continue
end
addTree(v)
end
Iris.End()
end
end)
end, {"dex"}, 3)
addCommand("goto", function(plrs)
local target
local part
for i,v in pairs(plrs) do
local tChar = v.Character
if not tChar then continue end
part = tChar:FindFirstChild("HumanoidRootPart") or
tChar:FindFirstChild("Head") or tChar:FindFirstChild("Torso") or
tChar:FindFirstChild("LowerTorso") or tChar:FindFirstChildOfClass("BasePart")
if not part then continue end
break
end
if not part then return end
character:PivotTo(part.CFrame * CFrame.new(0,0,2))
end, {"to"}, 3)
local viewConnection
addCommand("view", function(plrs)
local target
for i,v in pairs(plrs) do
local char = v.Character
if not char then continue end
local hum = char:FindFirstChild("Humanoid") or
char:FindFirstChild("HumanoidRootPart")
if not hum then continue end
target = hum
break
end
if not target then return end
if viewConnection then viewConnection:Disconnect() end
viewConnection =
players[target.Parent.Name].CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
if not hum then return end
camera.CameraSubject = hum
end)
table.insert(genv.connections,viewConnection)
camera.CameraSubject = target
end, {"spectate"}, 3)
addCommand("unview", function(plrs)
if viewConnection then viewConnection:Disconnect() end
camera.CameraSubject = character.Humanoid or
character:FindFirstChildOfClass("BasePart")
end, {}, 3)
addCommand("rejoin", function()
if #players:GetPlayers() <= 1 then
localPlayer:Kick("Rejoining!!")
task.wait(.1)
game:GetService("TeleportService"):Teleport(game.PlaceId, localPlayer)
return
end
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId,game.JobId,
localPlayer)
end, {"rj"}, 3)
addCommand("reset", function()
local hum = character:FindFirstChild("Humanoid")
local hrp = character:FindFirstChild("HumanoidRootPart") or hum and
hum.RootPart
local oldPosition = hrp and hrp.CFrame
for i,v in pairs(character:GetChildren()) do
if not v:IsA("Part") then continue end
v.CFrame = CFrame.new(0, workspace.FallenPartsDestroyHeight+5,0)
end
task.wait(.1)
if hum then hum:ChangeState(Enum.HumanoidStateType.Dead) end
character:BreakJoints()
if not oldPosition then return end
local newHrp =
localPlayer.CharacterAdded:Wait():WaitForChild("HumanoidRootPart")
newHrp.CFrame = oldPosition
end, {"re", "respawn"}, 3)
addCommand("btools", function()
sgui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
if localPlayer.Backpack:FindFirstChild("wacky destroy tool") or (character
and character:FindFirstChild("wacky destroy tool")) then
return
end
local selection
destroyTool.Equipped:Connect(function()
selection = Instance.new("SelectionBox",localPlayer.PlayerGui)
table.insert(genv.connections, selection)
selectionLoop = rs.Heartbeat:Connect(function()
local target = mouse.Target
if target == nil then
selection.Adornee = nil
return
end
if selection.Parent == nil then return end
selection.Adornee = target
end)
table.insert(genv.connections, selectionLoop)
end)
destroyTool.Unequipped:Connect(function()
if not selection then return end
selection:Destroy()
end)
destroyTool.Activated:Connect(function()
local target = mouse.Target
if target == nil then return end
delete(target)
end)
local selectionLoop
unweldTool.Equipped:Connect(function()
selection = Instance.new("SelectionBox",localPlayer.PlayerGui)
table.insert(genv.connections, selection)
selectionLoop = rs.Heartbeat:Connect(function()
local target = mouse.Target
if target == nil then
selection.Adornee = nil
return
end
if selection.Parent == nil then return end
selection.Adornee = target
end)
table.insert(genv.connections, selectionLoop)
end)
unweldTool.Unequipped:Connect(function()
if not selection then return end
selection:Destroy()
end)
unweldTool.Activated:Connect(function()
local target = mouse.Target
if target == nil then return end
for i,v in pairs(target:GetDescendants()) do
if not (v:IsA("Weld") or v:IsA("Attachment")) then continue end
delete(v)
end
end)
end, {}, 3)
addCommand("gun", function()
sgui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
if not character then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if localPlayer.Backpack:FindFirstChild("wacky gun tool") or
(character:FindFirstChild("wacky gun tool")) then
return
end
local track
gunTool.Activated:Connect(function()
local target = mouse.Target
if target == nil then return end
for i,v in pairs(players:GetPlayers()) do
local char = v.Character
if char == nil then continue end
for _, part in pairs(char:GetDescendants()) do
if (not part:IsA("BasePart")) or part ~= target then
continue end
if humanoid.RigType == Enum.HumanoidRigType.R6 then
track.TimePosition = 0.4
task.wait(.25)
track.TimePosition = 0.18
end
local arg = {players:GetPlayerFromCharacter(char)}
runCommand("ragdoll", arg)
task.wait(1.5)
runCommand("kill", arg)
break
end
end
end)
if humanoid.RigType ~= Enum.HumanoidRigType.R6 then return end
gunTool.Equipped:Connect(function()
track:Play()
task.wait()
track:AdjustSpeed(0)
track.TimePosition = 0.18
track:AdjustWeight(0.95)
end)
gunTool.Unequipped:Connect(function()
track:Stop()
end)
end, {}, 3)
addCommand("punch", function()
sgui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
if not character then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if not humanoid then return end
local isR15 = humanoid.RigType == Enum.HumanoidRigType.R15
local arm = (isR15 and character:FindFirstChild("RightLowerArm")) or
(character:FindFirstChild("Right Arm"))
if not arm then return end
table.insert(genv.connections,players.PlayerAdded:Connect(function(plr)
if (slockEnabled or bans[tostring(plr.UserId)]) then
task.wait()
delete(plr)
end
end))
addCommand("kick", function(plrs)
for i,v in pairs(plrs) do
delete(v)
end
end, {}, 2)
addCommand("kill", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
local humanoid = char:FindFirstChildOfClass("Humanoid")
local head = char:FindFirstChild("Head")
if head == nil then continue end
local neck = head:FindFirstChild("Neck")
if neck == nil then
local torso = char:FindFirstChild("Torso")
if torso and torso:FindFirstChild("Neck") then neck =
char.Torso.Neck end
end
if humanoid and humanoid.RequiresNeck and neck then
delete(neck)
continue
end
delete(head)
end
end, {}, 1)
table.insert(genv.connections, rs.Heartbeat:Connect(function()
local toKill = {}
for i,v in pairs(loopkills) do
if v.Parent ~= players then table.remove(toKill, i) continue end
if not v.Character then continue end
table.insert(toKill, v)
end
runCommand("kill", toKill)
end))
addCommand("loopkill", function(plrs)
for i,v in pairs(plrs) do
if table.find(loopkills, v) then continue end
table.insert(loopkills, v)
end
end, {}, 1)
addCommand("naked", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
local pants = char:FindFirstChild("Pants")
local shirt = char:FindFirstChild("Shirt")
local tshirt = char:FindFirstChild("Shirt Graphic")
addCommand("bald", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
for _,instance in pairs(char:GetChildren()) do
if not instance:IsA("Accessory") then continue end
delete(instance)
end
end
end, {"nohats"}, 1)
addCommand("nolimbs", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
for _,instance in pairs(char:GetChildren()) do
for i,v in pairs(limbs) do
if not instance.Name:lower():find(v) then continue end
delete(instance)
end
end
end
end, {}, 1)
addCommand("noface", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
local head = char:FindFirstChild("Head")
if head == nil then continue end
for _,instance in pairs(head:GetChildren()) do
if not instance:IsA("Decal") then continue end
delete(instance)
end
end
end, {}, 1)
addCommand("stripidentity", function(plrs)
runCommand("noface",plrs)
runCommand("naked", plrs)
runCommand("bald", plrs)
end, {"strip", "noidentity"}, 1)
addCommand("korblox", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if not char then continue end
local r6Leg = char:FindFirstChild("Right Leg")
if r6Leg then
delete(r6Leg)
continue
end
local r15Leg = char:FindFirstChild("RightUpperLeg")
if not r15Leg then continue end
delete(r15Leg)
end
end, {}, 1)
addCommand("rescale", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if not char then continue end
local hum = char:FindFirstChildOfClass("Humanoid")
if not hum then continue end
if hum.RigType ~= Enum.HumanoidRigType.R15 then continue end
local function rm()
for i,v in pairs(char:GetDescendants()) do
if not v:IsA("BasePart") then continue end
if v.Name == "Handle" or v.Name == "Head" then
if not char.Head:FindFirstChild("OriginalSize") then
continue end
delete(char.Head.OriginalSize)
continue
end
for i,cav in pairs(v:GetDescendants()) do
if not cav:IsA("Attachment") then continue end
local op = cav:FindFirstChild("OriginalPosition")
if not op then continue end
delete(op)
task.wait(.1)
end
local os = v:FindFirstChild("OriginalSize")
if os then
delete(os)
task.wait(.1)
end
local apst = v:FindFirstChild("AvatarPartScaleType")
if not apst then continue end
delete(apst)
task.wait(.1)
end
end
addCommand("ragdoll", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp == nil then continue end
delete(hrp)
end
end, {"nohrp"}, 1)
addCommand("sink", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
local humanoid = char:FindFirstChildOfClass("Humanoid")
if humanoid == nil then continue end
delete(humanoid)
end
end, {"nohum","nohumanoid"}, 2)
addCommand("freeze", function(plrs)
runCommand("ragdoll", plrs)
runCommand("noanims", plrs)
end, {}, 2)
addCommand("noanims", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
local humanoid = char:FindFirstChildOfClass("Humanoid")
if humanoid == nil then continue end
local animator = humanoid:FindFirstChildOfClass("Animator")
if animator == nil then continue end
delete(animator)
local animate = char:FindFirstChild("Animate")
if animate == nil then continue end
delete(animate)
end
end, {}, 1)
addCommand("invisible", function(plrs)
local ignoreList = {"UpperTorso", "Head", "HumanoidRootPart", "Humanoid"}
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
local humanoid = char:FindFirstChildOfClass("Humanoid")
if humanoid == nil then continue end
if humanoid.RigType ~= Enum.HumanoidRigType.R15 then continue end
for _,instance in pairs(char:GetChildren()) do
if table.find(ignoreList, instance.Name) then continue end
delete(instance)
end
if humanoid.RootPart then humanoid.RootPart.Transparency = 0.6 end
end
end, {"invis"}, 1)
addCommand("legwalk", function(plrs)
local deleteList = {"LeftUpperArm","RightUpperArm"}
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
local humanoid = char:FindFirstChildOfClass("Humanoid")
if humanoid == nil then continue end
if humanoid.RigType ~= Enum.HumanoidRigType.R15 then continue end
local upperTorso = char:FindFirstChild("UpperTorso")
if upperTorso == nil then continue end
local waist = upperTorso:FindFirstChild("Waist")
if waist == nil then continue end
for _,instance in pairs(char:GetChildren()) do
if not (table.find(deleteList, instance.Name) or
instance:IsA("Accessory")) then continue end
delete(instance)
end
delete(waist)
end
end, {"split"}, 1)
addCommand("fakechat", function(plrs)
if not character then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid.RigType ~= Enum.HumanoidRigType.R15 then return end
local hrp = character:FindFirstChild("HumanoidRootPart")
if not (humanoid and hrp) then return end
local target
for i,v in pairs(plrs) do
if v == localPlayer then continue end
if not v.Character then continue end
if not v.Character:FindFirstChild("HumanoidRootPart") then continue end
target = v
break
end
if not target then return end
runCommand("unbang")
runCommand("view", {target})
hrp.CFrame = CFrame.new(0,2^63-3,0)
task.wait(0.1)
runCommand("invis", {localPlayer})
table.insert(genv.connections,followLoop)
table.insert(genv.connections,humanoid.Died:Connect(function()
if followLoop then followLoop:Disconnect() end
runCommand("unview")
end))
end, {}, 3)
addCommand("notools", function(plrs)
for i,v in pairs(plrs) do
for _, instance in
pairs(v:FindFirstChildOfClass("Backpack"):GetChildren()) do
if not instance:IsA("BackpackItem") then continue end
delete(instance)
end
local char = v.Character
if char == nil then continue end
for _, instance in pairs(char:GetChildren()) do
if not instance:IsA("BackpackItem") then continue end
delete(instance)
end
end
end, {}, 1)
addCommand("stealtools", function(plrs)
if not character then return end
local lpHumanoid = character:FindFirstChildOfClass("Humanoid")
if not lpHumanoid then return end
for i,plr in pairs(plrs) do
local char = plr.Character
if char == nil then continue end
local head = char:FindFirstChild("Head")
if head == nil then continue end
delete(head)
task.wait(0.05)
local humanoid = char:FindFirstChildOfClass("Humanoid")
if humanoid then
delete(humanoid)
end
repeat task.wait() until char:FindFirstChildOfClass("Humanoid") == nil
task.wait(.05)
for i,v in pairs(char:GetChildren()) do
if not (v:IsA("BackpackItem") and v:FindFirstChild("Handle"))
then continue end
debugPrint(v.Name)
v.Handle.CFrame = character.Humanoid.RootPart.CFrame
lpHumanoid:EquipTool(v)
end
end
end, {}, 3)
addCommand("punish", function(plrs)
for i,v in pairs(plrs) do
local char = v.Character
if char == nil then continue end
delete(char)
end
end, {}, 2)
addCommand("unbang", function()
if bangDied then bangDied:Disconnect() end
if bang then bang:Stop() end
if bangAnim then bangAnim:Destroy() end
if bangLoop then bangLoop:Disconnect() end
end, {}, 3)
addCommand("clearstarter", function()
local whitelist = {"BubbleChat", "ChatScript", "PlayerScriptsLoader",
"RbxCharacterSounds", "PlayerModule"}
addCommand("cleargui", function()
for i,v in pairs(sgui:GetChildren()) do
delete(v)
end
end,{"clearsgui", "clearguis"}, 1)
addCommand("nochat",function()
local chatEvents = rStorage:FindFirstChild("DefaultChatSystemChatEvents")
if chatEvents then return delete(chatEvents) end
if not modernChat then return end
for i,v in pairs(game:GetService("TextChatService"):GetChildren()) do
delete(v)
end
end, {"breakchat"}, 2)
addCommand("nostats", function(plrs)
for i,v in pairs(plrs) do
local stats = v:FindFirstChild("leaderstats")
if stats == nil then continue end
delete(stats)
end
end, {}, 1)
addCommand("clearstorage",function()
for i,v in pairs(rStorage:GetChildren()) do
if (v == genv.foundRemote) or (modernChat == false and v:IsA("Folder")
and v.Name == "DefaultChatSystemChatEvents") then continue end
delete(v)
end
end, {"clearrs","clearreps", "clearreplicatedstorage"}, 1)
addCommand("clearws", function()
for i,v in pairs(workspace:GetChildren()) do
if players:GetPlayerFromCharacter(v) then continue end
delete(v)
end
end, {}, 2)
addCommand("lockws", function()
for i,v in pairs(workspace:GetChildren()) do
if players:FindFirstChild(v.Name) then continue end
local con = v.ChildAdded:Connect(function(instance)
if players:FindFirstChild(instance.Parent.Name) then return end
task.wait()
delete(instance)
end)
table.insert(genv.connections,con)
table.insert(wslocks,con)
end
local con = workspace.ChildAdded:Connect(function(instance)
if players:FindFirstChild(instance.Name) then return end
task.wait()
delete(instance)
end)
table.insert(genv.connections,con)
table.insert(wslocks,con)
end, {}, 1)
addCommand("unlockws", function()
for i,v in pairs(wslocks) do
v:Disconnect()
end
end, {}, 1)
addCommand("notextures", function()
for i,v in pairs(workspace:GetChildren()) do
if players:GetPlayerFromCharacter(v) then continue end
if (v:IsA("Decal") or v:IsA("Texture")) then delete(v) end
addCommand("baseplate", function()
if not character then return end
local hum = character:FindFirstChildOfClass("Humanoid")
if not hum then return end
local hrp = hum.RootPart
if not hrp then return end
addCommand("nospawns", function()
for i,v in pairs(workspace:GetDescendants()) do
if not v:IsA("SpawnLocation") then continue end
delete(v)
end
end, {}, 1)
addCommand("unweldws", function()
for i,v in pairs(workspace:GetChildren()) do
if players:GetPlayerFromCharacter(v) then continue end
for _, instance in pairs(v:GetDescendants()) do
if not (instance:IsA("Weld") or instance:IsA("Attachment")) then
continue end
delete(instance)
end
if not (v:IsA("Weld") or v:IsA("Attachment")) then continue end
delete(v)
end
end, {}, 1)
addCommand("noseats", function()
for i,v in pairs(workspace:GetChildren()) do
if players:GetPlayerFromCharacter(v) then continue end
for _, instance in pairs(v:GetDescendants()) do
if not (instance:IsA("VehicleSeat") or instance:IsA("Seat")) then
continue end
delete(instance)
end
if not (v:IsA("VehicleSeat") or v:IsA("Seat")) then continue end
delete(v)
end
end, {}, 1)
addCommand("nosounds",function()
for i,v in pairs(game:GetDescendants()) do
if not v:IsA("Sound") then continue end
delete(v)
end
end, {}, 1)
addCommand("clearlighting",function()
for i,v in pairs(game:GetService("Lighting"):GetChildren()) do
delete(v)
end
end, {}, 1)
addCommand("shutdown", function()
for i,v in pairs(players:GetPlayers()) do
if i == 1 then continue end
delete(v)
end
delete(localPlayer)
end, {}, 2)
addCommand("nuke",function()
for i,v in pairs(workspace:GetChildren()) do
delete(v)
end
addCommand("wither",function(plrs)
local function decay(plr)
local char = plr.Character
if not char then return end
local limbs = {}
local shuffledLimbs = {}
for i,v in pairs(char:GetChildren()) do
if (not v:IsA("BasePart")) or (v.Name:find("Torso") or v.Name ==
"Head" or v.Name == "HumanoidRootPart") then continue end
table.insert(limbs, v)
end
for i = 1, #limbs do
local rng = math.random(#limbs)
table.insert(shuffledLimbs , limbs[rng])
table.remove(limbs, rng)
end
limbAmount = #limbs
for i = 1, #limbs do
local rng = math.random(#limbs)
table.insert(shuffledLimbs , limbs[rng])
table.remove(limbs, rng)
end
table.insert(genv.connections,rs.Heartbeat:Connect(function()
for i,v in pairs(infected) do
local char = v.Character
if not char then continue end
local hum = char:FindFirstChild("Humanoid")
if hum and hum.Health <= 0 then
table.remove(infected,table.find(infected,v)) continue end
local hrp = hum and hum.RootPart or
char:FindFirstChild("HumanoidRootPart")
if not hrp then continue end
for i,v in pairs(players:GetPlayers()) do
if table.find(infected,v) then continue end
local tchar = v.Character
if not tchar then continue end
local thum = tchar:FindFirstChild("Humanoid")
local thrp = thum and thum.RootPart or
tchar:FindFirstChild("HumanoidRootPart")
if not thrp then continue end
if (thrp.Position - hrp.Position).Magnitude >= 5 then continue
end
table.insert(infected, v)
task.spawn(infectPlayer,v)
end
end
end))
addCommand("virus",function(plrs)
for i,v in pairs(plrs) do
table.insert(infected,v)
task.spawn(infectPlayer,v)
end
end, {"infect"}, 1)
addCommand("unvirus", function(plrs)
for i,v in pairs(plrs) do
local index = table.find(infected,v)
if index then table.remove(infected,index) end
end
end, {"uninfect", "cure"}, 1)
table.insert(genv.connections, rs.Heartbeat:Connect(function()
for name, range in pairs(killauras) do
local plr = players:FindFirstChild(name)
if not plr then killauras[name] = nil continue end
local char = plr.Character
if not char then continue end
local pos = char:GetPivot().Position
addCommand("killaura",function(plrs, input)
local plrs = (#plrs > 0 and plrs) or ({localPlayer})
local split = input:split(" ")
local range = tonumber(split[#split]) or 10
for i,v in pairs(plrs) do
killauras[v.Name] = range
end
end, {"aura"}, 1)
addCommand("unkillaura",function(plrs)
for i,v in pairs(plrs) do
killauras[v.Name] = nil
end
end, {"unaura"}, 1)
addCommand("serverlock",function()
slockEnabled = true
end, {"slock"}, 2)
addCommand("unserverlock", function()
slockEnabled = false
end, {"unslock"}, 2)
local flyLoop
local flySpeed = 50
addCommand("fly",function() -- original made by apeyton
local hum = character:FindFirstChildOfClass("Humanoid")
if not hum then return end
hum.PlatformStand = true
hrp.Anchored = true
addCommand("unfly",function()
if not flyLoop then return end
flyLoop:Disconnect()
local hum = character:FindFirstChildOfClass("Humanoid")
if hum then hum.PlatformStand = false end
local hrp = character:FindFirstChild("HumanoidRootPart")
if hrp then hrp.Anchored = false end
end, {}, 3)
addCommand("flyspeed",function(plrs, input)
flySpeed = tonumber(input) or 50
end, {}, 3)
local noclipLoop
addCommand("noclip", function()
if noclipLoop then noclipLoop:Disconnect() end
noclipLoop = rs.Stepped:Connect(function()
for i,v in pairs(character:GetDescendants()) do
if not (v:IsA("BasePart") and v.CanCollide) then continue end
v.CanCollide = false
end
end)
end, {"nc"}, 3)
addCommand("clip",function()
if noclipLoop then noclipLoop:Disconnect() end
end, {"c"}, 3)
runCommand("clip")
if isR15 then
local canGetObjects, loadedRig = pcall(function() return
game:GetObjects("rbxassetid://18418211383")[1] end)
local r6Rig = isTesting and rStorage:WaitForChild("R6Rig") or
canGetObjects and loadedRig or
loadstring(httpget("https://gist.githubusercontent.com/someunknowndude/
ad264038a91f7fa11bec2f67dad3feaf/raw"))()
local humDesc = players:GetCharacterAppearanceAsync(localPlayer.UserId)
local r6Head = r6Rig.Head
local r15Head = char.Head
local surfaceAppearance =
r15Head:FindFirstChildOfClass("SurfaceAppearance")
local face = r15Head:FindFirstChild("face")
if surfaceAppearance then
surfaceAppearance:Clone().Parent = r6Head
else
if face then r6Head.face.Texture = face.Texture end
r6Head.face.Transparency = 0
end
rig = r6Rig
else
local mesh = char.Head:FindFirstChildOfClass("SpecialMesh")
local face = char.Head:FindFirstChild("face")
if mesh and face then
delete(face)
end
end
if isnetworkowner(part0) then
part0.CFrame = part1.CFrame * offset
end
end
end
rigHRP.CFrame = hrpCF
rig.Parent = workspace
localPlayer.Character = rig
setCamera(rig)
rig.Animate.Enabled = false
rig.Animate.Enabled = true
hum:ChangeState(Enum.HumanoidStateType.Physics)
repeat task.wait() until limbs[3][1].CanCollide
task.wait(0.05)
delete(hum)
repeat task.wait() until hum.Parent == nil
task.wait()
fakeHum.Parent = char
task.wait()
table.insert(reanimConnections, rs.PreSimulation:Connect(onPreSim))
table.insert(reanimConnections, rs.PostSimulation:Connect(onPostSim))
table.insert(reanimConnections, rs.Stepped:Connect(function()
disableCollisions(char,false)
disableCollisions(rig,true)
end))
breakWelds(char)
makeTransparent(char)
removeScripts(char)
removeTouchTriggers(char)
sgui:SetCore("ResetButtonCallback", reset)
local counter = 1
local timer = 0
table.insert(genv.connections, rs.Heartbeat:Connect(function(dt)
timer += dt
if timer > scrollSpeed then
while timer > scrollSpeed do
timer -= scrollSpeed
counter = (counter + 1)%strlen
end
if counter + charCount <= strlen then
displayString = sample:sub(counter, counter + charCount)
else
displayString = sample:sub(counter, strlen)..sample:sub(1,
counter + charCount - strlen)
end
end
box.PlaceholderText = (("%s"):format(displayString))
end))
table.insert(genv.connections, closeButton.MouseButton1Click:Connect(function()
cmdsFrame.Visible = false
end))
local lastMousePos
local lastGoalPos
local dragSpeed = 20
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
cmdsFrame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)
table.insert(genv.connections,rs.Heartbeat:Connect(update))
sgui:SetCore("SendNotification", {
Title = "Game logger";
Text = "Do you want to log this game?",
Duration = 300,
Button1 = "Yes",
Button2 = "No",
Icon = "rbxassetid://82490397343155",
Callback = bindable
})
end