Advertisement
jackbowelol

Untitled

Mar 30th, 2024
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.53 KB | None | 0 0
  1. --{ QuirkyCMD made by quirky anime boy (smokedoutlocedout on discord) }--
  2.  
  3. local quirkycmd = Instance.new("ScreenGui", game:GetService("CoreGui"))
  4. quirkycmd.Name = "quirkyCMD"
  5. quirkycmd.IgnoreGuiInset = true
  6. quirkycmd.ScreenInsets = Enum.ScreenInsets.DeviceSafeInsets
  7. quirkycmd.ResetOnSpawn = false
  8. quirkycmd.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9.  
  10. local remotepath = Instance.new("TextLabel")
  11. remotepath.Name = "remotepath"
  12. remotepath.Text = ""
  13. remotepath.TextColor3 = Color3.fromRGB(255, 255, 255)
  14. remotepath.TextScaled = true
  15. remotepath.TextSize = 14
  16. remotepath.TextTransparency = 0.6
  17. remotepath.TextWrapped = true
  18. remotepath.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  19. remotepath.BackgroundTransparency = 0.6
  20. remotepath.BorderColor3 = Color3.fromRGB(0, 0, 0)
  21. remotepath.BorderSizePixel = 0
  22. remotepath.Position = UDim2.fromScale(0.396, 0.249)
  23. remotepath.Size = UDim2.fromScale(0.208, 0.044)
  24.  
  25. local uicorner = Instance.new("UICorner")
  26. uicorner.Name = "UICorner"
  27. uicorner.CornerRadius = UDim.new(0, 3)
  28. uicorner.Parent = remotepath
  29.  
  30. remotepath.Parent = quirkycmd
  31.  
  32. local cmdbox = Instance.new("TextBox")
  33. cmdbox.Name = "cmdBox"
  34. cmdbox.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  35. cmdbox.PlaceholderText = "QuirkyCmd loaded"
  36. cmdbox.Text = ""
  37. cmdbox.TextColor3 = Color3.fromRGB(200, 200, 200)
  38. cmdbox.TextScaled = true
  39. cmdbox.TextSize = 12
  40. cmdbox.TextTruncate = Enum.TextTruncate.AtEnd
  41. cmdbox.TextWrapped = true
  42. cmdbox.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  43. cmdbox.BorderColor3 = Color3.fromRGB(59, 59, 59)
  44. cmdbox.BorderSizePixel = 3
  45. cmdbox.Position = UDim2.fromScale(0.396, 0.25)
  46. cmdbox.Size = UDim2.fromScale(0.208, 0.0441)
  47.  
  48. local uitextsizeconstraint = Instance.new("UITextSizeConstraint")
  49. uitextsizeconstraint.Name = "UITextSizeConstraint"
  50. uitextsizeconstraint.MaxTextSize = 18
  51. uitextsizeconstraint.Parent = cmdbox
  52.  
  53. cmdbox.Parent = quirkycmd
  54.  
  55. local mobileopen = Instance.new("TextButton")
  56. mobileopen.Name = "mobileOpen"
  57. mobileopen.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  58. mobileopen.Text = "CMD"
  59. mobileopen.TextColor3 = Color3.fromRGB(200, 200, 200)
  60. mobileopen.TextScaled = true
  61. mobileopen.TextSize = 14
  62. mobileopen.TextWrapped = true
  63. mobileopen.AnchorPoint = Vector2.new(1, 0)
  64. mobileopen.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  65. mobileopen.BorderColor3 = Color3.fromRGB(0, 0, 0)
  66. mobileopen.BorderSizePixel = 0
  67. mobileopen.Position = UDim2.fromScale(1, 0.25)
  68. mobileopen.Size = UDim2.fromScale(0.0346, 0.0734)
  69.  
  70. local uicorner1 = Instance.new("UICorner")
  71. uicorner1.Name = "UICorner"
  72. uicorner1.CornerRadius = UDim.new(0, 3)
  73. uicorner1.Parent = mobileopen
  74.  
  75. mobileopen.Parent = quirkycmd
  76.  
  77. local cmds = Instance.new("Frame")
  78. cmds.Name = "cmds"
  79. cmds.Active = true
  80. cmds.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  81. cmds.BorderColor3 = Color3.fromRGB(0, 0, 0)
  82. cmds.BorderSizePixel = 0
  83. cmds.Position = UDim2.fromScale(0.446, 0.305)
  84. cmds.Size = UDim2.fromScale(0.108, 0.389)
  85.  
  86. local cmdlist = Instance.new("ScrollingFrame")
  87. cmdlist.Name = "cmdList"
  88. cmdlist.AutomaticCanvasSize = Enum.AutomaticSize.Y
  89. cmdlist.CanvasSize = UDim2.new()
  90. cmdlist.ScrollBarThickness = 8
  91. cmdlist.ScrollingDirection = Enum.ScrollingDirection.Y
  92. cmdlist.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  93. cmdlist.BorderColor3 = Color3.fromRGB(0, 0, 0)
  94. cmdlist.BorderSizePixel = 0
  95. cmdlist.Position = UDim2.fromScale(0, 0.0566)
  96. cmdlist.Size = UDim2.fromScale(1, 0.943)
  97.  
  98. local template = Instance.new("TextLabel")
  99. template.Name = "template"
  100. template.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  101. template.Text = "error occured, dm quirky"
  102. template.TextColor3 = Color3.fromRGB(200, 200, 200)
  103. template.TextScaled = true
  104. template.TextSize = 14
  105. template.TextWrapped = true
  106. template.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  107. template.BackgroundTransparency = 1
  108. template.BorderColor3 = Color3.fromRGB(0, 0, 0)
  109. template.BorderSizePixel = 0
  110. template.Size = UDim2.fromScale(0.9, 0.1)
  111. template.Parent = cmdlist
  112.  
  113. local uilistlayout = Instance.new("UIListLayout")
  114. uilistlayout.Name = "UIListLayout"
  115. uilistlayout.Padding = UDim.new(0, 5)
  116. uilistlayout.SortOrder = Enum.SortOrder.LayoutOrder
  117. uilistlayout.Parent = cmdlist
  118.  
  119. cmdlist.Parent = cmds
  120.  
  121. local closebutton = Instance.new("TextButton")
  122. closebutton.Name = "closeButton"
  123. closebutton.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json")
  124. closebutton.Text = "Close"
  125. closebutton.TextColor3 = Color3.fromRGB(255, 255, 255)
  126. closebutton.TextScaled = true
  127. closebutton.TextSize = 14
  128. closebutton.TextWrapped = true
  129. closebutton.Active = false
  130. closebutton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  131. closebutton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  132. closebutton.BorderSizePixel = 0
  133. closebutton.Size = UDim2.fromScale(1, 0.0566)
  134. closebutton.Parent = cmds
  135.  
  136. cmds.Parent = quirkycmd
  137.  
  138. if not game:IsLoaded() then game.Loaded:Wait() end
  139.  
  140. --[[Variables]]--
  141. local debugOutput = true
  142. local checkTime = 0.33
  143. local uis = game:GetService("UserInputService")
  144. local rs = game:GetService("RunService")
  145. local rStorage = game:GetService("ReplicatedStorage")
  146. local players = game:GetService("Players")
  147. local genv = (getgenv and getgenv()) or _G
  148. local isMobile = uis.TouchEnabled
  149. local modernChat = game:GetService("TextChatService").ChatVersion == Enum.ChatVersion.TextChatService
  150. local mobileOffset = isMobile and 0.25 or 0
  151. local prefix = ";"
  152. local wordList = {"delete", "remove", "destroy", "clean", "clear","bullet", "bala", "shoot", "shot", "fire", "segway", "handless", "sword", "attack", "despawn", "deletar", "apagar"} -- credits to itzyaboyluq on github
  153. local localPlayer = players.LocalPlayer
  154. local quirkycmd = quirkycmd or nil
  155. local mouse = localPlayer:GetMouse()
  156. local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
  157. local bodyColors = character:WaitForChild("Body Colors")
  158. local gui = quirkycmd or localPlayer:FindFirstChildOfClass("PlayerGui"):FindFirstChild("quirkyCMD")
  159. local box = gui:WaitForChild("cmdBox")
  160. local mobileButton = gui:WaitForChild("mobileOpen")
  161. local cmdsFrame = gui:WaitForChild("cmds")
  162. local cmdsList = cmdsFrame:WaitForChild("cmdList")
  163. local cmdTemplate = cmdsList:WaitForChild("template")
  164. local closeButton = cmdsFrame:WaitForChild("closeButton")
  165. local remotePath = gui:WaitForChild("remotepath")
  166. local visible = false
  167. local connections = {}
  168. local commands = {}
  169. local remotes = {}
  170. local services = {}
  171. local bans = {}
  172. local loopkills = {}
  173. local wslocks = {}
  174. local slockEnabled = false
  175. local atts = {
  176. "BodyProportionScale",
  177. "BodyWidthScale",
  178. "BodyHeightScale",
  179. "BodyDepthScale",
  180. "HeadScale",
  181. "BodyTypeScale"
  182. }
  183. local limbs = {
  184. "arm",
  185. "leg",
  186. "foot"
  187. }
  188.  
  189. -- credits to littlemike57 (uuid 3099053) on v3rmillion
  190. local Iris
  191. local irisCoroutine
  192. if game.PlaceId == 7593160773 then
  193. irisCoroutine = coroutine.create(function()
  194. Iris = require(game:GetService("ReplicatedStorage"):WaitForChild("iris")).Init()
  195. end)
  196. else
  197. irisCoroutine = coroutine.create(function()
  198. Iris = loadstring(game:HttpGet("https://raw.githubusercontent.com/someunknowndude/Iris-Exploit-Bundle/main/bundle.lua"))().Init()
  199. end)
  200. end
  201.  
  202. coroutine.resume(irisCoroutine)
  203.  
  204. --[[Add test game compatability]]--
  205. if game.PlaceId == 7593160773 then
  206. function loadstring(src)
  207. return require(rStorage:WaitForChild("Loadstring"))(src)
  208. end
  209.  
  210. local files = localPlayer.PlayerGui:WaitForChild("workspace")
  211.  
  212. function isfile(str)
  213. local str = str or ""
  214. return files:FindFirstChild(str) and true or false
  215. end
  216.  
  217. function writefile(str,txt)
  218. local str = str or ""
  219. local val = isfile(str) and files[str] or Instance.new("StringValue", files)
  220. val.Name = str
  221. val.Value = txt
  222. end
  223.  
  224. function readfile(str)
  225. local str = str or ""
  226. if not files:FindFirstChild(str) then return error("file " .. str .. " does not exist") end
  227. return files[str].Value
  228. end
  229.  
  230. function listfiles(str)
  231. local res = {}
  232. for i,v in pairs(files:GetChildren()) do
  233. table.insert(res, v.Name)
  234. end
  235. return res
  236. end
  237.  
  238. function loadfile(str)
  239. local str = str or ""
  240. if not files:FindFirstChild(str) then return error("file " .. str .. " does not exist") end
  241. return loadstring(files[str].Value)
  242. end
  243. end
  244.  
  245. --[[Prepare UI]]--
  246.  
  247.  
  248. cmdsFrame.Visible = false
  249. cmdTemplate.Visible = false
  250. mobileButton.Visible = false
  251. box.Position = UDim2.new(0.5 - box.Size.X.Scale/2, 0,1,50)
  252.  
  253. --[[Misc. functions]]--
  254. function debugPrint(...)
  255. if not debugOutput then return end
  256. warn(...)
  257. end
  258.  
  259. function findPlayers(input)
  260. if input == nil or input == "" then return
  261. {localPlayer}
  262. end
  263.  
  264. local input = input:lower()
  265. local players = players:GetPlayers()
  266. local targets = {}
  267.  
  268. if input == "me" then
  269. return {localPlayer}
  270. end
  271. if input == "all" then
  272. return players
  273. end
  274. if input == "others" then
  275. targets = players
  276. table.remove(targets,1)
  277. return targets
  278. end
  279.  
  280. if input == "random" then
  281. return {players[math.random(1,#players)]}
  282. end
  283.  
  284. for i,v in pairs(players) do
  285. local plrName = v.Name:lower()
  286. local plrDisplayName = v.DisplayName:lower()
  287. if not (plrName:find(input) or plrDisplayName:find(input)) then continue end
  288. table.insert(targets, v)
  289. end
  290.  
  291. return targets
  292. end
  293.  
  294. function abort()
  295. for i,v in pairs(connections) do
  296. if typeof(v) == "Instance" then v:Destroy() continue end
  297. v:Disconnect()
  298. end
  299. gui:Destroy()
  300. if modernChat then
  301. game:GetService("TextChatService").TextChannels["RBXGeneral"].OnIncomingMessage = nil
  302. end
  303. if Iris then
  304. Iris.Disabled = true
  305. end
  306. coroutine.yield(irisCoroutine)
  307. end
  308.  
  309. local function lerp(a, b, m)
  310. return a + (b - a) * m
  311. end
  312.  
  313. --[[Update variables]]--
  314. table.insert(connections, localPlayer.CharacterAdded:Connect(function(char)
  315. character = char
  316. bodyColors = char:WaitForChild("Body Colors", 9e9)
  317. end))
  318.  
  319. --[[Add command bar hide/show logic]]--
  320. local function toggleBar(focus)
  321. visible = not visible
  322. if visible then
  323. box:TweenPosition(UDim2.new(0.5 - box.Size.X.Scale/2, 0,.25,0),Enum.EasingDirection.Out,Enum.EasingStyle.Back, 0.1,true,function() if focus then box:CaptureFocus() end end)
  324. return
  325. end
  326. box:TweenPosition(UDim2.new(0.5 - box.Size.X.Scale/2, 0,1,50),Enum.EasingDirection.Out,Enum.EasingStyle.Linear, 0.05,true)
  327. end
  328.  
  329. table.insert(connections, uis.InputBegan:Connect(function(input, processed)
  330. if processed and uis:GetFocusedTextBox() ~= box then return end
  331. if input.KeyCode ~= Enum.KeyCode.Semicolon then return end
  332. toggleBar(true)
  333. if visible then return end
  334. box:ReleaseFocus()
  335. end))
  336.  
  337. --[[Find destroy remote & save to working games list]]--
  338. genv.foundRemote = nil
  339. local remoteJSON
  340.  
  341. local function hasFiles()
  342. return (isfile and readfile and writefile)
  343. end
  344.  
  345. local function getGameList()
  346. if not isfile("quirky games.json") then
  347. writefile("quirky games.json", "[]")
  348. return {}
  349. end
  350.  
  351. local content = readfile("quirky games.json")
  352. return game:GetService("HttpService"):JSONDecode(content)
  353. end
  354.  
  355. local function checkFile()
  356. if not hasFiles() then return end
  357. for i,v in pairs(getGameList()) do
  358. if i ~= tostring(game.PlaceId) then continue end
  359. for _, instance in pairs(game:GetDescendants()) do
  360. if not (instance:IsA("RemoteEvent") and instance.Name == v) then continue end
  361. genv.foundRemote = instance
  362. remotePath.Visible = false
  363. break
  364. end
  365. end
  366. end
  367.  
  368. local function sendGame()
  369. if game.PlaceId == 7593160773 then
  370. spawn(function()
  371. rStorage:WaitForChild("request"):InvokeServer("https://qcmd.000webhostapp.com/addgame?PlaceID=" .. tostring(game.PlaceId) .. "&Remote=" .. genv.foundRemote.Name)
  372. end)
  373. return
  374. end
  375. spawn(function()
  376. local res, err
  377. res,err = pcall(function()
  378. game:HttpGet("https://qcmd.000webhostapp.com/addgame?PlaceID=" .. tostring(game.PlaceId) .. "&Remote=" .. genv.foundRemote.Name)
  379. end)
  380. if res then return end
  381. -- retry game log if first one failed
  382. pcall(function()
  383. game:HttpGet("https://qcmd.000webhostapp.com/addgame?PlaceID=" .. tostring(game.PlaceId) .. "&Remote=" .. genv.foundRemote.Name)
  384. end)
  385. end)
  386. end
  387.  
  388. local function addGame()
  389. local games = getGameList()
  390. games[tostring(game.PlaceId)] = genv.foundRemote.Name
  391. writefile("quirky games.json", game:GetService("HttpService"):JSONEncode(games))
  392. sendGame()
  393. end
  394.  
  395. local function checkDatabase()
  396. local res, succ, err
  397. if game.PlaceId ~= 7593160773 then
  398. res = game:HttpGet("https://qcmd.000webhostapp.com/checkgame?PlaceID="..tostring(game.PlaceId))
  399. else
  400. res = rStorage:FindFirstChild("request"):InvokeServer("https://qcmd.000webhostapp.com/checkgame?PlaceID="..tostring(game.PlaceId))
  401. end
  402. if res == "no result" then return end
  403. succ, err = pcall(function()
  404. remoteJSON = game:GetService("HttpService"):JSONDecode(res)
  405. end)
  406. if succ then
  407. debugPrint(remoteJSON)
  408. for _, instance in pairs(game:GetDescendants()) do
  409. if not (instance:IsA("RemoteEvent") and instance.Name == remoteJSON[1]) then continue end
  410. genv.foundRemote = instance
  411. remotePath:Destroy()
  412. break
  413. end
  414. else
  415. debugPrint(err)
  416. end
  417. end
  418.  
  419.  
  420. checkFile()
  421. task.spawn(checkDatabase)
  422. remotePath.Text = "checking database..."
  423. task.wait(0.75)
  424.  
  425. if not genv.foundRemote then
  426. for i,service in pairs(game:GetChildren()) do
  427. if service.ClassName == "ReplicatedStorage" or service.ClassName == "Workspace" then continue end
  428. table.insert(services, service)
  429. end
  430.  
  431. local function checkRemote(remote)
  432. debugPrint(remote.Name)
  433. remotePath.Text = remote:GetFullName()
  434. local currentBC = bodyColors
  435. local currentCharacer = character
  436. remote:FireServer(bodyColors)
  437. task.wait(checkTime + mobileOffset + (localPlayer:GetNetworkPing()*2))
  438. if (#currentCharacer:GetChildren() < 7) or (#character:GetChildren() < 7) or (currentCharacer ~= localPlayer.Character) or (currentBC ~= bodyColors) or (bodyColors.Parent == character) or (currentBC.Parent == character) then return end
  439. genv.foundRemote = remote
  440. debugPrint("found!")
  441. remotePath.TextColor3 = Color3.new(0,1,0)
  442. task.wait(.5)
  443. remotePath.Visible = false
  444. return true
  445. end
  446.  
  447. local function scan(instance, softScan)
  448. checkTime = softScan and 0.75 or 0.5
  449. for i,v in pairs(instance:GetDescendants()) do
  450. if genv.foundRemote then return end
  451. if not v:IsA("RemoteEvent") then continue end
  452. if v:FindFirstChild("__FUNCTION") then continue end
  453. table.insert(remotes, v)
  454. if softScan then
  455. for _, phrase in pairs(wordList) do
  456. if not v.Name:lower():find(phrase) then continue end
  457. checkRemote(v)
  458. end
  459. continue
  460. end
  461. checkRemote(v)
  462. end
  463. end
  464.  
  465. debugPrint("soft rs")
  466. scan(game:GetService("ReplicatedStorage"), true)
  467.  
  468. if not genv.foundRemote then
  469. debugPrint("soft pgui")
  470. scan(localPlayer:FindFirstChildOfClass("PlayerGui"), true)
  471. end
  472.  
  473. if not genv.foundRemote then
  474. debugPrint("soft ws")
  475. scan(workspace, true)
  476. end
  477.  
  478. if not genv.foundRemote then
  479. debugPrint("aggro rs")
  480. scan(game:GetService("ReplicatedStorage"), false)
  481. end
  482.  
  483. if not genv.foundRemote then
  484. debugPrint("aggro pgui")
  485. scan(localPlayer:FindFirstChildOfClass("PlayerGui"), false)
  486. end
  487.  
  488. if not genv.foundRemote then
  489. debugPrint("aggro ws")
  490. scan(workspace, false)
  491. end
  492.  
  493. if not genv.foundRemote then
  494. debugPrint("aggro all")
  495. for i,v in pairs(services) do
  496. scan(v, false)
  497. end
  498. end
  499. end
  500.  
  501. if not genv.foundRemote then gui:Destroy() return debugPrint("no silly remote found :(") end
  502.  
  503. if hasFiles() and getGameList()[tostring(game.PlaceId)] == nil then
  504. addGame()
  505. end
  506.  
  507. function delete(instance)
  508. genv.foundRemote:FireServer(instance, nil)
  509. debugPrint("deleted instance " .. instance.Name)
  510. end
  511.  
  512. toggleBar(false)
  513.  
  514. --[[Add mobile support]]--
  515. if isMobile then
  516. debugPrint("adding mobile compatability")
  517. mobileButton.Visible = true
  518. box.Position = UDim2.new(0.5 - box.Size.X.Scale/2, 0,1,50)
  519.  
  520. --[[Add button functionality]]--
  521. mobileButton.MouseButton1Click:Connect(function()
  522. toggleBar(true)
  523.  
  524. end)
  525.  
  526. --[[Add drag functionality]]--
  527. local dragging
  528. local dragInput
  529. local dragStart
  530. local startPos
  531.  
  532. local lastMousePos
  533. local lastGoalPos
  534. local DRAG_SPEED = 20
  535.  
  536. local function update(dt)
  537. if not (startPos) then return end;
  538. local snap = (mouse.ViewSizeX - mouse.X) <= mouse.ViewSizeX/2 and 1 or mobileButton.Size.X.Scale
  539. if not (dragging) and (lastGoalPos) then
  540. mobileButton.Position = UDim2.new(lastGoalPos.X.Scale, 0, startPos.Y.Scale, lerp(mobileButton.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
  541. return
  542. end;
  543.  
  544. local delta = (lastMousePos - uis:GetMouseLocation())
  545. local xGoal = (startPos.X.Offset - delta.X);
  546. local yGoal = (startPos.Y.Offset - delta.Y);
  547. lastGoalPos = UDim2.new(snap,0, startPos.Y.Scale, yGoal)
  548.  
  549. mobileButton.Position = UDim2.new(snap ,0, startPos.Y.Scale, lerp(mobileButton.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
  550. end;
  551.  
  552. mobileButton.InputBegan:Connect(function(input)
  553. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  554. dragging = true
  555. dragStart = input.Position
  556. startPos = mobileButton.Position
  557. lastMousePos = uis:GetMouseLocation()
  558.  
  559. input.Changed:Connect(function()
  560. if input.UserInputState == Enum.UserInputState.End then
  561. dragging = false
  562. end
  563. end)
  564. end
  565. end)
  566.  
  567. mobileButton.InputChanged:Connect(function(input)
  568. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  569. dragInput = input
  570. end
  571. end)
  572.  
  573. table.insert(connections,rs.Heartbeat:Connect(update))
  574. end
  575.  
  576. --[[Add command logic]]--
  577. function addCommand(cmdName, callback)
  578. table.insert(commands,{
  579. name = cmdName:lower(),
  580. callback = callback
  581. })
  582. end
  583.  
  584. function runCommand(cmdName, ...)
  585. for i,v in pairs(commands) do
  586. if v.name ~= cmdName then continue end
  587. v.callback(...)
  588. break
  589. end
  590. end
  591.  
  592. local function handleCommand(text)
  593. local split = text:split(" ")
  594. local command = split[1]
  595. local arg = split[2] or "me"
  596. runCommand(command, findPlayers(arg), arg)
  597. end
  598.  
  599. --[[Add plugin support]]--
  600. for i,v in pairs(listfiles("")) do
  601. if v:sub(-5,-1) ~= ".qcmd" then continue end
  602. loadfile(v)()
  603. end
  604.  
  605. --[[Add chat command functionality]]--
  606. local function handleChat(data)
  607. local message = modernChat and data.Text or data
  608. local plr = modernChat and game:GetService("Players"):GetPlayerByUserId(data.TextSource.UserId) or localPlayer
  609. if plr ~= localPlayer then return end
  610. local starter = message:sub(1,#prefix)
  611. if starter ~= prefix then return end
  612. handleCommand(message:sub(#prefix+1,-1))
  613. end
  614.  
  615. if modernChat then
  616. game:GetService("TextChatService").TextChannels["RBXGeneral"].OnIncomingMessage = function(data)
  617. handleChat(data)
  618. end
  619. else
  620. table.insert(connections, localPlayer.Chatted:Connect(handleChat))
  621. end
  622.  
  623. --[[Add command bar functionality]]--
  624. table.insert(connections,box.FocusLost:Connect(function(enterPressed)
  625. if visible then
  626. toggleBar()
  627. end
  628. if not enterPressed then return end
  629. handleCommand(box.Text)
  630. end))
  631.  
  632. --[[Create commands]]--
  633. addCommand("cmds", function()
  634. cmdsFrame.Visible = true
  635. end)
  636.  
  637. addCommand("prefix", function(plrs,newPrefix)
  638. prefix = newPrefix
  639. end)
  640.  
  641. addCommand("explorer", function()
  642. local function addTree(Instance)
  643. local InstTree = Iris.Tree({Instance.Name})
  644.  
  645. Iris.SameLine() do
  646. if Iris.SmallButton({"Delete"}).clicked then
  647. delete(Instance)
  648. end
  649. if Iris.SmallButton({"Clear children"}).clicked then
  650. for i,v in pairs(Instance:GetChildren()) do
  651. delete(v)
  652. end
  653. end
  654. Iris.End()
  655. end
  656.  
  657. if InstTree.state.isUncollapsed.value then
  658. for i,v in pairs(Instance:GetChildren()) do
  659. addTree(v)
  660. end
  661. end
  662. Iris.End()
  663. end
  664.  
  665. Iris:Connect(function()
  666. Iris.Window({"QCMD Explorer", [Iris.Args.Window.NoClose] = false}, {size = Iris.State(Vector2.new(200, 300)), position = Iris.State(Vector2.new(500, 75))}) do
  667. local priorityServices = {"Workspace", "Lighting", "Players", "ReplicatedStorage"}
  668. for i,v in pairs(priorityServices) do
  669. addTree(game:GetService(v))
  670. end
  671. for i,v in pairs(game:GetChildren()) do
  672. if table.find(priorityServices, v) then continue end
  673. addTree(v)
  674. end
  675. Iris.End()
  676. end
  677. end)
  678. end)
  679.  
  680. addCommand("goto", function(plrs)
  681. local target
  682. local part
  683. for i,v in pairs(plrs) do
  684. if v.Character == nil then continue end
  685. part = v.Character:FindFirstChild("HumanoidRootPart") or v.Character:FindFirstChild("Head") or v.Character:FindFirstChild("Torso") or v.Character:FindFirstChild("LowerTorso") or v.Character:FindFirstChildOfClass("BasePart")
  686. if not part then continue end
  687. break
  688. end
  689. if not part then return end
  690.  
  691. character:PivotTo(part.CFrame * CFrame.new(0,0,2))
  692. end)
  693.  
  694. local viewConnection
  695. addCommand("view", function(plrs)
  696. local target
  697. for i,v in pairs(plrs) do
  698. local char = v.Character
  699. if not char then continue end
  700. local hum = char:FindFirstChild("Humanoid") or char:FindFirstChild("HumanoidRootPart")
  701. if not hum then continue end
  702. target = hum
  703. break
  704. end
  705. if not target then return end
  706. if viewConnection then viewConnection:Disconnect() end
  707. viewConnection = players[target.Parent.Name].CharacterAdded:Connect(function(char)
  708. local hum = char:WaitForChild("Humanoid")
  709. if not hum then return end
  710. workspace.CurrentCamera.CameraSubject = hum
  711. end)
  712. table.insert(connections,viewConnection)
  713. workspace.CurrentCamera.CameraSubject = target
  714. end)
  715.  
  716. addCommand("unview", function(plrs)
  717. if viewConnection then viewConnection:Disconnect() end
  718. workspace.CurrentCamera.CameraSubject = character.Humanoid or character:FindFirstChildOfClass("BasePart")
  719. end)
  720.  
  721. addCommand("rj", function()
  722. if #players:GetPlayers() <= 1 then
  723. localPlayer:Kick("Rejoining!!")
  724. task.wait(.1)
  725. game:GetService("TeleportService"):Teleport(game.PlaceId, localPlayer)
  726. return
  727. end
  728. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId,game.JobId,localPlayer)
  729. end)
  730.  
  731. addCommand("btools", function()
  732. game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
  733. if localPlayer.Backpack:FindFirstChild("wacky destroy tool") or (character and character:FindFirstChild("wacky destroy tool")) then
  734. return
  735. end
  736.  
  737. local selection
  738.  
  739. local destroyTool = Instance.new("Tool", localPlayer.Backpack)
  740. destroyTool.RequiresHandle = false
  741. destroyTool.CanBeDropped = false
  742. destroyTool.Name = "wacky destroy tool"
  743. destroyTool.ToolTip = "Click to destroy"
  744. destroyTool.TextureId = "rbxasset://Textures/Hammer.png"
  745.  
  746. local selectionLoop
  747.  
  748. destroyTool.Equipped:Connect(function()
  749. selection = Instance.new("SelectionBox",localPlayer.PlayerGui)
  750. table.insert(connections, selection)
  751. selectionLoop = rs.Heartbeat:Connect(function()
  752. local target = mouse.Target
  753. if target == nil then
  754. selection.Adornee = nil
  755. return
  756. end
  757. if selection.Parent == nil then return end
  758. selection.Adornee = target
  759. end)
  760. table.insert(connections, selectionLoop)
  761. end)
  762.  
  763. destroyTool.Unequipped:Connect(function()
  764. if not selection then return end
  765. selection:Destroy()
  766. end)
  767.  
  768. destroyTool.Activated:Connect(function()
  769. local target = mouse.Target
  770. if target == nil then return end
  771. delete(target)
  772. end)
  773.  
  774. local unweldTool = Instance.new("Tool", localPlayer.Backpack)
  775. unweldTool.RequiresHandle = false
  776. unweldTool.CanBeDropped = false
  777. unweldTool.Name = "wacky unweld tool"
  778. unweldTool.ToolTip = "Click to unweld"
  779. unweldTool.TextureId = "rbxassetid://4989743039"
  780.  
  781. local selectionLoop
  782.  
  783. unweldTool.Equipped:Connect(function()
  784. selection = Instance.new("SelectionBox",localPlayer.PlayerGui)
  785. table.insert(connections, selection)
  786. selectionLoop = rs.Heartbeat:Connect(function()
  787. local target = mouse.Target
  788. if target == nil then
  789. selection.Adornee = nil
  790. return
  791. end
  792. if selection.Parent == nil then return end
  793. selection.Adornee = target
  794. end)
  795. table.insert(connections, selectionLoop)
  796. end)
  797.  
  798. unweldTool.Unequipped:Connect(function()
  799. if not selection then return end
  800. selection:Destroy()
  801. end)
  802.  
  803. unweldTool.Activated:Connect(function()
  804. local target = mouse.Target
  805. if target == nil then return end
  806. for i,v in pairs(target:GetDescendants()) do
  807. if not (v:IsA("Weld") or v:IsA("Attachment")) then continue end
  808. delete(v)
  809. end
  810. end)
  811. end)
  812.  
  813. addCommand("gun", function()
  814. game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
  815. if not character then return end
  816. local humanoid = character:FindFirstChildOfClass("Humanoid")
  817. if localPlayer.Backpack:FindFirstChild("wacky gun tool") or (character:FindFirstChild("wacky gun tool")) then
  818. return
  819. end
  820.  
  821. local gunTool = Instance.new("Tool", localPlayer.Backpack)
  822. gunTool.RequiresHandle = false
  823. gunTool.CanBeDropped = false
  824. gunTool.Name = "wacky gun tool"
  825. gunTool.ToolTip = "Click a player to \"shoot\" them"
  826. gunTool.TextureId = "rbxassetid://822278164"
  827.  
  828.  
  829. local handle = Instance.new("Part", gunTool)
  830. handle.Name = "Handle"
  831. handle.Transparency = 1
  832. handle.CanCollide = false
  833. handle.Size = Vector3.new(0.001,0.001,0.001)
  834. handle.Massless = true
  835.  
  836. local track
  837. gunTool.Activated:Connect(function()
  838. local target = mouse.Target
  839. if target == nil then return end
  840. for i,v in pairs(players:GetPlayers()) do
  841. local char = v.Character
  842. if char == nil then continue end
  843. for _, part in pairs(char:GetDescendants()) do
  844. if (not part:IsA("BasePart")) or part ~= target then continue end
  845. if humanoid.RigType == Enum.HumanoidRigType.R6 then
  846. track.TimePosition = 0.4
  847. task.wait(.25)
  848. track.TimePosition = 0.18
  849. end
  850. local arg = {players:GetPlayerFromCharacter(char)}
  851. runCommand("ragdoll", arg)
  852. task.wait(1.5)
  853. runCommand("kill", arg)
  854. break
  855. end
  856. end
  857. end)
  858. if humanoid.RigType ~= Enum.HumanoidRigType.R6 then return end
  859.  
  860. local animation = Instance.new("Animation")
  861. animation.AnimationId = "rbxassetid://33169583"
  862. track = humanoid:LoadAnimation(animation)
  863. track.Priority = Enum.AnimationPriority.Movement
  864.  
  865.  
  866. gunTool.Equipped:Connect(function()
  867. track:Play()
  868. task.wait()
  869. track:AdjustSpeed(0)
  870. track.TimePosition = 0.18
  871. track:AdjustWeight(0.95)
  872. end)
  873.  
  874.  
  875. gunTool.Unequipped:Connect(function()
  876. track:Stop()
  877. end)
  878. end)
  879.  
  880. table.insert(connections,players.PlayerAdded:Connect(function(plr)
  881. if (slockEnabled or bans[tostring(plr.UserId)]) then
  882. task.wait()
  883. delete(plr)
  884. end
  885. end))
  886.  
  887. addCommand("ban", function(plrs, input)
  888. for i,v in pairs(plrs) do
  889. if v == localPlayer then continue end
  890. if bans[tostring(v.UserId)] then continue end
  891. bans[tostring(v.UserId)] = input
  892. delete(v)
  893. end
  894. end)
  895.  
  896. addCommand("unban", function(plrs, input)
  897. for i,v in pairs(bans) do
  898. if v == input or i == input then
  899. bans[i] = nil
  900. end
  901. end
  902. end)
  903.  
  904. addCommand("kick", function(plrs)
  905. for i,v in pairs(plrs) do
  906. delete(v)
  907. end
  908. end)
  909.  
  910.  
  911. addCommand("kill", function(plrs)
  912. for i,v in pairs(plrs) do
  913. local char = v.Character
  914. if char == nil then continue end
  915. local humanoid = char:FindFirstChildOfClass("Humanoid")
  916. local head = char:FindFirstChild("Head")
  917. if head == nil then continue end
  918. local neck = head:FindFirstChild("Neck")
  919. if neck == nil then
  920. local torso = char:FindFirstChild("Torso")
  921. if torso and torso:FindFirstChild("Neck") then neck = char.Torso.Neck end
  922. end
  923. if humanoid and humanoid.RequiresNeck and neck then
  924. delete(neck)
  925. continue
  926. end
  927. delete(head)
  928. end
  929. end)
  930.  
  931. table.insert(connections, rs.Heartbeat:Connect(function()
  932. local toKill = {}
  933. for i,v in pairs(loopkills) do
  934. if v.Parent ~= players then table.remove(toKill, i) continue end
  935. if not v.Character then continue end
  936. table.insert(toKill, v)
  937. end
  938. runCommand("kill", toKill)
  939. end))
  940.  
  941. addCommand("loopkill", function(plrs, input)
  942. for i,v in pairs(plrs) do
  943. if table.find(loopkills, v) then continue end
  944. table.insert(loopkills, v)
  945. end
  946. end)
  947.  
  948. addCommand("unloopkill", function(plrs, input)
  949. if input:lower() == "all" then loopkills = {} return end
  950. for i,v in pairs(loopkills) do
  951. if not table.find(plrs, v) then continue end
  952. table.remove(loopkills, i)
  953. end
  954. end)
  955.  
  956. addCommand("naked", function(plrs)
  957. for i,v in pairs(plrs) do
  958. local char = v.Character
  959. if char == nil then continue end
  960. local pants = char:FindFirstChild("Pants")
  961. local shirt = char:FindFirstChild("Shirt")
  962. local tshirt = char:FindFirstChild("Shirt Graphic")
  963.  
  964. if pants then delete(pants) end
  965. if shirt then delete(shirt) end
  966. if tshirt then delete(tshirt) end
  967.  
  968. for _,instance in pairs(char:GetDescendants()) do
  969. if not instance:IsA("WrapLayer") then continue end
  970. delete(instance.Parent.Parent)
  971. end
  972. end
  973. end)
  974.  
  975. addCommand("bald", function(plrs)
  976. for i,v in pairs(plrs) do
  977. local char = v.Character
  978. if char == nil then continue end
  979. for _,instance in pairs(char:GetChildren()) do
  980. if not instance:IsA("Accessory") then continue end
  981. delete(instance)
  982. end
  983. end
  984. end)
  985.  
  986.  
  987. addCommand("nolimbs", function(plrs)
  988. for i,v in pairs(plrs) do
  989. local char = v.Character
  990. if char == nil then continue end
  991. for _,instance in pairs(char:GetChildren()) do
  992. for i,v in pairs(limbs) do
  993. if not instance.Name:lower():find(v) then continue end
  994. delete(instance)
  995. end
  996. end
  997. end
  998. end)
  999.  
  1000. addCommand("noface", function(plrs)
  1001. for i,v in pairs(plrs) do
  1002. local char = v.Character
  1003. if char == nil then continue end
  1004. local head = char:FindFirstChild("Head")
  1005. if head == nil then continue end
  1006. for _,instance in pairs(head:GetChildren()) do
  1007. if not instance:IsA("Decal") then continue end
  1008. delete(instance)
  1009. end
  1010. end
  1011. end)
  1012.  
  1013. addCommand("korblox", function(plrs)
  1014. for i,v in pairs(plrs) do
  1015. local char = v.Character
  1016. if not char then continue end
  1017. local r6Leg = char:FindFirstChild("Right Leg")
  1018. if r6Leg then
  1019. delete(r6Leg)
  1020. continue
  1021. end
  1022. local r15Leg = char:FindFirstChild("RightUpperLeg")
  1023. if not r15Leg then continue end
  1024. delete(r15Leg)
  1025. end
  1026. end)
  1027.  
  1028. addCommand("morph", function(plrs)
  1029. for i,v in pairs(plrs) do
  1030. local char = v.Character
  1031. if not char then continue end
  1032. local hum = char:FindFirstChildOfClass("Humanoid")
  1033. if not hum then continue end
  1034. if hum.RigType ~= Enum.HumanoidRigType.R15 then continue end
  1035. local function rm()
  1036. for i,v in pairs(char:GetDescendants()) do
  1037. if not v:IsA("BasePart") then continue end
  1038. if v.Name == "Handle" or v.Name == "Head" then
  1039. if not char.Head:FindFirstChild("OriginalSize") then continue end
  1040. delete(char.Head.OriginalSize)
  1041. continue
  1042. end
  1043. for i,cav in pairs(v:GetDescendants()) do
  1044. if not cav:IsA("Attachment") then continue end
  1045. local op = cav:FindFirstChild("OriginalPosition")
  1046. if not op then continue end
  1047. delete(op)
  1048. end
  1049. local os = v:FindFirstChild("OriginalSize")
  1050. if os then
  1051. delete(os)
  1052. end
  1053. local apst = v:FindFirstChild("AvatarPartScaleType")
  1054. if not apst then continue end
  1055. delete(apst)
  1056. end
  1057. end
  1058.  
  1059. for i,v in pairs(atts) do
  1060. rm()
  1061. task.wait(.1)
  1062. local scale = hum:FindFirstChild(v)
  1063. if not scale then continue end
  1064. delete(scale)
  1065. task.wait(.1)
  1066. end
  1067. end
  1068. end)
  1069.  
  1070. addCommand("ragdoll", function(plrs)
  1071. for i,v in pairs(plrs) do
  1072. local char = v.Character
  1073. if char == nil then continue end
  1074. local hrp = char:FindFirstChild("HumanoidRootPart")
  1075. if hrp == nil then continue end
  1076. delete(hrp)
  1077. end
  1078. end)
  1079.  
  1080. addCommand("sink", function(plrs)
  1081. for i,v in pairs(plrs) do
  1082. local char = v.Character
  1083. if char == nil then continue end
  1084. local humanoid = char:FindFirstChildOfClass("Humanoid")
  1085. if humanoid == nil then continue end
  1086. delete(humanoid)
  1087. end
  1088. end)
  1089.  
  1090. addCommand("freeze", function(plrs)
  1091. runCommand("ragdoll", plrs)
  1092. runCommand("noanims", plrs)
  1093. end)
  1094.  
  1095. addCommand("noanims", function(plrs)
  1096. for i,v in pairs(plrs) do
  1097. local char = v.Character
  1098. if char == nil then continue end
  1099. local humanoid = char:FindFirstChildOfClass("Humanoid")
  1100. if humanoid == nil then continue end
  1101. local animator = humanoid:FindFirstChildOfClass("Animator")
  1102. if animator == nil then continue end
  1103. delete(animator)
  1104. local animate = char:FindFirstChild("Animate")
  1105. if animate == nil then continue end
  1106. delete(animate)
  1107. end
  1108. end)
  1109.  
  1110. addCommand("invis", function(plrs)
  1111. local ignoreList = {"UpperTorso", "Head", "HumanoidRootPart", "Humanoid"}
  1112. for i,v in pairs(plrs) do
  1113. local char = v.Character
  1114. if char == nil then continue end
  1115. local humanoid = char:FindFirstChildOfClass("Humanoid")
  1116. if humanoid == nil then continue end
  1117. if humanoid.RigType ~= Enum.HumanoidRigType.R15 then continue end
  1118. for _,instance in pairs(char:GetChildren()) do
  1119. if table.find(ignoreList, instance.Name) then continue end
  1120. delete(instance)
  1121. end
  1122. if humanoid.RootPart then humanoid.RootPart.Transparency = 0.6 end
  1123. end
  1124. end)
  1125.  
  1126. addCommand("legwalk", function(plrs)
  1127. local deleteList = {"LeftUpperArm","RightUpperArm"}
  1128. for i,v in pairs(plrs) do
  1129. local char = v.Character
  1130. if char == nil then continue end
  1131. local humanoid = char:FindFirstChildOfClass("Humanoid")
  1132. if humanoid == nil then continue end
  1133. if humanoid.RigType ~= Enum.HumanoidRigType.R15 then continue end
  1134. local upperTorso = char:FindFirstChild("UpperTorso")
  1135. if upperTorso == nil then continue end
  1136. local waist = upperTorso:FindFirstChild("Waist")
  1137. if waist == nil then continue end
  1138. for _,instance in pairs(char:GetChildren()) do
  1139. if not (table.find(deleteList, instance.Name) or instance:IsA("Accessory")) then continue end
  1140. delete(instance)
  1141. end
  1142. delete(waist)
  1143. end
  1144. end)
  1145.  
  1146. addCommand("fakechat", function(plrs)
  1147. if not character then return end
  1148. local humanoid = character:FindFirstChildOfClass("Humanoid")
  1149. if humanoid.RigType ~= Enum.HumanoidRigType.R15 then return end
  1150. local hrp = character:FindFirstChild("HumanoidRootPart")
  1151. if not (humanoid and hrp) then return end
  1152. local target
  1153. for i,v in pairs(plrs) do
  1154. if v == localPlayer then continue end
  1155. if not v.Character then continue end
  1156. if not v.Character:FindFirstChild("HumanoidRootPart") then continue end
  1157. target = v
  1158. break
  1159. end
  1160. if not target then return end
  1161.  
  1162. runCommand("unbang")
  1163. runCommand("view", {target})
  1164. hrp.CFrame = CFrame.new(0,2^63-3,0)
  1165. task.wait(0.1)
  1166. runCommand("invis", {localPlayer})
  1167.  
  1168. local followLoop = rs.Heartbeat:Connect(function()
  1169. if target.Character == nil then return end
  1170. local thrp = target.Character:FindFirstChild("HumanoidRootPart")
  1171. local thum = target.Character:FindFirstChild("Humanoid")
  1172. if thrp == nil then return end
  1173. local thrpVel = thrp.Velocity
  1174. local thrpPos = thrp.Position
  1175. local predictedCF = CFrame.new(thrpPos.X + thrpVel.X/4,thrpPos.Y,thrpPos.Z + thrpVel.Z/4)
  1176. hrp.AssemblyAngularVelocity = Vector3.zero
  1177. hrp.AssemblyLinearVelocity = Vector3.zero
  1178. hrp.CFrame = (predictedCF*CFrame.new(0,3,-1.5)) * CFrame.Angles(math.rad(90),0,0)
  1179. end)
  1180.  
  1181. table.insert(connections,followLoop)
  1182. table.insert(connections,humanoid.Died:Connect(function()
  1183. if followLoop then followLoop:Disconnect() end
  1184. runCommand("unview")
  1185. end))
  1186.  
  1187.  
  1188. end)
  1189.  
  1190. addCommand("notools", function(plrs)
  1191. for i,v in pairs(plrs) do
  1192. for _, instance in pairs(v:FindFirstChildOfClass("Backpack"):GetChildren()) do
  1193. if not instance:IsA("BackpackItem") then continue end
  1194. delete(instance)
  1195. end
  1196. local char = v.Character
  1197. if char == nil then continue end
  1198. for _, instance in pairs(char:GetChildren()) do
  1199. if not instance:IsA("BackpackItem") then continue end
  1200. delete(instance)
  1201. end
  1202. end
  1203. end)
  1204.  
  1205. addCommand("stealtools", function(plrs)
  1206. if not character then return end
  1207. local lpHumanoid = character:FindFirstChildOfClass("Humanoid")
  1208. if not lpHumanoid then return end
  1209. for i,plr in pairs(plrs) do
  1210. local char = plr.Character
  1211. if char == nil then continue end
  1212. local head = char:FindFirstChild("Head")
  1213. if head == nil then continue end
  1214. delete(head)
  1215. task.wait(0.05)
  1216. local humanoid = char:FindFirstChildOfClass("Humanoid")
  1217. if humanoid then
  1218. delete(humanoid)
  1219. end
  1220. repeat task.wait() until char:FindFirstChildOfClass("Humanoid") == nil
  1221. task.wait(.05)
  1222. for i,v in pairs(char:GetChildren()) do
  1223. if not (v:IsA("BackpackItem") and v:FindFirstChild("Handle")) then continue end
  1224. debugPrint(v.Name)
  1225. v.Handle.CFrame = character.Humanoid.RootPart.CFrame
  1226. lpHumanoid:EquipTool(v)
  1227. end
  1228. end
  1229. end)
  1230.  
  1231. addCommand("punish", function(plrs)
  1232. for i,v in pairs(plrs) do
  1233. local char = v.Character
  1234. if char == nil then continue end
  1235. delete(char)
  1236. end
  1237. end)
  1238.  
  1239. addCommand("bang", function(plrs) -- credit to the Infinite Yield team
  1240. if not character then return end
  1241. local humanoid = character:FindFirstChildOfClass("Humanoid")
  1242. if not humanoid then return end
  1243. runCommand("unbang")
  1244. local target
  1245. for i,v in pairs(plrs) do
  1246. if not v.Character then continue end
  1247. if not v.Character:FindFirstChildOfClass("Humanoid") then continue end
  1248. if not v.Character.Humanoid.RootPart then continue end
  1249. target = v
  1250. break
  1251. end
  1252. bangAnim = Instance.new("Animation")
  1253. bangAnim.AnimationId = (humanoid.RigType ~= Enum.HumanoidRigType.R15) and "rbxassetid://148840371" or "rbxassetid://5918726674"
  1254. bang = humanoid:LoadAnimation(bangAnim)
  1255. bang:Play(0.1, 1, 1)
  1256. bang:AdjustSpeed(3)
  1257. bangLoop = nil
  1258. bangDied = nil;bangDied = humanoid.Died:Connect(function()
  1259. bang:Stop()
  1260. bangAnim:Destroy()
  1261. bangDied:Disconnect()
  1262. if bangLoop then bangLoop:Disconnect() end
  1263. end)
  1264. if target == localPlayer then return end
  1265. bangLoop = rs.Stepped:Connect(function()
  1266. if target.Character == nil then return end
  1267. local hum = target.Character:FindFirstChildOfClass("Humanoid")
  1268. if hum == nil then return end
  1269. local root = hum.RootPart
  1270. if root == nil then return end
  1271. character:PivotTo(root.CFrame * CFrame.new(0, 0.75, 1.1))
  1272. end)
  1273. table.insert(connections,bangLoop)
  1274. end)
  1275.  
  1276. addCommand("unbang", function()
  1277. if bangDied then bangDied:Disconnect() end
  1278. if bang then bang:Stop() end
  1279. if bangAnim then bangAnim:Destroy() end
  1280. if bangLoop then bangLoop:Disconnect() end
  1281. end)
  1282.  
  1283. addCommand("clearstarter", function()
  1284. for i,v in pairs(game:GetService("StarterGui"):GetChildren()) do
  1285. delete(v)
  1286. end
  1287. for i,v in pairs(game:GetService("StarterPack"):GetChildren()) do
  1288. delete(v)
  1289. end
  1290. for i,v in pairs(game:GetService("StarterPlayer"):FindFirstChildOfClass("StarterPlayerScripts"):GetChildren()) do
  1291. delete(v)
  1292. end
  1293. for i,v in pairs(game:GetService("StarterPlayer"):FindFirstChildOfClass("StarterCharacterScripts"):GetChildren()) do
  1294. delete(v)
  1295. end
  1296.  
  1297. end)
  1298.  
  1299. addCommand("nochat",function()
  1300. local chatEvents = rStorage:FindFirstChild("DefaultChatSystemChatEvents")
  1301. if chatEvents then return delete(chatEvents) end
  1302. for i,v in pairs(game:GetService("TextChatService"):GetChildren()) do
  1303. delete(v)
  1304. end
  1305. end)
  1306.  
  1307. addCommand("nostats", function(plrs)
  1308. for i,v in pairs(plrs) do
  1309. local stats = v:WaitForChild("leaderstats")
  1310. if stats == nil then return end
  1311. delete(stats)
  1312. end
  1313. end)
  1314.  
  1315. addCommand("deletename", function(plrs, input)
  1316. for i,v in pairs(game:GetDescendants()) do
  1317. local match = v.Name:lower():gsub(" ","")
  1318. if not match:match(input:lower()) then continue end
  1319. delete(v)
  1320. end
  1321. end)
  1322.  
  1323. addCommand("clearws", function()
  1324. for i,v in pairs(workspace:GetChildren()) do
  1325. if players:GetPlayerFromCharacter(v) then continue end
  1326. delete(v)
  1327. end
  1328. end)
  1329.  
  1330. addCommand("lockws", function()
  1331. for i,v in pairs(workspace:GetChildren()) do
  1332. if players:FindFirstChild(v.Name) then continue end
  1333. local con = v.ChildAdded:Connect(function(instance)
  1334. if players:FindFirstChild(instance.Parent.Name) then return end
  1335. task.wait()
  1336. delete(instance)
  1337. end)
  1338. table.insert(connections,con)
  1339. table.insert(wslocks,con)
  1340. end
  1341. local con = workspace.ChildAdded:Connect(function(instance)
  1342. if players:FindFirstChild(instance.Name) then return end
  1343. task.wait()
  1344. delete(instance)
  1345. end)
  1346. table.insert(connections,con)
  1347. table.insert(wslocks,con)
  1348. end)
  1349.  
  1350. addCommand("unlockws", function()
  1351. for i,v in pairs(wslocks) do
  1352. v:Disconnect()
  1353. end
  1354. end)
  1355.  
  1356. addCommand("notextures", function()
  1357. for i,v in pairs(workspace:GetChildren()) do
  1358. if players:GetPlayerFromCharacter(v) then continue end
  1359. for _,instance in pairs({v, table.unpack(v:GetDescendants())}) do
  1360. if not (instance:IsA("Decal") or instance:IsA("Texture")) then continue end
  1361. delete(instance)
  1362. end
  1363. end
  1364. end)
  1365.  
  1366. addCommand("baseplate", function()
  1367. if not character then return end
  1368. local hum = character:FindFirstChildOfClass("Humanoid")
  1369. if not hum then return end
  1370. local hrp = hum.RootPart
  1371. if not hrp then return end
  1372. local params = RaycastParams.new()
  1373. params.FilterDescendantsInstances = {character}
  1374. params.FilterType = Enum.RaycastFilterType.Exclude
  1375. params.IgnoreWater = true
  1376. local rc = workspace:Raycast(hrp.Position, hrp.CFrame.UpVector*-10, params)
  1377.  
  1378. for i,v in pairs(workspace:GetChildren()) do
  1379. if players:GetPlayerFromCharacter(v) then continue end
  1380. for _,instance in pairs({v, table.unpack(v:GetDescendants())}) do
  1381. if not (instance:IsA("BasePart")) then continue end
  1382. if (rc and rc.Instance == instance) or instance.Size.Magnitude >= 1000 or instance.Name:lower():gsub(" ",""):find("baseplate") then continue end
  1383. delete(instance)
  1384. end
  1385. end
  1386. end)
  1387.  
  1388. addCommand("nospawns", function()
  1389. for i,v in pairs(workspace:GetDescendants()) do
  1390. if not v:IsA("SpawnLocation") then continue end
  1391. delete(v)
  1392. end
  1393. end)
  1394.  
  1395. addCommand("unweldws", function()
  1396. for i,v in pairs(workspace:GetChildren()) do
  1397. if players:GetPlayerFromCharacter(v) then continue end
  1398. for _, instance in pairs(v:GetDescendants()) do
  1399. if not (instance:IsA("Weld") or instance:IsA("Attachment")) then continue end
  1400. delete(instance)
  1401. end
  1402. if not (v:IsA("Weld") or v:IsA("Attachment")) then continue end
  1403. delete(v)
  1404. end
  1405. end)
  1406.  
  1407. addCommand("noseats", function()
  1408. for i,v in pairs(workspace:GetChildren()) do
  1409. if players:GetPlayerFromCharacter(v) then continue end
  1410. for _, instance in pairs(v:GetDescendants()) do
  1411. if not (instance:IsA("VehicleSeat") or instance:IsA("Seat")) then continue end
  1412. delete(instance)
  1413. end
  1414. if not (v:IsA("VehicleSeat") or v:IsA("Seat")) then continue end
  1415. delete(v)
  1416. end
  1417. end)
  1418.  
  1419. addCommand("nosounds",function()
  1420. for i,v in pairs(game:GetDescendants()) do
  1421. if not v:IsA("Sound") then continue end
  1422. delete(v)
  1423. end
  1424. end)
  1425.  
  1426. addCommand("clearlighting",function()
  1427. for i,v in pairs(game:GetService("Lighting"):GetChildren()) do
  1428. delete(v)
  1429. end
  1430. end)
  1431.  
  1432. addCommand("shutdown", function()
  1433. for i,v in pairs(players:GetPlayers()) do
  1434. if i == 1 then continue end
  1435. delete(v)
  1436. end
  1437. delete(localPlayer)
  1438. end)
  1439.  
  1440. addCommand("nuke",function()
  1441. for i,v in pairs(workspace:GetChildren()) do
  1442. delete(v)
  1443. end
  1444.  
  1445. for i,v in pairs(players:GetPlayers()) do
  1446. if i == 1 then continue end
  1447. delete(v)
  1448. end
  1449. end)
  1450.  
  1451. addCommand("slock",function()
  1452. slockEnabled = true
  1453. end)
  1454.  
  1455. addCommand("unslock", function()
  1456. slockEnabled = false
  1457. end)
  1458.  
  1459. addCommand("sabotage", function()
  1460. delete(genv.foundRemote)
  1461. end)
  1462.  
  1463. addCommand("close", abort)
  1464.  
  1465. --[[Add scrolling command list]]--
  1466. local scrollText = "QuirkyCMD made by smokedoutlocedout | type cmds for a list of commands | "
  1467. if not isMobile then
  1468. scrollText ..= "press ; to open/close command bar | "
  1469. end
  1470. local charCount = 12
  1471. local spaces = 0
  1472. local scrollSpeed = 0.12 -- sec/char
  1473. local sample = scrollText..string.rep(" ", spaces)
  1474. local displayString = sample:sub(1, charCount)
  1475. local strlen = string.len(sample)
  1476.  
  1477. local counter = 1
  1478. local timer = 0
  1479.  
  1480. for i,v in pairs(scrollText:split("")) do
  1481. if v ~= " " then continue end
  1482. spaces += 1
  1483. end
  1484.  
  1485. table.insert(connections, rs.Heartbeat:Connect(function(dt)
  1486. timer += dt
  1487. if timer > scrollSpeed then
  1488. while timer > scrollSpeed do
  1489. timer -= scrollSpeed
  1490. counter = (counter + 1)%strlen
  1491. end
  1492.  
  1493. if counter + charCount <= strlen then
  1494. displayString = sample:sub(counter, counter + charCount)
  1495. else
  1496. displayString = sample:sub(counter, strlen)..sample:sub(1, counter + charCount - strlen)
  1497. end
  1498. end
  1499.  
  1500. box.PlaceholderText = (("%s"):format(displayString))
  1501. end))
  1502.  
  1503. --[[Sort commands alphabetically]]--
  1504. table.sort(commands, function(a,b)
  1505. return a.name < b.name
  1506. end)
  1507.  
  1508. --[[Add command list logic]]--
  1509. for i,v in pairs(commands) do
  1510. local clone = cmdTemplate:Clone()
  1511. clone.Text = v.name
  1512. clone.Visible = true
  1513. clone.Parent = cmdsList
  1514. end
  1515.  
  1516. table.insert(connections, closeButton.MouseButton1Click:Connect(function()
  1517. cmdsFrame.Visible = false
  1518. end))
  1519.  
  1520. --[[Add drag functionality]]--
  1521. local dragging
  1522. local dragInput
  1523. local dragStart
  1524. local startPos
  1525.  
  1526. local lastMousePos
  1527. local lastGoalPos
  1528. local DRAG_SPEED = 20
  1529.  
  1530. local function update(dt)
  1531. if not (startPos) then return end;
  1532. if not (dragging) and (lastGoalPos) then
  1533. cmdsFrame.Position = UDim2.new(startPos.X.Scale, lerp(cmdsFrame.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, lerp(cmdsFrame.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
  1534. return
  1535. end;
  1536.  
  1537. local delta = (lastMousePos - uis:GetMouseLocation())
  1538. local xGoal = (startPos.X.Offset - delta.X);
  1539. local yGoal = (startPos.Y.Offset - delta.Y);
  1540. lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
  1541. cmdsFrame.Position = UDim2.new(startPos.X.Scale, lerp(cmdsFrame.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, lerp(cmdsFrame.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
  1542. end;
  1543.  
  1544. cmdsFrame.InputBegan:Connect(function(input)
  1545. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  1546. dragging = true
  1547. dragStart = input.Position
  1548. startPos = cmdsFrame.Position
  1549. lastMousePos = uis:GetMouseLocation()
  1550.  
  1551. input.Changed:Connect(function()
  1552. if input.UserInputState == Enum.UserInputState.End then
  1553. dragging = false
  1554. end
  1555. end)
  1556. end
  1557. end)
  1558.  
  1559. cmdsFrame.InputChanged:Connect(function(input)
  1560. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  1561. dragInput = input
  1562. end
  1563. end)
  1564.  
  1565. table.insert(connections,rs.Heartbeat:Connect(update))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement