DrawingJhon

Admin Commands Script

Jun 28th, 2020 (edited)
2,626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 81.69 KB | None | 0 0
  1. --[==[
  2. > Created by DrawingJhon
  3. > My Discord: DrawingJhon#8894
  4. > Compatibilty in Void Script Builder Place 1/Place 2
  5.  
  6. Credits:
  7. - NS and NLS converted to module by FernandoPlayerYT
  8. - Loadstring Module by UnlimitedKeeping
  9. - Admin inspired by Adonis Admin and Infinite Yield
  10.  
  11. ...This script was created without Roblox Studio
  12. ]==]
  13.  
  14. wait()
  15. local nlsReady = false
  16. do
  17.     if not owner then
  18.         local Plrs = game:GetService("Players")
  19.         if script.Parent:IsA("Player") then
  20.             owner = script.Parent
  21.         elseif script.Parent.Parent:IsA("Player") then
  22.             owner = script.Parent.Parent
  23.         elseif Plrs:GetPlayerFromCharacter(script.Parent) then
  24.             owner = Plrs:GetPlayerFromCharacter(script.Parent)
  25.         else
  26.             error("Not owner found")
  27.         end
  28.     end
  29.     if not NLS then
  30.         NLS = require(5576043691).NLS
  31.     end
  32.     if game:GetService("StarterGui").ResetPlayerGuiOnSpawn == true then
  33.         game:GetService("StarterGui").ResetPlayerGuiOnSpawn = false
  34.     end
  35.     local folder = Instance.new("Folder", owner:findFirstChildWhichIsA("PlayerGui"))
  36.     folder.Name = tostring(tick())
  37.     script.Parent = folder
  38.  
  39.     local AdRemote = Instance.new("RemoteFunction")
  40.     AdRemote.Name = "WaitReady"
  41.     AdRemote.OnServerInvoke = function(who, md)
  42.         if who ~= owner then return end
  43.         nlsReady = true
  44.         AdRemote:Destroy()
  45.     end
  46.     AdRemote.Parent = script
  47. end
  48.  
  49. NLS(([==[coroutine.wrap(function()
  50. local adRemote = script.Parent:WaitForChild("WaitReady")
  51. adRemote:InvokeServer()
  52. end)()
  53. local screen = Instance.new("ScreenGui", script)
  54. screen.Name = "AdminBar"
  55. local frame = Instance.new("Frame", screen)
  56. frame.Name = "Main"
  57. frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  58. frame.BackgroundTransparency = 0.7
  59. frame.BorderSizePixel = 0
  60. frame.Position = UDim2.new(0, 0, -1, 0)
  61. frame.Size = UDim2.new(1, 0, 0, 40)
  62. local topbar = frame:Clone()
  63. topbar.AnchorPoint = Vector2.new(0, 1)
  64. topbar.Position = UDim2.new()
  65. topbar.Name = "TopBar"
  66. topbar.Parent = frame
  67. local text = Instance.new("Frame", frame)
  68. text.Name = "CommandBar"
  69. text.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  70. text.BackgroundTransparency = 0.5
  71. text.Position = UDim2.new(0, 0, 0, 4)
  72. text.Size = UDim2.new(1, 0, 0, 32)
  73. local input = Instance.new("TextBox", text)
  74. input.BackgroundTransparency = 1
  75. input.Name = "TextBox"
  76. input.Position = UDim2.new(0, 5, 0, 0)
  77. input.Size = UDim2.new(1, 0, 1, 0)
  78. input.FontSize = "Size24"
  79. input.Font = "SourceSansSemibold"
  80. input.TextColor3 = Color3.fromRGB(255, 255, 255)
  81. input.TextStrokeColor3 = Color3.fromRGB(55, 55, 55)
  82. input.TextStrokeTransparency = 0.5
  83. input.TextSize = 22
  84. input.TextWrapped = true
  85. input.TextXAlignment = "Left"
  86. input.Text = ""
  87.  
  88. local bar = Instance.new("TextButton", screen)
  89. bar.Name = "OpenBar"
  90. bar.AnchorPoint = Vector2.new(1, 1)
  91. bar.Size = UDim2.new(0, 250, 0, 20)
  92. bar.Position = UDim2.new(1, 0, 1, 0)
  93. bar.BackgroundColor3 = Color3.fromRGB(36, 36, 37)
  94. bar.BorderSizePixel = 0
  95. bar.Transparency = 0.3
  96. bar.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. bar.TextScaled = true
  98. bar.TextWrapped = true
  99. bar.Font = "SourceSans"
  100. bar.FontSize = "Size18"
  101. bar.Text = "Open command bar"
  102. bar.Visible = false
  103.  
  104. local main = frame
  105. local remotes = script.Parent:WaitForChild("Remotes")
  106. local remote = remotes:WaitForChild("RemoteCommand")
  107. local Players = game:GetService("Players")
  108. local plr = Players.LocalPlayer
  109. local mouse = plr:GetMouse()
  110. local StarterGui = game:GetService("StarterGui")
  111. local UIS = game:GetService("UserInputService")
  112.  
  113. function isMobile()
  114.     return true
  115. end
  116. if isMobile() then bar.Visible = true end
  117.  
  118. spawn(function()
  119.     while true do
  120.         if remote.Parent == nil then
  121.             remote = remotes:WaitForChild("RemoteCommand")
  122.         end
  123.         wait()
  124.     end
  125. end)
  126.  
  127. local CanOpen = true
  128. function openBar()
  129.     CanOpen = false
  130.     local ChatEnabled, PlrListEnabled
  131.     bar.Visible = false
  132.     input.Text = ""
  133.     frame:TweenPosition(UDim2.new(), "Out", "Linear", 0, true)
  134.     input:CaptureFocus()
  135.     ChatEnabled = true
  136.     PlrListEnabled = true
  137.     local ok = false
  138.     coroutine.wrap(function()
  139.         while input:IsFocused() do
  140.             StarterGui:SetCoreGuiEnabled("Chat", false)
  141.             StarterGui:SetCoreGuiEnabled("PlayerList", false)
  142.             game:GetService("RunService").RenderStepped:Wait()
  143.         end
  144.         ok = true
  145.     end)()
  146.     local enterPressed, que = input.FocusLost:Wait()
  147.     if enterPressed and que.KeyCode == Enum.KeyCode.Return then
  148.         remote:FireServer("Command", input.Text)
  149.     end
  150.     main:TweenPosition(UDim2.new(0, 0, -200, 0), "In", "Sine", 0.3, true)
  151.     if isMobile() then bar.Visible = true end
  152.     repeat game:GetService("RunService").RenderStepped:Wait() until ok
  153.     StarterGui:SetCoreGuiEnabled("Chat", ChatEnabled)
  154.     StarterGui:SetCoreGuiEnabled("PlayerList", PlrListEnabled)
  155.     CanOpen = true
  156. end
  157. mouse.KeyDown:Connect(function(key)
  158.     if key == ";" and CanOpen then
  159.         openBar()
  160.     end
  161. end)
  162. bar.MouseButton1Click:Connect(openBar)
  163.  
  164. local cmdRemote = remotes:WaitForChild("BarRemote")
  165. cmdRemote.OnClientEvent:Connect(function(cmd, data)
  166.     if cmd == "view" then
  167.         workspace.CurrentCamera.CameraSubject = data
  168.     end
  169. end)
  170. ]==]):gsub("\n", " "), script)
  171.  
  172. --====================================================================================
  173.  
  174. adminVersion = "Beta"
  175. local prefix = ";"
  176. local separate = ' '
  177. local plrSeparate = ','
  178. local Moderators = {owner.Name}
  179.  
  180. local Players = game:GetService("Players")
  181. local InsertService = game:GetService("InsertService")
  182. local Chat = game:GetService("Chat")
  183. local Light = game:GetService("Lighting")
  184. local TweenService = game:GetService("TweenService")
  185. local CreatorName = Players:GetNameFromUserIdAsync(game.CreatorId)
  186. local Creator = Players:findFirstChild(CreatorName)
  187. if Creator and Creator ~= owner then
  188.     table.insert(Moderators, Creator.Name)
  189. end
  190.  
  191. local tab = {
  192.     Instances = {};
  193.     isBunny = {};
  194.     loopkill = {};
  195.     jailed = {};
  196.     SavedMap = {};
  197.     hintFrames = {};
  198.     numH = {};
  199.     banlist = {};
  200.     bguis = {};
  201.     tracks = {};
  202. }
  203. local party = false
  204. local cycle = false
  205. local hidden = false
  206. local bruh = false
  207. local slock = false
  208.  
  209. do
  210.     local hereString = game:GetService("HttpService"):GetAsync("https://pastebin.com/raw/AyQ8NANz")
  211.     local DataStore = game:GetService("DataStoreService")
  212.     local AdminData
  213.     local success, err = pcall(function()
  214.         AdminData = DataStore:GetDataStore("SavedAdminOPV2")
  215.     end)
  216.  
  217.     if success then
  218.         local str
  219.         pcall(function()
  220.             str = AdminData:GetAsync(owner.UserId.."_stringUpdate")
  221.         end)
  222.    
  223.         if str then
  224.             if str == hereString then
  225.             else
  226.                 warn("The script admin has been updated!")
  227.                 AdminData:SetAsync(owner.UserId.."_stringUpdate", hereString)
  228.             end
  229.         end
  230.     end
  231.     if _G.MapSavedAAA then
  232.         if typeof(_G.MapSavedAAA) == "table" then
  233.             for i, v in pairs(_G.MapSavedAAA) do
  234.                 table.insert(tab.SavedMap, v)
  235.             end
  236.         end
  237.     end
  238. end
  239.  
  240. local musicList = ({
  241.     ["tacos"] = 152745539,
  242.     ["liketrain"] = 131072261,
  243.     ["caillou"] = 181768110,
  244.     ["coffindance"] = 5054555073,
  245.     ["heybrother"] = 5077782610,
  246.     ["minecraftorchestral"] = 148900687,
  247.     ["rosesremix"] = 3977947504,
  248.     ["undertaleremix"] = 1072410152,
  249.     ["townroad"] = 3180460921,
  250.     ["countingstar"] = 1090720770,
  251.     ["dancemonkey"] = 4156416921,
  252.     ["inmymind"] = 2241489803
  253. })
  254.  
  255. local commandList = {"re", "ptool", "notool", "admin", "unadmin", "gravity", "insert", "kill", "sit", "jump", "stun", "unstun", "boom", "music", "volume", "pitch", "stopmusic", "removehats", "god", "prefix", "rigtype", "to", "teleport", "bring", "resize", "gear", "speed", "jumppower", "char", "unchar", "charaudio", "bunnyhop", "unbunnyhop", "lock", "unlock", "time", "cycle", "uncycle", "fix", "disco", "undisco", "fog", "nofog", "fogcolor", "spin", "unspin", "freefall", "hint", "bruh", "fling", "damage", "health", "r6", "r15", "carry", "view", "unview", "savemap", "restoremap",  "clear", "blur", "unblur", "invisible", "visible", "jail", "unjail", "cmds"}
  256.  
  257. local Loadstring
  258. print("Loading source...")
  259. pcall(function()
  260.     Loadstring = require(3216779502)
  261. end)
  262. repeat game:GetService("RunService").Heartbeat:Wait() until nlsReady
  263.  
  264. print("Welcome, "..owner.Name..", your rank is owner! Prefix: ("..prefix..")")
  265.  
  266. function getPlayer(text, Owner, noContinued)
  267.     local PlayerList = {}
  268.     local msg
  269.     local success, err = pcall(function()
  270.         msg = text:lower()
  271.     end)
  272.     if text == "" or text == " " or text == nil then
  273.         if noContinued == true then
  274.             table.insert(PlayerList, Owner)
  275.         end
  276.         return PlayerList
  277.     end
  278.     if success then
  279.         local sep = msg:split(plrSeparate)
  280.         for i = 1,#sep do
  281.             local lmsg = sep[i]
  282.             local function getplrs(msg)
  283.                 local listplrs = {}
  284.                 if msg == "me" then
  285.                     table.insert(listplrs, Owner)
  286.                 elseif msg == "others" then
  287.                     for i, p in pairs(Players:GetPlayers()) do
  288.                         if p.Name ~= Owner.Name then
  289.                             table.insert(listplrs, p)
  290.                         end
  291.                     end
  292.                 elseif msg == "random" then
  293.                     local numRandom = math.random(1,#Players:GetPlayers())
  294.                     for i, v in pairs(Players:GetPlayers()) do
  295.                         if v == Players:GetPlayers()[numRandom] then
  296.                             table.insert(listplrs, v)
  297.                         end
  298.                     end
  299.                 elseif msg == "friends" then
  300.                     for i, v in pairs(Players:GetPlayers()) do
  301.                         if v:IsFriendsWith(Owner.UserId) then
  302.                             table.insert(listplrs, v)
  303.                         end
  304.                     end
  305.                 elseif msg == "all" then
  306.                     for i, v in pairs(Players:GetPlayers()) do
  307.                         table.insert(listplrs, v)
  308.                     end
  309.                 else
  310.                     for i, v in pairs(Players:GetPlayers()) do
  311.                         if v.Name:lower():match('^'..msg) and msg ~= "" then
  312.                             table.insert(listplrs, v)
  313.                         end
  314.                     end
  315.                 end
  316.                 return listplrs
  317.             end
  318.             if lmsg:match('^-') then
  319.                 local gotplrs = getplrs(lmsg:sub(2))
  320.                 for i = 1,#PlayerList do
  321.                     for z = 1,#gotplrs do
  322.                         if PlayerList[i] == gotplrs[z] then
  323.                             table.remove(PlayerList, i)
  324.                         end
  325.                     end
  326.                 end
  327.             else
  328.                 local gotplrs = getplrs(lmsg)
  329.                 for i = 1,#gotplrs do
  330.                     table.insert(PlayerList, gotplrs[i])
  331.                 end
  332.             end
  333.         end
  334.         return PlayerList
  335.     end
  336.     return {}
  337. end
  338.  
  339. function setPlrFunc(str, speaker, noContinued, func)
  340.     local players = getPlayer(str, speaker, noContinued)
  341.     for i = 1,#players do
  342.         local plr = players[i]
  343.         coroutine.wrap(func)(plr)
  344.     end
  345.     return players
  346. end
  347.  
  348. function spawn(func)
  349.     coroutine.resume(coroutine.create(func))
  350. end
  351.  
  352. function getRootPart(char)
  353.     local rootPart
  354.     if char:findFirstChild("HumanoidRootPart") then
  355.         rootPart = char:findFirstChild("HumanoidRootPart")
  356.     elseif char:findFirstChildOfClass("Humanoid") then
  357.         local hum = char:findFirstChildOfClass("Humanoid")
  358.         if hum.Torso then
  359.             rootPart = hum.Torso
  360.         end
  361.     elseif char:findFirstChild("Torso") then
  362.         rootPart =  char:findFirstChild("Torso")
  363.     end
  364.     return rootPart
  365. end
  366.  
  367. local cachePlayersId = {}
  368. function getUsernameId(name)
  369.     if cachePlayersId[name] then return cachePlayersId[name] end
  370.     local player = Players:findFirstChild(name)
  371.     if player then
  372.         cachePlayersId[name] = player.UserId
  373.         return player.UserId
  374.     end
  375.     local id
  376.     local success, err = pcall(function()
  377.         id = Players:GetUserIdFromNameAsync(name)
  378.     end)
  379.     if success then
  380.         cachePlayersId[name] = id
  381.         return id
  382.     end
  383. end
  384.  
  385. function swait(n)
  386.     if tonumber(n) == nil or tonumber(n) <= 0 then
  387.         return game:GetService("RunService").Heartbeat:Wait()
  388.     else
  389.         return wait(n)
  390.     end
  391. end
  392.  
  393. function SplitSpaces(str, offset)
  394.     local abc = {}
  395.     for i, v in pairs(str:split(' ')) do
  396.         if v ~= "" then
  397.             table.insert(abc, v)
  398.         end
  399.     end
  400.     local StrJoint = ""
  401.     for i = 1, tonumber(offset or 1) do
  402.         StrJoint = StrJoint..' '
  403.     end
  404.     return table.concat(abc, StrJoint)
  405. end
  406.  
  407. function teleport(plr1, plr2)
  408.     if plr1.Character and plr2.Character then
  409.         if plr1.Character:findFirstChild("HumanoidRootPart") and plr2.Character:findFirstChild("HumanoidRootPart") then
  410.             local sHum = plr1.Character.HumanoidRootPart
  411.             local pHum = plr2.Character.HumanoidRootPart
  412.             local distance = pHum.CFrame * CFrame.new(Vector3.new(0, 0, -5))
  413.             sHum.CFrame = pHum.CFrame * CFrame.Angles(0, math.rad(180), 0)
  414.             sHum.Position = distance.p
  415.         end
  416.     end
  417. end
  418.  
  419. function addHat(player, meshId, textureId)
  420.     local function add(humanoid)
  421.         local meshName
  422.         pcall(function()
  423.             meshName = game:GetService("MarketplaceService"):GetProductInfo(meshId).Name
  424.         end)
  425.         local hat = Instance.new("Accessory")
  426.         hat.AttachmentPoint = CFrame.new(0, -0.65, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  427.         hat.Name = meshName
  428.  
  429.         local handle = Instance.new("Part")
  430.         handle.Name = "Handle"
  431.         handle.Size = Vector3.new(2, 2.6, 0.8)
  432.         handle.Parent = hat
  433.      
  434.         local faceFrontAttachment = Instance.new("Attachment")
  435.         faceFrontAttachment.Name = "HatAttachment"
  436.         faceFrontAttachment.CFrame = CFrame.new(0, -0.55, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  437.         faceFrontAttachment.Parent = handle
  438.  
  439.         local mesh = Instance.new("SpecialMesh")
  440.         mesh.Name = "Mesh"
  441.         mesh.Scale = Vector3.new(1,1,1)
  442.         mesh.MeshId = "rbxassetid://"..meshId
  443.         mesh.TextureId = "rbxassetid://"..textureId
  444.         mesh.Parent = handle
  445.    
  446.         humanoid:AddAccessory(hat)
  447.     end
  448.     if player.Character then
  449.         local hum = player.Character:findFirstChildOfClass("Humanoid")
  450.         if hum then
  451.             add(hum)
  452.         end
  453.     end
  454. end
  455. function message(plr, msg) -- The function will be changed
  456.     local function send()
  457.         local m = Instance.new("Message",workspace)
  458.         m.Text = msg
  459.         local len = string.len(msg)
  460.         wait(1.5*len)
  461.         m:Destroy()
  462.     end
  463.     if msg ~= "" then
  464.         send()
  465.     end
  466. end
  467.  
  468. function hint(plr, msg, tm)
  469.     local function send(dd, m)
  470.         local frame
  471.         local txt
  472.         if not tab.hintFrames[dd.Name] or tab.hintFrames[dd.Name].Parent == nil then
  473.             local gui = dd:findFirstChildWhichIsA("PlayerGui")
  474.             local s = Instance.new("ScreenGui", gui)
  475.             s.Name = "Hint"
  476.             frame = Instance.new("Frame", s)
  477.             tab.hintFrames[dd.Name] = frame
  478.             frame.Visible = false
  479.             frame.Name = "Main"
  480.             frame.Active = false
  481.             frame.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  482.             frame.BackgroundTransparency = 0.5
  483.             frame.BorderColor3 = Color3.fromRGB(27, 42, 53)
  484.             frame.BorderSizePixel = 0
  485.             frame.Size = UDim2.new(1, 0, 0, 28)
  486.             frame.ZIndex = 1
  487.             frame.Transparency = 1
  488.             txt = Instance.new("TextLabel", frame)
  489.             txt.Text = m
  490.             txt.Active = false
  491.             txt.TextTransparency = 1
  492.             txt.Visible = false
  493.             txt.Name = "msg"
  494.             txt.BackgroundTransparency = 1
  495.             txt.BorderSizePixel = 1
  496.             txt.Position = UDim2.new(0, 5, 0, 5)
  497.             txt.Size = UDim2.new(1, -10, 1, -10)
  498.             txt.Font = "SourceSansBold"
  499.             txt.TextColor = BrickColor.new(255, 255, 255)
  500.             txt.TextStrokeTransparency = 0.9
  501.             txt.TextScaled = false
  502.             txt.TextWrapped = true
  503.             txt.ZIndex = 1
  504.             txt.FontSize = "Size18"
  505.             txt.Visible = true
  506.         else
  507.             frame = tab.hintFrames[dd.Name]
  508.             txt = frame:GetChildren()[1]
  509.             txt.Text = m
  510.         end
  511.         repeat swait() until txt.Text == m
  512.         if not tab.numH[frame] then
  513.             tab.numH[frame] = 0
  514.         else
  515.             tab.numH[frame] = tab.numH[frame] + 1
  516.         end
  517.         local lastN = tab.numH[frame]
  518.         frame.Visible = true
  519.         if tab.numH[frame] == lastN then
  520.             spawn(function()
  521.                 TweenService:Create(frame, TweenInfo.new(0), {Transparency = 1}):Play()
  522.                 TweenService:Create(txt, TweenInfo.new(0), {TextTransparency = 1}):Play()
  523.                 swait()
  524.                 if tab.numH[frame] ~= lastN then return end
  525.                 local FTween1 = TweenService:Create(frame, TweenInfo.new(0.2), {Transparency = 0.5})
  526.                 local TTween1 = TweenService:Create(txt, TweenInfo.new(0.2), {TextTransparency = 0.1})
  527.                 FTween1:Play()
  528.                 TTween1:Play()
  529.                 wait(tm)
  530.                 if tab.numH[frame] ~= lastN then return end
  531.                 local FTween2 = TweenService:Create(frame, TweenInfo.new(0.2), {Transparency = 1})
  532.                 local TTween2 = TweenService:Create(txt, TweenInfo.new(0.2), {TextTransparency = 1})
  533.                 FTween2:Play()
  534.                 TTween2:Play()
  535.             end)
  536.         end
  537.         --[==[local div = 10
  538.         spawn(function()
  539.             for i = 1, 0.5, -((1 - 0.5) / div) do
  540.                 if tab.numH[frame] ~= lastN then break end
  541.                 frame.Transparency = i
  542.                 swait()
  543.             end
  544.             if tab.numH[frame] == lastN then
  545.                 wait(tm)
  546.             end
  547.             for i = 0.5, 1, ((1 - 0.5) / div) do
  548.                 if tab.numH[frame] ~= lastN then break end
  549.                 frame.Transparency = i
  550.                 swait()
  551.             end
  552.             if tab.numH[frame] == lastN then
  553.                 frame.Visible = false
  554.             end
  555.         end)
  556.         spawn(function()
  557.             for i = 1, 0.1, -((1 - 0.1) / div) do
  558.                 if tab.numH[frame] ~= lastN then break end
  559.                 txt.TextTransparency = i
  560.                 swait()
  561.             end
  562.             if tab.numH[frame] == lastN then
  563.                 wait(tm)
  564.             end
  565.             for i = 0.1, 1, ((1 - 0.1) / div) do
  566.                 if tab.numH[frame] ~= lastN then break end
  567.                 txt.TextTransparency = i
  568.                 swait()
  569.             end
  570.         end)]==]
  571.     end
  572.     if tostring(plr):lower() == "all" then
  573.         for i, v in pairs(Players:GetPlayers()) do
  574.             coroutine.wrap(send)(v, msg)
  575.         end
  576.     else
  577.         send(plr, msg)
  578.     end
  579. end
  580.  
  581. function reName(plr, name, unname)
  582.     if plr.Character then
  583.         if plr.Character:findFirstChild("Head") then
  584.             for i = #plr.Character:GetChildren(), 1, -1 do
  585.                 local v = plr.Character:GetChildren()[i]
  586.                 if v.ClassName == "Model" then
  587.                     if v:findFirstChildOfClass("Humanoid") and v:findFirstChild("Head") then
  588.                         if unname then
  589.                             v:Destroy()
  590.                             plr.Character:findFirstChild("Head").Transparency = 0
  591.                             local face = plr.Character:findFirstChild("face")
  592.                             if face and face:IsA("Decal") then
  593.                                 face.Transparency = 0
  594.                             end
  595.                             return
  596.                         else
  597.                             v.Name = name
  598.                             return
  599.                         end
  600.                     end
  601.                 end
  602.             end
  603.             if unname then return end
  604.             local model = Instance.new("Model", plr.Character)
  605.             model.Name = name
  606.             local head = plr.Character:findFirstChild("Head")
  607.             local face = head:findFirstChild("face")
  608.             if face and face:IsA("Decal") then
  609.                 face.Transparency = 1
  610.             else
  611.                 face = nil
  612.             end
  613.             local lastTransparency = head.Transparency
  614.             head.Transparency = 1
  615.             local hum = Instance.new("Humanoid", model)
  616.             hum.Name = "TAG"
  617.             local newHead = head:Clone()
  618.             newHead.Parent = model
  619.             newHead.Transparency = lastTransparency
  620.             if face and face:IsA("Decal") then
  621.                 local newFace = newHead:findFirstChild("face")
  622.                 if newFace then
  623.                     newFace.Transparency = 0
  624.                     local faceDB = false
  625.                     local conn
  626.                     conn = face.Changed:Connect(function(p)
  627.                         if newFace.Parent == nil then conn:Disconnect() return end
  628.                         if faceDB then
  629.                             faceDB = false
  630.                         else
  631.                             if p == "Transparency" then
  632.                                 local lastTr = face.Transparency
  633.                                 if lastTr == 1 then
  634.                                     newFace.Transparency = 1
  635.                                 else
  636.                                     faceDB = true
  637.                                     face.Transparency = 1
  638.                                     newFace.Transparency = lastTr
  639.                                 end
  640.                             else
  641.                                 pcall(function()
  642.                                     newFace[p] = face[p]
  643.                                 end)
  644.                             end
  645.                         end
  646.                     end)
  647.                 end
  648.             end
  649.             local weld = Instance.new("Weld", newHead)
  650.             weld.Part0 = head
  651.             weld.Part1 = newHead
  652.             local tr = 0
  653.             local connection
  654.             local headDB = false
  655.             local connH
  656.             connH = head.Changed:Connect(function(p)
  657.                 if newHead.Parent == nil then connH:Disconnect() return end
  658.                 if headDB then
  659.                     headDB = false
  660.                 else
  661.                     if p == "Transparency" then
  662.                         local lastTr = head.Transparency
  663.                         if lastTr == 1 then
  664.                             newHead.Transparency = 1
  665.                         else
  666.                             headDB = true
  667.                             head.Transparency = 1
  668.                             newHead.Transparency = lastTr
  669.                         end
  670.                     else
  671.                         pcall(function()
  672.                             newHead[p] = head[p]
  673.                         end)
  674.                     end
  675.                 end
  676.             end)
  677.             local realHum = plr.Character:findFirstChildOfClass("Humanoid")
  678.             if realHum ~= nil then
  679.                 realHum.Changed:Connect(function(p)
  680.                     pcall(function()
  681.                         hum[p] = realHum[p]
  682.                     end)
  683.                 end)
  684.             end
  685.         end
  686.     end
  687. end
  688.  
  689. function setTransparency(plr, value)
  690.     if plr.Character then
  691.         for _, child in pairs(plr.Character:GetChildren()) do
  692.             if child:IsA("Hat") or child.ClassName == "Accessory" then
  693.                 if child:FindFirstChild("Handle") then
  694.                     child.Handle.Transparency = value
  695.                 end
  696.             elseif child:IsA("BasePart") then
  697.                 if child.Name ~= "HumanoidRootPart" then
  698.                     child.Transparency = value
  699.                 end
  700.                 if child.Name == "Head" and child:findFirstChild("face") then
  701.                     child.face.Transparency = value
  702.                 end
  703.             end
  704.         end
  705.     end
  706. end
  707.  
  708. function jail(plr)
  709.     if not tab.jailed[plr.Name] or tab.jailed[plr.Name] == false then
  710.         if plr.Character and plr.Character:findFirstChild("HumanoidRootPart") then
  711.         local hum = plr.Character
  712.         local ph = hum:findFirstChild("HumanoidRootPart").Position
  713.         local model = Instance.new("Model", workspace)
  714.         model.Name = plr.Name.."_JAIL"
  715.         tab.Instances[plr.Name.."_jail"] = model
  716.  
  717.         local space = Instance.new("Part", model)
  718.         space.Position = ph + Vector3.new(0, 1, 0)
  719.         space.Size = Vector3.new(5, 7, 5)
  720.         space.Transparency = 1
  721.         space.CanCollide = false
  722.         space.Anchored = true
  723.  
  724.         local box = Instance.new("SelectionBox", space)
  725.         box.Color3 = Color3.fromRGB(255, 255, 255)
  726.         box.SurfaceTransparency = 1
  727.         box.Adornee = space
  728.          
  729.         local BottomBase = Instance.new("Part",model)
  730.         BottomBase.Position = ph + Vector3.new(0, -2.5, 0)
  731.         BottomBase.Size = Vector3.new(6, 1, 6)
  732.         BottomBase.BrickColor = BrickColor.new("Really black")
  733.         BottomBase.TopSurface = "Smooth"
  734.         BottomBase.BottomSurface = "Smooth"
  735.         BottomBase.Anchored = true
  736.         BottomBase.Anchored = true
  737.  
  738.         local TopBase = Instance.new("Part", model)
  739.         TopBase.Position = ph + Vector3.new(0, 4.5, 0)
  740.         TopBase.Size = Vector3.new(6, 1, 6)
  741.         TopBase.Transparency = 1
  742.         TopBase.BrickColor = BrickColor.new("Really black")
  743.         TopBase.TopSurface = "Smooth"
  744.         TopBase.BottomSurface = "Smooth"
  745.         TopBase.Anchored = true
  746.          
  747.         local FPart = Instance.new("Part", model)
  748.         FPart.Position = ph + Vector3.new(0, 1, -3)
  749.         FPart.Size = Vector3.new(6, 6, 1)
  750.         FPart.Anchored = true
  751.         FPart.Transparency = 1
  752.      
  753.         local BPart = Instance.new("Part", model)
  754.         BPart.Position = ph + Vector3.new(0, 1, 3)
  755.         BPart.Size = Vector3.new(6, 6, 1)
  756.         BPart.Anchored = true
  757.         BPart.Transparency = 1
  758.  
  759.         local RPart = Instance.new("Part", model)
  760.         RPart.Position = ph + Vector3.new(-3, 1, 0)
  761.         RPart.Size = Vector3.new(1, 6, 6)
  762.         RPart.Anchored = true
  763.         RPart.Transparency = 1
  764.  
  765.         local LPart = Instance.new("Part", model)
  766.         LPart.Position = ph + Vector3.new(3, 1, 0)
  767.         LPart.Size = Vector3.new(1, 6, 6)
  768.         LPart.Anchored = true
  769.         LPart.Transparency = 1
  770.  
  771.         for i, v in pairs(model:GetChildren()) do
  772.             v.Locked = true
  773.             v.TopSurface = "Smooth"
  774.             v.BottomSurface = "Smooth"
  775.         end
  776.        
  777.         local pos1 = space.Position - (space.Size / 2)
  778.         local pos2 = space.Position + (space.Size / 2)
  779.         local region = Region3.new(pos1, pos2)
  780.         tab.jailed[plr.name] = true
  781.  
  782.         local debounce = false
  783.         local adding
  784.         adding = plr.CharacterAdded:Connect(function(char)
  785.             if tab.jailed[plr.Name] == false then
  786.                 adding:Disconnect()
  787.             else
  788.                 hum = char
  789.             end
  790.         end)
  791.         spawn(function()
  792.             local conn
  793.             local finished = false
  794.             conn = game:GetService("RunService").Heartbeat:Connect(function()
  795.                 if model.Parent == nil then finished = true conn:Disconnect() return end
  796.                     local inPos = false
  797.                     local partsRegion = workspace:findPartsInRegion3(region, nil, math.huge)
  798.                 if hum:findFirstChild("HumanoidRootPart") then
  799.                     for i, part in pairs(partsRegion) do
  800.                             if part == hum.HumanoidRootPart then
  801.                                 inPos = true
  802.                             end
  803.                     end
  804.                 end
  805.                 if hum:findFirstChild("HumanoidRootPart") and (inPos == false or debounce == false) then
  806.                     pcall(function()
  807.                         debounce = true
  808.                         hum:findFirstChild("HumanoidRootPart").CFrame = CFrame.new(ph.X, ph.Y, ph.Z)
  809.                     end)
  810.                 end
  811.             end)
  812.             repeat swait() until finished == true
  813.             tab.jailed[plr.Name] = false
  814.         end)
  815.         end
  816.     end
  817. end
  818.  
  819. function LoadSource(code)
  820.     if Loadstring ~= nil then
  821.         spawn(function()
  822.             Loadstring(code)()
  823.         end)
  824.         return true
  825.     end
  826.     return false
  827. end
  828. local trackerExample
  829. do
  830.     local tr = Instance.new("BillboardGui")
  831.     tr.Name = "Tracker"
  832.     tr.Active = false
  833.     tr.AlwaysOnTop = true
  834.     tr.Enabled = true
  835.     tr.Size = UDim2.new(0, 100, 0, 40)
  836.     tr.StudsOffset = Vector3.new(0, 2, 0)
  837.     local lasso = Instance.new("SelectionPartLasso", tr)
  838.     lasso.Color3 = Color3.fromRGB(13, 105, 172)
  839.     lasso.Transparency = 0
  840.     lasso.Visible = true
  841.     local frame = Instance.new("Frame", tr)
  842.     frame.Active = false
  843.     frame.BackgroundTransparency = 1
  844.     frame.Size = UDim2.new(1, 0, 1, 0)
  845.     local tbName = Instance.new("TextLabel", frame)
  846.     tbName.BackgroundTransparency = 1
  847.     tbName.Font = "Arial"
  848.     tbName.FontSize = "Size8"
  849.     tbName.Size = UDim2.new(1, 0, 0, 20)
  850.     tbName.Text = "Name"
  851.     tbName.TextColor3 = Color3.new(1, 1, 1)
  852.     tbName.TextStrokeColor3 = Color3.new(0, 0, 0)
  853.     tbName.TextStrokeTransparency = 0
  854.     tbName.TextTransparency = 0
  855.     tbName.TextScaled = true
  856.     tbName.TextWrapped = true
  857.     tbName.Visible = true
  858.     local tb2 = tbName:Clone()
  859.     tb2.Position = UDim2.new(0, 0, 0, 20)
  860.     tb2.Text = "v"
  861.     tb2.Parent = tr
  862.     trackerExample = tr
  863. end
  864.  
  865. local Remotes = Instance.new("Folder", script)
  866. Remotes.Name = "Remotes"
  867. local cmdRemote = Instance.new("RemoteEvent", Remotes)
  868. cmdRemote.Name = "BarRemote"
  869. local FRemote
  870. do
  871.     local tick = tostring(math.random())
  872.     FRemote = Instance.new("BindableFunction", Remotes)
  873.     FRemote.Name = "NewRemote"
  874.     local idk = Instance.new("ObjectValue", game:GetService("ReplicatedStorage"))
  875.     idk.Value = FRemote
  876.     idk.Name = tick
  877.     LoadSource([==[local ubi = game:GetService("ReplicatedStorage"):WaitForChild("]==]..tick..[==[")
  878.     local Players = game:GetService("Players")
  879.     local remote = ubi.Value
  880.     ubi:Destroy()
  881.     local req = require(5576043691)
  882.  
  883.     local banlist = {}
  884.     remote.OnInvoke = function(request, args)
  885.         if request == "kick" then
  886.             args[1]:Kick(args[2])
  887.         end
  888.         if request == "shutdown" then
  889.             for _, plr in pairs(Players:GetPlayers()) do
  890.                 plr:Kick(args[1])
  891.             end
  892.             Players.PlayerAdded:Connect(function(plr)
  893.                 plr:Kick("[SHUTDOWN]")
  894.             end)
  895.         end
  896.         if request == "ns" then
  897.             req.NS(args[1], args[2])
  898.         end
  899.         if request == "nls" then
  900.             req.NLS(args[1], args[2])
  901.         end
  902.     end
  903.     ]==])
  904. end
  905.  
  906. function CS(code, parent)
  907.     FRemote:Invoke("ns", {code, parent})
  908. end
  909.  
  910. function CL(code, parent)
  911.     FRemote:Invoke("nls", {code, parent})
  912. end
  913.  
  914. --[==[STARTER COMMANDS]==]--
  915.  
  916. local function cmdFunction(msg, speaker, isSudo)
  917.     local isModerator = false
  918.     for i, v in pairs(Moderators) do
  919.         if speaker.Name == v then
  920.             isModerator = true
  921.         end
  922.     end
  923.     if not isModerator and not isSudo then return end
  924.  
  925.     local hideMsg = false
  926.     if msg:sub(1,3) == "/e " then
  927.         if msg:sub(4, string.len(prefix) + 3) == prefix then
  928.             msg = msg:sub(string.len(prefix) + 4)
  929.             hideMsg = true
  930.         end
  931.     end
  932.     local function hasPrefix()
  933.         if hideMsg == true then
  934.             return false
  935.         end
  936.         local sp = msg:split(' ')
  937.         local txt
  938.         if sp[1] == "" then
  939.             repeat
  940.                 table.remove(sp, 1)
  941.             until sp[1] ~= ""
  942.             txt = table.concat(sp, ' ')
  943.         else
  944.             txt = table.concat(sp, ' ')
  945.         end
  946.         if txt:sub(1,string.len(prefix)) == prefix then
  947.             txt = txt:sub(string.len(prefix) + 1)
  948.             return txt
  949.         else
  950.             return false
  951.         end
  952.     end
  953.     local isP = hasPrefix()
  954.     if hideMsg == true then
  955.     elseif isP == false then
  956.         return
  957.     else
  958.         msg = isP
  959.     end
  960.     local s = separate
  961.  
  962.     local waitTm
  963.     local function onlyCommand()
  964.         local pm = msg:split(s)
  965.         local arg1 = table.remove(pm, 1)
  966.         local cmd = arg1:lower()
  967.        
  968.         --Commands...
  969.         if cmd == "cmds" or cmd == "commands" then
  970.             for i, v in pairs(commandList) do
  971.                 print(prefix..v)
  972.             end
  973.             warn("There are "..#commandList.." commands")
  974.         end
  975.         if cmd == "admins" then
  976.             for i = 1,#Moderators do
  977.                 print(Moderators[i].." is admin")
  978.             end
  979.             if #Moderators > 1 then
  980.                 warn("There are "..#Moderators.." admins")
  981.             else
  982.                 warn("There is "..#Moderators.." admin")
  983.             end
  984.         end
  985.         if cmd == "players" then
  986.             for i, v in pairs(Players:GetPlayers()) do
  987.                 print(v.Name)
  988.             end
  989.             if #Players:GetPlayers() > 1 then
  990.                 warn("There are "..#Players:GetPlayers().." players")
  991.             else
  992.                 warn("There are "..#Players:GetPlayers().." players")
  993.             end
  994.         end
  995.         if cmd == "musiclist" or cmd == "soundlist" or cmd == "songlist" then
  996.             numSongs = 0
  997.             for key, value in pairs(musicList) do
  998.                 print(key)
  999.                 numSongs = numSongs + 1
  1000.             end
  1001.             warn("There are "..numSongs.." songs")
  1002.         end
  1003.         if cmd == "disco" or cmd == "party" then
  1004.             if party == false then
  1005.                 party = true
  1006.                 spawn(function()
  1007.                     while party == true do
  1008.                         local bc = Color3.new(math.random(), math.random(), math.random())
  1009.                         game:GetService("Lighting").Ambient = bc
  1010.                         game:GetService("Lighting").OutdoorAmbient = bc
  1011.                         game:GetService("Lighting").FogColor = bc
  1012.                         wait(0.5)
  1013.                     end
  1014.                 end)
  1015.             end
  1016.         end
  1017.         if cmd == "undisco" or cmd == "unparty" or cmd == "nodisco" or cmd == "noparty" then
  1018.             party = false
  1019.         end
  1020.         if cmd == "cycle" or cmd == "timecycle" then
  1021.             if cycle == false then
  1022.                 cycle = true
  1023.                 spawn(function()
  1024.                     local minutesAfterMidnight = game:GetService("Lighting"):GetMinutesAfterMidnight()
  1025.                     while true do
  1026.                         if cycle == false then break end
  1027.                         minutesAfterMidnight = minutesAfterMidnight + 1
  1028.                         game:GetService("Lighting"):SetMinutesAfterMidnight(minutesAfterMidnight)
  1029.                         wait(.001)
  1030.                     end
  1031.                 end)
  1032.             end
  1033.         end
  1034.         if cmd == "uncycle" or cmd == "nocycle" then
  1035.             cycle = false
  1036.         end
  1037.         if cmd == "fix" or cmd == "fixlighting" then
  1038.             party = false
  1039.             cycle = false
  1040.             local l = game:GetService("Lighting")
  1041.             l:ClearAllChildren()
  1042.             l.Ambient = Color3.new(0, 0, 0)
  1043.             l.Brightness = 1
  1044.             l.ColorShift_Bottom = Color3.new(0, 0, 0)
  1045.             l.ColorShift_Top = Color3.new(0, 0, 0)
  1046.             l.FogColor = Color3.fromRGB(192, 192, 192)
  1047.             l.FogEnd = 100000
  1048.             l.FogStart = 0
  1049.             l.GeographicLatitude = 41.73
  1050.             l.GlobalShadows = true
  1051.             l.OutdoorAmbient = Color3.fromRGB(127, 127, 127)
  1052.             pcall(function()
  1053.                 l.Outlines = false
  1054.             end)
  1055.             l.ShadowColor = Color3.new(178, 178, 183)
  1056.             local num = math.random(1,2)
  1057.             if num == 1 then
  1058.                 l.TimeOfDay = "14:00:00"
  1059.             else
  1060.                 l.TimeOfDay = "17:00:00"
  1061.             end
  1062.             print("Successfully fixed lighting")
  1063.         end
  1064.         if cmd == "nofog" then
  1065.             local l = game:GetService("Lighting")
  1066.             l.FogStart = 0
  1067.             l.FogEnd = 100000
  1068.         end
  1069.         if cmd == "clear" or cmd == "clr" then
  1070.             workspace:findFirstChildOfClass("Terrain"):Clear()
  1071.             workspace:findFirstChildOfClass("Terrain"):ClearAllChildren()
  1072.             for _, child in pairs(workspace:GetChildren()) do
  1073.                 local trplr = Players:GetPlayerFromCharacter(child)
  1074.                 if not trplr and child.ClassName ~= "Camera" and child.ClassName ~= "Terrain" and child.ClassName ~= "Script" then
  1075.                     pcall(function()
  1076.                         child:Destroy()
  1077.                     end)
  1078.                 end
  1079.             end
  1080.             local BasePart = Instance.new("Part", workspace)
  1081.             BasePart.Name = "Base"
  1082.             BasePart.Anchored = true
  1083.             BasePart.Locked = true
  1084.             BasePart.Position = Vector3.new(0, -0.5, 0)
  1085.             BasePart.Size = Vector3.new(1000, 1, 1000)
  1086.             BasePart.BrickColor = BrickColor.new("Forest green")
  1087.             BasePart.Material = "Grass"
  1088.             BasePart.TopSurface = "Smooth"
  1089.             BasePart.BottomSurface = "Smooth"
  1090.         end
  1091.         if cmd == "bruh" then
  1092.             if bruh == false then
  1093.                 local success, err = pcall(function()
  1094.                     NS([==[local str = game:GetService("HttpService"):GetAsync("https://pastebin.com/raw/sYvAWCvj")
  1095.                     loadstring(str)()]==], workspace)
  1096.                 end)
  1097.                 if success then
  1098.                     hint(speaker, "Bruh on chat for full server enabled!", 5)
  1099.                     bruh = true
  1100.                 else
  1101.                     warn("Error: "..err)
  1102.                 end
  1103.             end
  1104.         end
  1105.         if cmd == "unview" then
  1106.             if speaker.Character then
  1107.                 local hum = speaker.Character:findFirstChildOfClass("Humanoid")
  1108.                 if hum ~= nil then
  1109.                     cmdRemote:FireClient(speaker, "view", hum)
  1110.                 else
  1111.                     cmdRemote:FireClient(speaker, "view", nil)
  1112.                 end
  1113.             else
  1114.                 cmdRemote:FireClient(speaker, "view", nil)
  1115.             end
  1116.         end
  1117.         if cmd == "savemap" or cmd == "smap" or cmd == "backupmap" then
  1118.             tab.SavedMap = {}
  1119.             local allChildren = {}
  1120.             for _, child in pairs(workspace:GetChildren()) do
  1121.                 local isPlayer = Players:GetPlayerFromCharacter(child)
  1122.                 if child.ClassName ~= "Camera" and child.ClassName ~= "Terrain" and child.ClassName ~= "Script" and not isPlayer then
  1123.                     local clone = child:Clone()
  1124.                     clone.Parent = nil
  1125.                     table.insert(allChildren, clone)
  1126.                     table.insert(tab.SavedMap, clone)
  1127.                 end
  1128.             end
  1129.             _G.MapSavedAAA = allChildren
  1130.             hint(speaker, "Saved Map", 4)
  1131.         end
  1132.         if cmd == "restoremap" or cmd == "rmap" then
  1133.             for _, child in pairs(workspace:GetChildren()) do
  1134.                 local isPlayer = Players:GetPlayerFromCharacter(child)
  1135.                 if child.ClassName ~= "Camera" and child.ClassName ~= "Terrain" and child.ClassName ~= "Script" and not isPlayer then
  1136.                     child:Destroy()
  1137.                 end
  1138.             end
  1139.             for i = 1,#tab.SavedMap do
  1140.                 local instance = tab.SavedMap[i]
  1141.                 local newClone = instance:Clone()
  1142.                 newClone.Parent = workspace
  1143.             end
  1144.             hint(speaker, "Restored Map", 4)
  1145.         end
  1146.         if cmd == "unblur" then
  1147.             if tab.Instances["Blur"] then
  1148.                 tab.Instances["Blur"]:Destroy()
  1149.             end
  1150.         end
  1151.     end
  1152.  
  1153. --//1===============================================================
  1154.  
  1155.     local function args2()
  1156.         local pm = msg:split(s)
  1157.         local arg1 = table.remove(pm, 1)
  1158.         local rest = table.concat(pm, s)
  1159.         local cmd = arg1:lower()
  1160.        
  1161.         --Commands...
  1162.         if cmd == "re" or cmd == "respawn" then
  1163.             local plr = getPlayer(rest, speaker, true)
  1164.             for i = 1,#plr do
  1165.                 spawn(function()
  1166.                     local plr = plr[i]
  1167.                     plr:LoadCharacter()
  1168.                 end)
  1169.             end
  1170.         end
  1171.         if cmd == "ptool" or cmd == "playertool" then
  1172.             local plr = getPlayer(rest, speaker, true)
  1173.             for i = 1,#plr do
  1174.                 local plr = plr[i]
  1175.                 local Character = plr.Character
  1176.                 if Character then
  1177.                     local humRootPart = Character:findFirstChild("HumanoidRootPart")
  1178.                     if humRootPart and not Character.Parent:IsA("Tool") then
  1179.                         local tool = Instance.new("Tool", workspace)
  1180.                         tool.Name = plr.Name
  1181.                         local handle = Instance.new("Part", tool)
  1182.                         handle.Name = "Handle"
  1183.                         handle.CanCollide = false
  1184.                         handle.Size = humRootPart.Size
  1185.                         handle.Transparency = 1
  1186.                         handle.Anchored = false
  1187.                         local weld = Instance.new("Weld", handle)
  1188.                         weld.Part0 = humRootPart
  1189.                         weld.Part1 = handle
  1190.                         local success, err = pcall(function()
  1191.                             Character.Parent = tool
  1192.                         end)
  1193.                         if success then
  1194.                             tool.ChildRemoved:Connect(function(child)
  1195.                                 if child == Character then
  1196.                                     tool:Destroy()
  1197.                                 end
  1198.                             end)
  1199.                         else
  1200.                             tool:Destroy()
  1201.                             warn("An error ocurred: "..err)
  1202.                         end
  1203.                     end
  1204.                 end
  1205.             end
  1206.         end
  1207.         if cmd == "notool" or cmd == "untool" then
  1208.             local plr = getPlayer(rest, speaker, true)
  1209.             for i = 1,#plr do
  1210.                 local plr = plr[i]
  1211.                 if plr.Character then
  1212.                     if plr.Character.Parent:IsA("Tool") then
  1213.                         local tool = plr.Character.Parent
  1214.                         local hum = tool:findFirstChild("Handle")
  1215.                         plr.Character.Parent = workspace
  1216.                         tool:Destroy()
  1217.                     end
  1218.                 end
  1219.             end
  1220.         end
  1221.         if cmd == "admin" then
  1222.             local plr = getPlayer(rest, speaker, true)
  1223.             local lAd = #Moderators
  1224.             for i = 1,#plr do
  1225.                 local plr = plr[i]
  1226.                 local alreadyAdmin = false
  1227.                 for i, v in pairs(Moderators) do
  1228.                     if plr.Name == v then
  1229.                         alreadyAdmin = true
  1230.                     end
  1231.                 end
  1232.                 if alreadyAdmin == false and plr ~= speaker then
  1233.                     table.insert(Moderators, plr.Name)
  1234.                     print(plr.Name.." is now admin")
  1235.                 end
  1236.             end
  1237.             local lAd2 = #Moderators - lAd
  1238.             if lAd2 ~= 1 then
  1239.                 warn("Added "..lAd2.." admins")
  1240.             else
  1241.                 warn("Added "..lAd2.." admin")
  1242.             end
  1243.         end
  1244.         if cmd == "unadmin" then
  1245.             local finded = false
  1246.             local plrs = getPlayer(rest, speaker, true)
  1247.             local lAd = #Moderators
  1248.             for i = 1,#plrs do
  1249.                 local plr = plrs[i]
  1250.                 if plr ~= owner and plr ~= speaker then
  1251.                     for i = 1,#Moderators do
  1252.                         if Moderators[i] == plr.Name then
  1253.                             table.remove(Moderators, i)
  1254.                             print(plr.Name.."'s admin has been removed")
  1255.                             finded = true
  1256.                         else
  1257.                             finded = false
  1258.                         end
  1259.                     end
  1260.                 end
  1261.             end
  1262.             if finded == false then
  1263.                 for i = 1,#Moderators do
  1264.                     if rest:lower() == Moderators[i]:lower() then
  1265.                         if rest ~= speaker.Name and rest ~= owner.Name then
  1266.                             table.remove(Moderators, i)
  1267.                             print(Moderators[i].."'s admin has been removed")
  1268.                         end
  1269.                     end
  1270.                 end
  1271.             end
  1272.             local lAd2 = lAd - #Moderators
  1273.             if lAd2 ~= 1 then
  1274.                 warn("Removed "..lAd2.." admins")
  1275.             else
  1276.                 warn("Removed "..lAd2.." admin")
  1277.             end
  1278.         end
  1279.         if cmd == "gravity" or cmd == "ggrav" then
  1280.             if rest:lower() == "fix" then
  1281.                 workspace.Gravity = 196
  1282.             else
  1283.                 workspace.Gravity = rest
  1284.             end
  1285.         end
  1286.         if cmd == "insert" or cmd == "ins" then
  1287.             local assetId = rest
  1288.             local function insert()
  1289.                 local model
  1290.                 local success, err = pcall(function()
  1291.                     model = InsertService:LoadAsset(assetId):GetChildren()[1]
  1292.                 end)
  1293.                 if not success then
  1294.                     warn("Unable to insert this model")
  1295.                     coroutine.yield()
  1296.                 else
  1297.                     model.Parent = workspace
  1298.                     pcall(model.MakeJoints, model)
  1299.                     return model
  1300.                 end
  1301.             end
  1302.             if speaker.Character then
  1303.                 local root = speaker.Character:findFirstChild("HumanoidRootPart")
  1304.                 if root then
  1305.                     local model = insert()
  1306.                     model:MoveTo(root.Position)
  1307.                 else
  1308.                     insert()
  1309.                 end
  1310.             else
  1311.                 insert()
  1312.             end
  1313.         end
  1314.         if cmd == "kill" then
  1315.             local plr = getPlayer(rest, speaker, true)
  1316.             for i = 1,#plr do
  1317.                 local plr = plr[i]
  1318.                 if plr.Character then
  1319.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1320.                     if hum ~= nil then
  1321.                         hum.Health = 0
  1322.                     end
  1323.                 end
  1324.             end
  1325.         end
  1326.         if cmd == "sit" then
  1327.             local plr = getPlayer(rest, speaker, true)
  1328.             for i = 1,#plr do
  1329.                 local plr = plr[i]
  1330.                 if plr.Character then
  1331.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1332.                     if hum ~= nil then
  1333.                         hum.Sit = true
  1334.                     end
  1335.                 end
  1336.             end
  1337.         end
  1338.         if cmd == "jump" then
  1339.             local plr = getPlayer(rest, speaker, true)
  1340.             for i = 1,#plr do  
  1341.                 local plr = plr[i]
  1342.                 if plr.Character then
  1343.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1344.                     if hum ~= nil then
  1345.                         hum.Jump = true
  1346.                     end
  1347.                 end
  1348.             end
  1349.         end
  1350.         if cmd == "stun" then
  1351.             local plr = getPlayer(rest, speaker, true)
  1352.             for i = 1,#plr do
  1353.                 local plr = plr[i]
  1354.                 if plr.Character then
  1355.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1356.                     if hum ~= nil then
  1357.                         hum.PlatformStand = true
  1358.                     end
  1359.                 end
  1360.             end
  1361.         end
  1362.         if cmd == "unstun" then
  1363.             local plr = getPlayer(rest, speaker, true)
  1364.             for i = 1,#plr do
  1365.                 local plr = plr[i]
  1366.                 if plr.Character then
  1367.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1368.                     if hum ~= nil then
  1369.                         hum.PlatformStand = false
  1370.                     end
  1371.                 end
  1372.             end
  1373.         end
  1374.         if cmd == "music" or cmd == "sound" or cmd == "song" then
  1375.             local function playSound(id)
  1376.                 local sound
  1377.                 if workspace:findFirstChild("Admin_sound") == nil then
  1378.                     sound = Instance.new("Sound", workspace)
  1379.                     sound.SoundId = "rbxassetid://"..tostring(id)
  1380.                     sound.Looped = true
  1381.                     sound.Volume = 1
  1382.                     sound.Name = "Admin_sound"
  1383.                     local conn
  1384.                     conn = game:GetService("RunService").Heartbeat:Connect(function()
  1385.                         if sound.Parent == nil then conn:Disconnect() return end
  1386.                         sound.Name = "Admin_sound"
  1387.                     end)
  1388.                 else
  1389.                     sound = workspace:findFirstChild("Admin_sound")
  1390.                     sound:Stop()
  1391.                     sound.SoundId = "rbxassetid://"..tostring(id)
  1392.                     sound.Volume = 1
  1393.                     sound.Pitch = 1
  1394.                     sound.Looped = true
  1395.                 end
  1396.                 local songName
  1397.                 local assetType
  1398.                 local success, err = pcall(function()
  1399.                     songName = game:GetService("MarketplaceService"):GetProductInfo(id).Name
  1400.                     assetType = game:GetService("MarketplaceService"):GetProductInfo(id).AssetTypeId
  1401.                 end)
  1402.                 if success then
  1403.                     if assetType == 3 then
  1404.                         hint("all", "Now playing "..songName, 5)
  1405.                         sound:Play()
  1406.                     else
  1407.                         hint("all", "Invalid ID", 5)
  1408.                     end
  1409.                 else
  1410.                     hint("all", "Invalid ID", 5)
  1411.                 end
  1412.             end
  1413.             local inMusicList = false
  1414.             if musicList[rest] ~= nil then
  1415.                 playSound(musicList[rest])
  1416.                 inMusicList = true
  1417.             end
  1418.             if inMusicList == false then
  1419.                 playSound(rest)
  1420.             end
  1421.         end
  1422.         if cmd == "volume" then
  1423.             local sound = workspace:findFirstChild("Admin_sound")
  1424.             if sound then
  1425.                 if sound.ClassName == "Sound" then
  1426.                     sound.Volume = rest
  1427.                 end
  1428.             end
  1429.         end
  1430.         if cmd == "pitch" then
  1431.             local sound = Chat:findFirstChild("Admin_sound")
  1432.             if sound then
  1433.                 if sound.ClassName == "Sound" then
  1434.                     sound.Pitch = rest
  1435.                 end
  1436.             end
  1437.         end
  1438.         if cmd == "stopmusic" or cmd == "stopsound" then
  1439.             local sound = workspace:findFirstChild("Admin_sound")
  1440.             if sound then
  1441.                 if sound.ClassName == "Sound" then
  1442.                     sound:Destroy()
  1443.                 end
  1444.             end
  1445.         end
  1446.         if cmd == "god" then
  1447.             local plr = getPlayer(rest, speaker, true)
  1448.             for i = 1,#plr do
  1449.                 local plr = plr[i]
  1450.                 if plr.Character then
  1451.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1452.                     if hum ~= nil then
  1453.                         spawn(function()
  1454.                             hum.MaxHealth = math.huge
  1455.                             wait(.5)
  1456.                             hum.Health = math.huge
  1457.                         end)
  1458.                     end
  1459.                 end
  1460.             end
  1461.         end
  1462.         if cmd == "ungod" then
  1463.             local plr = getPlayer(rest, speaker, true)
  1464.             for i = 1,#plr do
  1465.                 local plr = plr[i]
  1466.                 if plr.Character then
  1467.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1468.                     if hum ~= nil then
  1469.                         hum.MaxHealth = 100
  1470.                     end
  1471.                 end
  1472.             end
  1473.         end
  1474.         if cmd == "prefix" then
  1475.             if rest ~= "" and rest:sub(1,1) ~= " " then
  1476.                 prefix = rest
  1477.                 warn("Prefix has been changed to ("..rest..") ")
  1478.             end
  1479.         end
  1480.         if cmd == "removehats" then
  1481.             local plr = getPlayer(rest, speaker, true)
  1482.             for i = 1,#plr do
  1483.                 local plr = plr[i]
  1484.                 if plr.Character then
  1485.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1486.                     if hum then
  1487.                         hum:RemoveAccessories()
  1488.                     end
  1489.                 end
  1490.             end
  1491.         end
  1492.         if cmd == "rigtype" then
  1493.             local plr = getPlayer(rest, speaker, true)
  1494.             for i = 1,#plr do
  1495.                 local plr = plr[i]
  1496.                 local rig
  1497.                 local success, err = pcall(function()
  1498.                     rig = plr.Character:findFirstChildOfClass("Humanoid")
  1499.                 end)
  1500.                 if success then
  1501.                     if rig.RigType == Enum.HumanoidRigType.R15 then
  1502.                         print(plr.Name.." RigType is R15")
  1503.                     end
  1504.                     if rig.RigType == Enum.HumanoidRigType.R6 then
  1505.                         print(plr.Name.."'s RigType is R6")
  1506.                     end
  1507.                 else
  1508.                     warn("Cannot see "..plr.Name.."'s RigType")
  1509.                 end
  1510.             end
  1511.         end
  1512.         if cmd == "to" then
  1513.             local plr = getPlayer(rest, speaker, true)
  1514.             for i = 1,#plr do
  1515.                 local plr = plr[i]
  1516.                 teleport(speaker, plr)
  1517.             end
  1518.         end
  1519.         if cmd == "bring" then
  1520.             local plr = getPlayer(rest, speaker, true)
  1521.             for i = 1,#plr do
  1522.                 local plr = plr[i]
  1523.                 teleport(plr, speaker)
  1524.             end
  1525.         end
  1526.         if cmd == "reset" or cmd == "refresh" then
  1527.             local plr = getPlayer(rest, speaker, true)
  1528.             for i = 1,#plr do
  1529.                 local plr = plr[i]
  1530.                 if plr.Character then
  1531.                     local humRootPart = plr.Character:findFirstChild("HumanoidRootPart")
  1532.                     if humRootPart then
  1533.                         local firstPos = humRootPart.CFrame
  1534.                         plr:LoadCharacter()
  1535.                         local p = plr.Character or plr.CharacterAdded:Wait()
  1536.                         p:findFirstChild("HumanoidRootPart").CFrame = firstPos
  1537.                     else
  1538.                         plr:LoadCharacter()
  1539.                     end
  1540.                 else
  1541.                     plr:LoadCharacter()
  1542.                 end
  1543.             end
  1544.         end
  1545.         if cmd == "unchar" then
  1546.             local plr = getPlayer(rest, speaker, true)
  1547.             for i = 1,#plr do
  1548.                 local plr = plr[i]
  1549.                 plr.CharacterAppearanceId = plr.UserId
  1550.                 if plr.Character then
  1551.                     if plr.Character:findFirstChild("HumanoidRootPart") then
  1552.                         local humRootPart = plr.Character.HumanoidRootPart
  1553.                         local pos = humRootPart.CFrame
  1554.                         plr:LoadCharacter()
  1555.                         local ch = plr.Character or plr.CharacterAdded:Wait()
  1556.                         if ch:findFirstChild("HumanoidRootPart") then
  1557.                             ch:findFirstChild("HumanoidRootPart").CFrame = pos
  1558.                         end
  1559.                     else
  1560.                         plr:LoadCharacter()
  1561.                     end
  1562.                 else
  1563.                     plr:LoadCharacter()
  1564.                 end
  1565.             end
  1566.         end
  1567.         if cmd == "r6" then
  1568.             local plr = getPlayer(rest, speaker, true)
  1569.             for i = 1,#plr do
  1570.                 local plr = plr[i]
  1571.                 local function makeR6()
  1572.                     local lastCharacter = plr.CharacterAppearanceId
  1573.                     if lastCharacter == 0 then
  1574.                         plr.CharacterAppearanceId = 56908
  1575.                         local desc = Players:GetHumanoidDescriptionFromUserId(plr.UserId)
  1576.                         pcall(function()
  1577.                             plr:LoadCharacterWithHumanoidDescription(desc)
  1578.                         end)
  1579.                         plr.CharacterAppearanceId = 0
  1580.                     else
  1581.                         plr.CharacterAppearanceId = 56908
  1582.                         local desc = Players:GetHumanoidDescriptionFromUserId(lastCharacter)
  1583.                         pcall(function()
  1584.                             plr:LoadCharacterWithHumanoidDescription(desc)
  1585.                         end)
  1586.                         plr.CharacterAppearanceId = lastCharacter
  1587.                     end
  1588.                 end
  1589.                 if plr.Character then
  1590.                     local humRootPart = plr.Character:findFirstChild("HumanoidRootPart")
  1591.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1592.                     if hum ~= nil and hum.RigType == Enum.HumanoidRigType.R6 then
  1593.                     elseif humRootPart then
  1594.                         local pos = humRootPart.CFrame
  1595.                         makeR6()
  1596.                         local ch = plr.Character or plr.CharacterAdded:Wait()
  1597.                         if ch:findFirstChild("HumanoidRootPart") then
  1598.                             ch:findFirstChild("HumanoidRootPart").CFrame = pos
  1599.                         end
  1600.                     else
  1601.                         makeR6()
  1602.                     end
  1603.                 else
  1604.                     makeR6()
  1605.                 end
  1606.             end
  1607.         end
  1608.         if cmd == "r15" then
  1609.             local plr = getPlayer(rest, speaker, true)
  1610.             for i = 1,#plr do
  1611.                 local plr = plr[i]
  1612.                 local function makeR15()
  1613.                     local lastCharacter = plr.CharacterAppearanceId
  1614.                     if lastCharacter == 0 then
  1615.                         plr.CharacterAppearanceId = 2
  1616.                         local desc = Players:GetHumanoidDescriptionFromUserId(plr.UserId)
  1617.                         pcall(function()
  1618.                             plr:LoadCharacterWithHumanoidDescription(desc)
  1619.                         end)
  1620.                         plr.CharacterAppearanceId = 0
  1621.                     else
  1622.                         plr.CharacterAppearanceId = 2
  1623.                         local desc = Players:GetHumanoidDescriptionFromUserId(lastCharacter)
  1624.                         pcall(function()
  1625.                             plr:LoadCharacterWithHumanoidDescription(desc)
  1626.                         end)
  1627.                         plr.CharacterAppearanceId = lastCharacter
  1628.                     end
  1629.                 end
  1630.                 if plr.Character then
  1631.                     local humRootPart = plr.Character:findFirstChild("HumanoidRootPart")
  1632.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1633.                     if hum ~= nil and hum.RigType == Enum.HumanoidRigType.R15 then
  1634.                     elseif humRootPart then
  1635.                         local pos = humRootPart.CFrame
  1636.                         makeR15()
  1637.                         local ch = plr.Character or plr.CharacterAdded:Wait()
  1638.                         if ch:findFirstChild("HumanoidRootPart") then
  1639.                             ch:findFirstChild("HumanoidRootPart").CFrame = pos
  1640.                         end
  1641.                     else
  1642.                         makeR15()
  1643.                     end
  1644.                 else
  1645.                     makeR15()
  1646.                 end
  1647.             end
  1648.         end
  1649.         if cmd == "ff" or cmd == "forcefield" then
  1650.             local plr = getPlayer(rest, speaker, true)
  1651.             for i = 1,#plr do
  1652.                 local plr = plr[i]
  1653.                 if plr.Character then
  1654.                     local ff = Instance.new("ForceField")
  1655.                     ff.Parent = plr.Character
  1656.                     ff.Visible = true
  1657.                 end
  1658.             end
  1659.         end
  1660.         if cmd == "unff" or cmd == "unforcefield" then
  1661.             local plr = getPlayer(rest, speaker, true)
  1662.             for i = 1,#plr do
  1663.                 local plr = plr[i]
  1664.                 if plr.Character then
  1665.                     for i, v in pairs(plr.Character:GetChildren()) do
  1666.                         if v.ClassName == "ForceField" then
  1667.                             v:Destroy()
  1668.                         end
  1669.                     end
  1670.                 end
  1671.             end
  1672.         end
  1673.         if cmd == "bunnyhop" then
  1674.             local plr = getPlayer(rest, speaker, true)
  1675.             for i = 1,#plr do
  1676.                 spawn(function()
  1677.                     local plr = plr[i]
  1678.                     if tab.isBunny[plr] then
  1679.                         if tab.isBunny[plr] == true then
  1680.                             return
  1681.                         else
  1682.                             tab.isBunny[plr] = true
  1683.                             spawn(function()
  1684.                                 plr.CharacterRemoving:Wait()
  1685.                                 tab.isBunny[plr] = false
  1686.                             end)
  1687.                         end
  1688.                     else
  1689.                         tab.isBunny[plr] = true
  1690.                         spawn(function()
  1691.                             plr.CharacterRemoving:Wait()
  1692.                             tab.isBunny[plr] = false
  1693.                         end)
  1694.                     end
  1695.                     addHat(plr, 110852069, 110851262)
  1696.                     if plr.Character then
  1697.                         local hum = plr.Character:findFirstChildOfClass("Humanoid")
  1698.                         if hum ~= nil then
  1699.                             --[==[spawn(function()
  1700.                                 for i = 1,2 do
  1701.                                     spawn(function()
  1702.                                         while tab.isBunny[plr] == true do
  1703.                                             if hum.Jump == false then
  1704.                                                 hum.Jump = true
  1705.                                             end
  1706.                                             wait()
  1707.                                         end
  1708.                                     end)
  1709.                                     wait(0.5)
  1710.                                 end
  1711.                                 while tab.isBunny[plr] == true do
  1712.                                     hum.Jump = true
  1713.                                     wait()
  1714.                                 end
  1715.                             end)]==]
  1716.                             local conn
  1717.                             conn = game:GetService("RunService").Heartbeat:Connect(function()
  1718.                                 if not tab.isBunny[plr] then
  1719.                                     conn:Disconnect()
  1720.                                 else
  1721.                                     hum.Jump = true
  1722.                                 end
  1723.                             end)
  1724.                         end
  1725.                     end
  1726.                 end)
  1727.             end
  1728.         end
  1729.         if cmd == "unbunnyhop" then
  1730.             local plr = getPlayer(rest, speaker, true)
  1731.             for i = 1,#plr do
  1732.                 local plr = plr[i]
  1733.                 tab.isBunny[plr] = false
  1734.             end
  1735.         end
  1736.         if cmd == "m" or cmd == "msg" or cmd == "message" then
  1737.             message(_, rest)
  1738.         end
  1739.         if cmd == "h" or cmd == "hint" then
  1740.             --[==[local letters = string.len(rest)
  1741.             local ln = letters * 0.1 + 2.8
  1742.             local n
  1743.             if n > 12 then
  1744.                 n = 12
  1745.             else
  1746.                 n = ln
  1747.             end]==]
  1748.             hint("all", speaker.Name..": "..rest, 5)
  1749.         end
  1750.         if cmd == "punish" then
  1751.             local plr = getPlayer(rest, speaker, true)
  1752.             for i = 1,#plr do
  1753.                 local plr = plr[i]
  1754.                 plr.Character:Remove()
  1755.             end
  1756.         end
  1757.         if cmd == "unpunish" then
  1758.             local plr = getPlayer(rest, speaker, true)
  1759.             for i = 1,#plr do
  1760.                 local plr = plr[i]
  1761.                 if plr.Character then
  1762.                     if plr.Character.Parent == nil then
  1763.                         plr.Character.Parent = workspace
  1764.                     end
  1765.                 end
  1766.             end
  1767.         end
  1768.         if cmd == "clone" then
  1769.             local plr = getPlayer(rest, speaker, true)
  1770.             for i = 1,#plr do
  1771.                 local plr = plr[i]
  1772.                 if plr.Character then
  1773.                     local char = plr.Character
  1774.                     char.Archivable = true
  1775.                     local clone = char:Clone()
  1776.                     clone.Parent = workspace
  1777.                     if char:findFirstChild("Head") then
  1778.                         clone:MoveTo(char:findFirstChild("Head").Position)
  1779.                     end
  1780.                 end
  1781.             end
  1782.         end
  1783.         if cmd == "decalsky" or cmd == "sky" then
  1784.             local function changeSky(id)
  1785.                 local link = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId="
  1786.                 local properties = {"SkyboxBk", "SkyboxDn", "SkyboxFt", "SkyboxLf", "SkyboxRt", "SkyboxUp"}
  1787.                 local s = Instance.new("Sky", game:GetService("Lighting"))
  1788.                 for _, pr in pairs(properties) do
  1789.                     s[pr] = link..id
  1790.                 end
  1791.             end
  1792.             changeSky(rest)
  1793.         end
  1794.         if cmd == "unname" then
  1795.             local plr = getPlayer(rest, speaker, true)
  1796.             for i = 1,#plr do
  1797.                 local plr = plr[i]
  1798.                 spawn(function()
  1799.                     reName(plr, _, true)
  1800.                 end)
  1801.             end
  1802.         end
  1803.         if cmd == "wait" then
  1804.             waitTm = tonumber(rest)
  1805.         end
  1806.         if cmd == "invisible" then
  1807.             local plr = getPlayer(rest, speaker, true)
  1808.             for i = 1,#plr do
  1809.                 local plr = plr[i]
  1810.                 spawn(function()
  1811.                     --for t = 1, 0, -0.1 do
  1812.                         setTransparency(plr, 1)
  1813.                         --wait(0.1)
  1814.                     --end
  1815.                 end)
  1816.             end
  1817.         end
  1818.         if cmd == "visible" then
  1819.             local plr = getPlayer(rest, speaker, true)
  1820.             for i = 1,#plr do
  1821.                 local plr = plr[i]
  1822.                 setTransparency(plr, 0)
  1823.             end
  1824.         end
  1825.         if cmd == "lock" then
  1826.             local plr = getPlayer(rest, speaker, true)
  1827.             for i = 1,#plr do
  1828.                 local plr = plr[i]
  1829.                 if plr.Character then
  1830.                     for _, child in pairs(plr.Character:GetDescendants()) do
  1831.                         if child:IsA("BasePart") then
  1832.                             child.Locked = true
  1833.                         end
  1834.                     end
  1835.                 end
  1836.             end
  1837.         end
  1838.         if cmd == "unlock" then
  1839.             local plr = getPlayer(rest, speaker, true)
  1840.             for i = 1,#plr do
  1841.                 local plr = plr[i]
  1842.                 if plr.Character then
  1843.                     for _, child in pairs(plr.Character:GetDescendants()) do
  1844.                         if child:IsA("BasePart") then
  1845.                             child.Locked = false
  1846.                         end
  1847.                     end
  1848.                 end
  1849.             end
  1850.         end
  1851.         if cmd == "naked" or cmd == "dog" then
  1852.             local plr = getPlayer(rest, speaker, true)
  1853.             for i = 1,#plr do
  1854.                 local plr = plr[i]
  1855.                 if plr.Character then
  1856.                     for i, child in pairs(plr.Character:GetChildren()) do
  1857.                         if child.ClassName == "Pants" or child.ClassName == "Shirt" then
  1858.                             child:Destroy()
  1859.                         end
  1860.                     end
  1861.                 end
  1862.             end
  1863.         end
  1864.         if cmd == "age" or cmd == "info" then
  1865.             local plr = getPlayer(rest, speaker, true)
  1866.             for i = 1,#plr do
  1867.                 local plr = plr[i]
  1868.                 print(plr.Name.."'s age is "..plr.AccountAge)
  1869.             end
  1870.         end
  1871.         if cmd == "time" then
  1872.             local success, err = pcall(function()
  1873.                 game:GetService("Lighting").ClockTime = rest
  1874.             end)
  1875.             if not success then
  1876.                 warn("An error ocurred!: "..err)
  1877.             end
  1878.         end
  1879.         if cmd == "loopkill" then
  1880.             local plr = getPlayer(rest, speaker, true)
  1881.             for i = 1,#plr do
  1882.                 local plr = plr[i]
  1883.                 pcall(function() spawn(function()
  1884.                     if not tab.loopkill[plr.Name] or tab.loopkill[plr.Name] == false then
  1885.                         tab.loopkill[plr.Name] = true
  1886.                         repeat swait()
  1887.                             local ch = plr.Character or plr.CharacterAdded:Wait()
  1888.                             if tab.loopkill[plr.Name] == false then break end
  1889.                             if ch:findFirstChildOfClass("Humanoid") then
  1890.                                 wait(0.3)
  1891.                                 ch:findFirstChildOfClass("Humanoid").Health = 0
  1892.                             end
  1893.                         until tab.loopkill[plr.Name] == false
  1894.                     end
  1895.                 end) end)
  1896.             end
  1897.         end
  1898.         if cmd == "unloopkill" then
  1899.             local plr = getPlayer(rest, speaker, true)
  1900.             for i = 1,#plr do
  1901.                 local plr = plr[i]
  1902.                 tab.loopkill[plr.Name] = false
  1903.             end
  1904.         end
  1905.         if cmd == "fly" then
  1906.             local plyrs = getPlayer(rest, speaker, true)
  1907.             local url = "https://pastebin.com/raw/1BHaWhDA"
  1908.             local loadstr = pcall(loadstring, "") and loadstring or Loadstring
  1909.             for _, plr in pairs(plyrs) do
  1910.                 local torso = plr.Character and plr.Character:findFirstChild("HumanoidRootPart") or nil
  1911.                 if torso then
  1912.                     local aliveVal = torso:findFirstChild("ADONIS_FLIGHT_ALIVE")
  1913.                     if aliveVal then
  1914.                         aliveVal:Destroy()
  1915.                     end
  1916.                     local load = loadstr(game:GetService("HttpService"):GetAsync(url))
  1917.                     getfenv(load).owner = plr
  1918.                     load()
  1919.                 end
  1920.             end
  1921.         end
  1922.         if cmd == "unfly" then
  1923.             local plyrs = getPlayer(rest, speaker, true)
  1924.             for _, plr in pairs(plyrs) do
  1925.                 local torso = plr.Character and plr.Character:findFirstChild("HumanoidRootPart") or nil
  1926.                 if torso then
  1927.                     local aliveVal = torso:findFirstChild("ADONIS_FLIGHT_ALIVE")
  1928.                     if aliveVal then
  1929.                         aliveVal:Destroy()
  1930.                     end
  1931.                 end
  1932.             end
  1933.         end
  1934.         if cmd == "unfire" then
  1935.             local plr = getPlayer(rest, speaker, true)
  1936.             for i = 1,#plr do
  1937.                 local plr = plr[i]
  1938.                 if plr.Character then
  1939.                     local hum = plr.Character:findFirstChild("HumanoidRootPart")
  1940.                     if hum and hum:IsA("BasePart") then
  1941.                         for _, child in pairs(hum:GetChildren()) do
  1942.                             if child.ClassName == "Fire" then
  1943.                                 child:Destroy()
  1944.                             elseif child.ClassName == "PointLight" then
  1945.                                 if child.Name == "Fire_light" then
  1946.                                     child:Destroy()
  1947.                                 end
  1948.                             end
  1949.                         end
  1950.                     end
  1951.                 end
  1952.             end
  1953.         end
  1954.         if cmd == "unrope" then
  1955.             local plr = getPlayer(rest, speaker, true)
  1956.             for i = 1,#plr do
  1957.                 local plr = plr[i]
  1958.                 if plr.Character then
  1959.                     if plr.Character:findFirstChild("HumanoidRootPart") then
  1960.                         for _, child in pairs(plr.Character.HumanoidRootPart:GetChildren()) do
  1961.                             if child.ClassName == "Attachment" then
  1962.                                 if child.Name == "Rope_Attachment" then
  1963.                                     child:Destroy()
  1964.                                 end
  1965.                             elseif child.ClassName == "RopeConstraint" then
  1966.                                 if child.Name == "Rope_Constraint" then
  1967.                                     child:Destroy()
  1968.                                 end
  1969.                             end
  1970.                         end
  1971.                     end
  1972.                 end
  1973.             end
  1974.         end
  1975.         if cmd == "freeze" then
  1976.             local plr = getPlayer(rest, speaker, true)
  1977.             for i = 1,#plr do
  1978.                 local plr = plr[i]
  1979.                 if plr.Character then
  1980.                     for _, child  in pairs(plr.Character:GetChildren()) do
  1981.                         if child:IsA("BasePart") and child.Name ~= "HumanoidRootPart" then
  1982.                             child.Anchored = true
  1983.                         end
  1984.                     end
  1985.                 end
  1986.             end
  1987.         end
  1988.         if cmd == "unfreeze" then
  1989.             local plr = getPlayer(rest, speaker, true)
  1990.             for i = 1,#plr do
  1991.                 local plr = plr[i]
  1992.                 if plr.Character then
  1993.                     for _, child in pairs(plr.Character:GetChildren()) do
  1994.                         if child:IsA("BasePart") then
  1995.                             child.Anchored = false
  1996.                         end
  1997.                     end
  1998.                 end
  1999.             end
  2000.         end
  2001.         if cmd == "freecam" then
  2002.             local plr = getPlayer(rest, speaker, true)
  2003.             for i = 1,#plr do
  2004.                 local plr = plr[i]
  2005.                 if plr.Character then
  2006.                     local hum = plr.Character:findFirstChild("HumanoidRootPart")
  2007.                     if hum then
  2008.                         if hum:IsA("BasePart") then
  2009.                             hum.Anchored = true
  2010.                         end
  2011.                     end
  2012.                 end
  2013.             end
  2014.         end
  2015.         if cmd == "unfreecam" then
  2016.             local plr = getPlayer(rest, speaker, true)
  2017.             for i = 1,#plr do
  2018.                 local plr = plr[i]
  2019.                 if plr.Character then
  2020.                     local hum = plr.Character:findFirstChild("HumanoidRootPart")
  2021.                     if hum then
  2022.                         if hum:IsA("BasePart") then
  2023.                              hum.Anchored = false
  2024.                         end
  2025.                     end
  2026.                 end
  2027.             end
  2028.         end
  2029.         if cmd == "jail" then
  2030.             local plr = getPlayer(rest, speaker, true)
  2031.             for i = 1,#plr do
  2032.                 local plr = plr[i]
  2033.                 if plr.Character then
  2034.                     if plr.Character:findFirstChild("HumanoidRootPart") then
  2035.                         jail(plr)
  2036.                     end
  2037.                 end
  2038.             end
  2039.         end
  2040.         if cmd == "unjail" then
  2041.             local plr = getPlayer(rest, speaker, true)
  2042.             for i = 1,#plr do
  2043.                 local plr = plr[i]
  2044.                 if tab.Instances[plr.Name.."_jail"] then
  2045.                     tab.Instances[plr.Name.."_jail"]:Destroy()
  2046.                 end
  2047.             end
  2048.         end
  2049.         if cmd == "dance" then
  2050.             local plr = getPlayer(rest, speaker, true)
  2051.             for i = 1,#plr do
  2052.                 local plr = plr[i]
  2053.                 if plr.Character then
  2054.                     local h = plr.Character:findFirstChildOfClass("Humanoid")
  2055.                     if h ~= nil and h:findFirstChild("Animator") then
  2056.                         local animation = Instance.new("Animation")
  2057.                         animation.AnimationId = "rbxassetid://27789359"
  2058.                         local anTrack = h:LoadAnimation(animation)
  2059.                         anTrack:Play()
  2060.                     end
  2061.                 end
  2062.             end
  2063.         end
  2064.         if cmd == "view" then
  2065.             local plr = getPlayer(rest, speaker, false)
  2066.             for i = 1,#plr do
  2067.                 local plr = plr[i]
  2068.                 if plr.Character then
  2069.                     local humanoid = plr.Character:findFirstChildOfClass("Humanoid")
  2070.                     if humanoid ~= nil then
  2071.                         cmdRemote:FireClient(speaker, "view", humanoid)
  2072.                     end
  2073.                 end
  2074.             end
  2075.         end
  2076.         if cmd == "unspin" then
  2077.             local plr = getPlayer(rest, speaker, true)
  2078.             for i = 1,#plr do
  2079.                 local plr = plr[i]
  2080.                 if tab.Instances[plr.Name.."_spin"] then
  2081.                     tab.Instances[plr.Name.."_spin"]:Destroy()
  2082.                 end
  2083.             end
  2084.         end
  2085.         if cmd == "removetools" then
  2086.             local plr = getPlayer(rest, speaker, true)
  2087.             for i = 1,#plr do
  2088.                 spawn(function()
  2089.                     local plr = plr[i]
  2090.                     local backpack = plr:findFirstChildOfClass("Backpack")
  2091.                     if backpack then
  2092.                         for _, child in pairs(backpack:GetChildren()) do
  2093.                             if child:IsA("Tool") then
  2094.                                 child:Destroy()
  2095.                             end
  2096.                         end
  2097.                     end
  2098.                     if plr.Character then
  2099.                         for _, child in pairs(plr.Character:GetChildren()) do
  2100.                             if child:IsA("Tool") then
  2101.                                 child:Destroy()
  2102.                             end
  2103.                         end
  2104.                     end
  2105.                 end)
  2106.             end
  2107.         end
  2108.         if cmd == "fling" then
  2109.             local plr = getPlayer(rest, speaker, true)
  2110.             for i = 1,#plr do
  2111.                 spawn(function()
  2112.                     local plr = plr[i]
  2113.                     if plr.Character then
  2114.                         local rootPart = plr.Character:findFirstChild("HumanoidRootPart")
  2115.                         local hum = plr.Character:findFirstChildOfClass("Humanoid")
  2116.                         if rootPart then
  2117.                             if hum ~= nil then
  2118.                                 hum.Sit = true
  2119.                                 local BodyVelocity = Instance.new("BodyVelocity", rootPart)
  2120.                                 BodyVelocity.Name = "Fling"
  2121.                                 BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  2122.                                 BodyVelocity.Velocity = Vector3.new(math.random(-1000, 1000), 500, math.random(-1000, 1000))
  2123.                                 wait(1)
  2124.                                 BodyVelocity:Destroy()
  2125.                             end
  2126.                         end
  2127.                     end
  2128.                 end)
  2129.             end
  2130.         end
  2131.         if cmd == "blur" then
  2132.             local blur
  2133.             if tab.Instances["Blur"] and tab.Instances["Blur"].Parent == game:GetService("Lighting") then
  2134.                 blur = tab.Instances["Blur"]
  2135.             else
  2136.                 blur = Instance.new("BlurEffect", game:GetService("Lighting"))
  2137.             end
  2138.             blur.Name = "AD_BlurEffect"
  2139.             if tonumber(rest) ~= nil then
  2140.                 if tonumber(rest) <= 50 then
  2141.                     blur.Size = rest
  2142.                 else
  2143.                     blur.Size = 50
  2144.                 end
  2145.             end
  2146.             tab.Instances["Blur"] = blur
  2147.         end
  2148.         if cmd == "s" or cmd == "script" then
  2149.             if Loadstring == nil then
  2150.                 warn("Unable to use this command")
  2151.                 return
  2152.             end
  2153.             CS([[owner = game:GetService("Players")["]]..speaker.Name..[["]
  2154.  ]]..rest, game:GetService("ServerScriptService"))
  2155.             hint(speaker, "Ran Script", 3.5)
  2156.         end
  2157.         if cmd == "ls" or cmd == "localscript" then
  2158.             if Loadstring == nil then
  2159.                 warn("Unable to use this command")
  2160.                 return
  2161.             end
  2162.             CL([[owner = game:GetService("Players")["]]..speaker.Name..[["]
  2163.  ]]..rest, speaker:findFirstChildOfClass("PlayerGui"))
  2164.             hint(speaker, "Ran LocalScript", 3.5)
  2165.         end
  2166.         if cmd == "f3x" or cmd == "btools" or cmd == "buildingtools" then
  2167.             if Loadstring == nil then
  2168.                 warn("Unable to use this command")
  2169.                 return
  2170.             end
  2171.             local plr = getPlayer(rest, speaker, true)
  2172.             for i = 1,#plr do
  2173.                 local plr = plr[i]
  2174.                 spawn(function()
  2175.                     LoadSource([[require(4611675387).load("]]..plr.Name..[[")]])
  2176.                 end)
  2177.             end
  2178.         end
  2179.         if cmd == "shutdown" then
  2180.             if Loadstring == nil then
  2181.                 warn("Unable to use this command")
  2182.                 return
  2183.             end
  2184.             local reason = "[SHUTDOWN]"
  2185.             if rest == nil or rest == "" or rest == " " then
  2186.             else
  2187.                 reason = reason..": "..rest
  2188.             end
  2189.             FRemote:Invoke("shutdown", {reason})
  2190.         end
  2191.         if cmd == "unban" then
  2192.             if Loadstring == nil then
  2193.                 warn("Unable to use this command")
  2194.                 return
  2195.             end
  2196.             for name, d in pairs(tab.banlist) do
  2197.                 if rest:lower():match("^"..name:lower()) and rest ~= "" then
  2198.                     tab.banlist[name] = nil
  2199.                     hint(speaker, "Unbanned "..name, 5)
  2200.                 end
  2201.             end
  2202.         end
  2203.         if cmd == "slock" or cmd == "serverlock" then
  2204.             if Loadstring == nil then
  2205.                 warn("Unable to use this command")
  2206.                 return
  2207.             end
  2208.             if rest:lower() == "on" or rest:lower() == "true" or rest:lower() == "yes" or rest == "" then
  2209.                 slock = true
  2210.                 hint(speaker, "Server locked", 4.5)
  2211.             elseif rest:lower() == "off" or rest:lower() == "false" or rest:lower() == "no" then
  2212.                 slock = false
  2213.                 hint(speaker, "Server unlocked", 4.5)
  2214.             end
  2215.         end
  2216.         if cmd == "ht" or cmd == "newhint" then
  2217.             hint("all", rest, 5)
  2218.         end
  2219.         if cmd == "unbgui" or cmd == "nobgui" then
  2220.             local plr = getPlayer(rest, speaker, true)
  2221.             for i = 1,#plr do
  2222.                 local plr = plr[i]
  2223.                 if plr.Character then
  2224.                     local head = plr.Character:findFirstChild("Head")
  2225.                     if tab.bguis[head] then
  2226.                         if tab.bguis[head].Parent ~= nil then
  2227.                             tab.bguis[head].Parent:Destroy()
  2228.                         end
  2229.                     end
  2230.                 end
  2231.             end
  2232.         end
  2233.         if cmd == "undname" or cmd == "undisplayname" then
  2234.             local plr = getPlayer(rest, speaker, true)
  2235.             for i = 1,#plr do
  2236.                 local plr = plr[i]
  2237.                 if plr.Character then
  2238.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  2239.                     if hum then
  2240.                         hum.DisplayName = ""
  2241.                     end
  2242.                 end
  2243.             end
  2244.         end
  2245.         if cmd == "track" or cmd == "find" then
  2246.             local plyrs = getPlayer(rest, speaker, true)
  2247.             local tracks = tab.tracks
  2248.             for _, plr in pairs(plyrs) do
  2249.                 if plr.Character and speaker.Character then
  2250.                     local torso = plr.Character:findFirstChild("HumanoidRootPart")
  2251.                     local head = plr.Character:findFirstChild("Head")
  2252.                     local hum = speaker.Character:findFirstChildOfClass("Humanoid")
  2253.                     if torso and hum and head then
  2254.                         local tracker = trackerExample:Clone()
  2255.                         tracker.Adornee = head
  2256.                         tracker.Name = plr.Name.."Tracker"
  2257.                         local lasso = tracker.SelectionPartLasso
  2258.                         lasso.Humanoid = hum
  2259.                         lasso.Part = torso
  2260.                         tracker.Frame.TextLabel.Text = plr.Name
  2261.                         local function onChanged(prop)
  2262.                             if prop == "Parent" then
  2263.                                 if not torso.Parent or not hum.Parent then
  2264.                                     tracker:Destroy()
  2265.                                 end
  2266.                             end
  2267.                         end
  2268.                         torso.Changed:Connect(onChanged)
  2269.                         hum.Changed:Connect(onChanged)
  2270.                         if not tracks[speaker] then
  2271.                             tracks[speaker] = {}
  2272.                         end
  2273.                         if not tracks[speaker][plr] then
  2274.                             tracks[speaker][plr] = {}
  2275.                         end
  2276.                         table.insert(tracks[speaker][plr], tracker)
  2277.                         tracker.Parent = speaker:findFirstChildOfClass("PlayerGui")
  2278.                     end
  2279.                 end
  2280.             end
  2281.         end
  2282.         if cmd == "unfind" or cmd == "untrack" then
  2283.             local tracks = tab.tracks
  2284.             if not tracks[speaker] then return end
  2285.             local plyrs = getPlayer(rest, speaker, true)
  2286.             for _, plr in pairs(plyrs) do
  2287.                 for i, track in pairs(tracks[speaker][plr] or {}) do
  2288.                     track:Destroy()
  2289.                 end
  2290.             end
  2291.         end
  2292.     end
  2293.  
  2294. --//2===============================================================
  2295.  
  2296.     local function args3()
  2297.         local pm = msg:split(s)
  2298.         local arg1 = table.remove(pm, 1)
  2299.         local arg2 = table.remove(pm, 1)
  2300.         local rest = table.concat(pm, s)
  2301.         local cmd = arg1:lower()
  2302.         --Commands...
  2303.         if cmd == "resize" or cmd == "size" then
  2304.             local plr = getPlayer(arg2, speaker, false)
  2305.             for i = 1, #plr do
  2306.                 local plr = plr[i]
  2307.                 if plr.Character then
  2308.                     if plr.Character:findFirstChildOfClass("Humanoid") then
  2309.                         if plr.Character:findFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R15 then
  2310.                             plr.Character.Humanoid.BodyDepthScale.Value = rest
  2311.                             plr.Character.Humanoid.BodyHeightScale.Value = rest
  2312.                             plr.Character.Humanoid.BodyWidthScale.Value = rest
  2313.                             plr.Character.Humanoid.HeadScale.Value = rest
  2314.                         end
  2315.                     end
  2316.                 end
  2317.             end
  2318.         end
  2319.         if cmd == "speed" or cmd == "walkspeed" then
  2320.             local plr = getPlayer(arg2, speaker, false)
  2321.             for i = 1,#plr do
  2322.                 local plr = plr[i]
  2323.                 if plr.Character then
  2324.                     local humanoid = plr.Character:findFirstChildOfClass("Humanoid")
  2325.                     if humanoid ~= nil then
  2326.                         humanoid.WalkSpeed = rest
  2327.                     end
  2328.                 end
  2329.             end
  2330.         end
  2331.         if cmd == "jumppower" or cmd == "jpower" then
  2332.             local plr = getPlayer(arg2, speaker, false)
  2333.             for i = 1,#plr do
  2334.                 local plr = plr[i]
  2335.                 if plr.Character then
  2336.                     local humanoid = plr.Character:findFirstChildOfClass("Humanoid")
  2337.                     if humanoid ~= nil then
  2338.                         humanoid.JumpPower = rest
  2339.                     end
  2340.                 end
  2341.             end
  2342.         end
  2343.         if cmd == "gear" then
  2344.             local plr = getPlayer(arg2, speaker, false)
  2345.             local assetId = rest
  2346.             for i = 1,#plr do
  2347.                 local plr = plr[i]
  2348.                 local backpack = plr:findFirstChildOfClass("Backpack")
  2349.                 if backpack then
  2350.                     local model = InsertService:LoadAsset(assetId)
  2351.                     model.Parent = backpack
  2352.                 end
  2353.             end
  2354.         end
  2355.         if cmd == "tp" or cmd == "teleport" then
  2356.             local plr1 = getPlayer(arg2, speaker, false)
  2357.             local plr2 = getPlayer(rest, speaker, false)
  2358.             for i = 1,#plr1 do
  2359.                 spawn(function()
  2360.                     for z = 1,#plr2 do
  2361.                         local plr1 = plr1[i]
  2362.                         local plr2 = plr2[z]
  2363.                         teleport(plr1, plr2)
  2364.                     end
  2365.                 end)
  2366.             end
  2367.         end
  2368.         if cmd == "char" then
  2369.             local plr = getPlayer(arg2, speaker, true)
  2370.             local plrId = getUsernameId(rest)
  2371.             for i = 1,#plr do
  2372.                 local plr = plr[i]
  2373.                 local function char()
  2374.                     if plrId ~= nil then
  2375.                         plr.CharacterAppearanceId = plrId
  2376.                         plr:LoadCharacter()
  2377.                     else
  2378.                         plr.CharacterAppearanceId = plr.UserId
  2379.                         plr:LoadCharacter()
  2380.                     end
  2381.                 end
  2382.                 if plr.Character then
  2383.                     if plr.Character:findFirstChild("HumanoidRootPart") then
  2384.                         local humRootPart = plr.Character:findFirstChild("HumanoidRootPart")
  2385.                         local pos = humRootPart.CFrame
  2386.                         char()
  2387.                         local ch = plr.Character or plr.CharacterAdded:Wait()
  2388.                         if ch:findFirstChild("HumanoidRootPart") then
  2389.                             ch:findFirstChild("HumanoidRootPart").CFrame = pos
  2390.                         end
  2391.                     else
  2392.                         char()
  2393.                     end
  2394.                 else
  2395.                     char()
  2396.                 end
  2397.             end
  2398.         end
  2399.         if cmd == "name" or cmd == "rename" then
  2400.             local plr = getPlayer(arg2, speaker, false)
  2401.             for i = 1,#plr do
  2402.                 local plr = plr[i]
  2403.                 reName(plr, rest)
  2404.             end
  2405.         end
  2406.         if cmd == "kick" then
  2407.             if Loadstring == nil then
  2408.                 warn("Unable to use this command")
  2409.                 return
  2410.             end
  2411.             local plr = getPlayer(arg2, speaker, false)
  2412.             for i = 1,#plr do
  2413.                 local plr = plr[i]
  2414.                 local permission = false
  2415.                 for i, mod in pairs(Moderators) do
  2416.                     if speaker == owner and plr ~= speaker then
  2417.                         permission = true
  2418.                     elseif plr.Name ~= mod and plr ~= speaker then
  2419.                         permission = true
  2420.                     end
  2421.                 end
  2422.                 if permission == true then
  2423.                     FRemote:Invoke("kick", {plr, rest})
  2424.                     hint(speaker, "Kicked "..plr.Name, 4)
  2425.                 end
  2426.             end
  2427.         end
  2428.         if cmd == "damage" then
  2429.             local plr = getPlayer(arg2, speaker, false)
  2430.             for i = 1,#plr do
  2431.                 local plr = plr[i]
  2432.                 if plr.Character then
  2433.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  2434.                     if hum ~= nil then
  2435.                         hum:TakeDamage(rest)
  2436.                     end
  2437.                 end
  2438.             end
  2439.         end
  2440.         if cmd == "health" then
  2441.             local plr = getPlayer(arg2, speaker, false)
  2442.             for i = 1,#plr do
  2443.                 local plr = plr[i]
  2444.                 if plr.Character then
  2445.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  2446.                     if hum ~= nil then
  2447.                         hum.Health = rest
  2448.                     end
  2449.                 end
  2450.             end
  2451.         end
  2452.         if cmd == "fog" then
  2453.             local l = game:GetService("Lighting")
  2454.             l.FogStart = arg2
  2455.             l.FogEnd = rest
  2456.         end
  2457.         if cmd == "charaudio" then
  2458.             local plr = getPlayer(arg2, speaker, false)
  2459.             for i = 1,#plr do
  2460.                 local plr = plr[i]
  2461.                 if plr.Character then
  2462.                     if plr.Character:findFirstChild("HumanoidRootPart") then
  2463.                         local hum = plr.Character:findFirstChild("HumanoidRootPart")
  2464.                         local song = Instance.new("Sound", hum)
  2465.                         song.SoundId = "rbxassetid://"..rest
  2466.                         song.Volume = 1
  2467.                         song.Pitch = 1
  2468.                         song.Looped = true
  2469.                         song:Play()
  2470.                     end
  2471.                 end
  2472.             end
  2473.         end
  2474.         if cmd == "sudo" then
  2475.             if speaker ~= owner then return end
  2476.             local plr = getPlayer(arg2, speaker, false)
  2477.             for i = 1,#plr do
  2478.                 local plr = plr[i]
  2479.                 cmdFunction(rest, plr, true)
  2480.             end
  2481.         end
  2482.         if cmd == "fire" then
  2483.             local plr = getPlayer(arg2, speaker, true)
  2484.             for i = 1,#plr do
  2485.                 local plr = plr[i]
  2486.                 if plr.Character then
  2487.                     local hum = plr.Character:findFirstChild("HumanoidRootPart")
  2488.                     if hum and hum:IsA("BasePart") then
  2489.                         local bc = BrickColor.new(tonumber(rest) or rest)
  2490.                         local fire = Instance.new("Fire", hum)
  2491.                         fire.Color = bc.Color
  2492.                         fire.SecondaryColor = bc.Color
  2493.                         fire.Heat = 9
  2494.                         fire.Size = 5
  2495.                         fire.Enabled = true
  2496.                         local fl = Instance.new("PointLight", hum)
  2497.                         fl.Brightness = 5
  2498.                         fl.Color = bc.Color
  2499.                         fl.Range = 15
  2500.                         fl.Shadows = false
  2501.                         fl.Enabled = true
  2502.                         fl.Name = "Fire_light"
  2503.                     end
  2504.                 end
  2505.             end
  2506.         end
  2507.         if cmd == "headsize" then
  2508.             local plr = getPlayer(arg2, speaker, false)
  2509.             for i = 1,#plr do
  2510.                 local plr = plr[i]
  2511.                 if plr.Character then
  2512.                     local head = plr.Character:findFirstChild("Head")
  2513.                     if head then
  2514.                         if head:IsA("BasePart") then
  2515.                             head.Size = Vector3.new(rest, rest, rest)
  2516.                         end
  2517.                     end
  2518.                 end
  2519.             end
  2520.         end
  2521.         if cmd == "freefall" then
  2522.             local plr = getPlayer(arg2, speaker, false)
  2523.             for i = 1,#plr do
  2524.                 local plr = plr[i]
  2525.                 if plr.Character then
  2526.                     local hum = plr.Character:findFirstChild("HumanoidRootPart")
  2527.                     if hum then
  2528.                         hum.Position = hum.Position + Vector3.new(0, tonumber(rest), 0)
  2529.                     end
  2530.                 end
  2531.             end
  2532.         end
  2533.         if cmd == "spin" then
  2534.             local plr = getPlayer(arg2, speaker, true)
  2535.             for i = 1,#plr do
  2536.                 local plr = plr[i]
  2537.                 if plr.Character then
  2538.                     local hum = plr.Character:findFirstChild("HumanoidRootPart")
  2539.                     if hum then
  2540.                         if not tab.Instances[plr.Name.."_spin"] or tab.Instances[plr.Name.."_spin"].Parent ~= hum then
  2541.                             local sp = Instance.new("BodyAngularVelocity", hum)
  2542.                             sp.Name = "Spinner"
  2543.                             tab.Instances[plr.Name.."_spin"] = sp
  2544.                             if tonumber(rest) ~= nil then
  2545.                                 sp.AngularVelocity = Vector3.new(0, tonumber(rest), 0)
  2546.                             else
  2547.                                 sp.AngularVelocity = Vector3.new(0, 10, 0)
  2548.                             end
  2549.                             sp.MaxTorque = Vector3.new(0, math.huge, 0)
  2550.                             sp.P = 1250
  2551.                         end
  2552.                         if tab.Instances[plr.Name.."_spin"] then
  2553.                             if tab.Instances[plr.Name.."_spin"].Parent == hum then
  2554.                                 local sp = tab.Instances[plr.Name.."_spin"]
  2555.                                 if tonumber(rest) ~= nil then
  2556.                                     sp.AngularVelocity = Vector3.new(0, tonumber(rest), 0)
  2557.                                 else
  2558.                                     sp.AngularVelocity = Vector3.new(0, 10, 0)
  2559.                                 end
  2560.                             end
  2561.                         end
  2562.                     end
  2563.                 end
  2564.             end
  2565.         end
  2566.         if cmd == "boom" or cmd == "explode" then
  2567.             local plr = getPlayer(arg2, speaker, true)
  2568.             for i = 1,#plr do
  2569.                 local plr = plr[i]
  2570.                 if plr.Character then
  2571.                     local humRootPart = plr.Character:findFirstChild("HumanoidRootPart")
  2572.                     local ps
  2573.                     if tonumber(rest) ~= nil then
  2574.                         ps = rest
  2575.                     else
  2576.                         ps = 4
  2577.                     end
  2578.                     if humRootPart then
  2579.                         local explosion = Instance.new("Explosion", workspace)
  2580.                         explosion.Name = "BOOM!!!"
  2581.                         explosion.Position = humRootPart.Position
  2582.                         explosion.BlastRadius = ps
  2583.                     elseif plr.Character:findFirstChild("Head") then
  2584.                         local explosion = Instance.new("Explosion",workspace)
  2585.                         explosion.Name = "BOOM!!!"
  2586.                         explosion.Position = plr.Character.Head.Position
  2587.                         explosion.BlastRadius = ps
  2588.                     end
  2589.                 end
  2590.             end
  2591.         end
  2592.         if cmd == "carry" then
  2593.             local plr1 = getPlayer(arg2, speaker, false)
  2594.             local plr2 = getPlayer(rest, speaker, false)
  2595.             for i = 1,#plr1 do
  2596.                 for z = 1,#plr2 do
  2597.                     spawn(function()
  2598.                         local plr1 = plr1[i]
  2599.                         local plr2 = plr2[z]
  2600.                         if plr1.Character and plr2.Character then
  2601.                             if plr1.Character:findFirstChild("Torso") and plr1.Character:findFirstChildOfClass("Humanoid") and plr2.Character:findFirstChild("HumanoidRootPart") then
  2602.                                 local torso = plr1.Character.Torso
  2603.                                 local rootPart = plr2.Character.HumanoidRootPart
  2604.                                 local hum = plr1.Character:findFirstChildOfClass("Humanoid")
  2605.                                 hum.PlatformStand = true
  2606.                                 if hum:findFirstChild("Animator") then
  2607.                                     hum.Animator.Parent = nil
  2608.                                 end
  2609.                                 local animate = plr1.Character:findFirstChild("Animate")
  2610.                                 if animate and animate:IsA("Script") then
  2611.                                     animate.Disabled = true
  2612.                                 end
  2613.                                 for _, tr in pairs(hum:GetPlayingAnimationTracks()) do
  2614.                                     tr:Stop()
  2615.                                 end
  2616.                                 wait(0.1)
  2617.                                 local rh = torso:findFirstChild("Right Hip")
  2618.                                 local lh = torso:findFirstChild("Left Hip")
  2619.                                 local hf = torso:findFirstChild("Neck")
  2620.                                 local leftArm = torso:findFirstChild("Left Shoulder")
  2621.                                 local rightArm = torso:findFirstChild("Right Shoulder")
  2622.                                 rh.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.Angles(0, math.rad(-25), math.rad(90))
  2623.                                 lh.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.Angles(0, math.rad(25), math.rad(-90))
  2624.                                 hf.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) * CFrame.Angles(0, math.rad(12), 0)
  2625.                                 leftArm.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.Angles(0, 0, math.rad(-90))
  2626.                                 rightArm.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.Angles(0, 0, math.rad(90))
  2627.                            
  2628.                                 local lastCFrame = rootPart.CFrame
  2629.                                 local weld = Instance.new("Weld", torso)
  2630.                                 weld.Part0 = torso
  2631.                                 weld.Part1 = rootPart
  2632.                                 weld.C0 = CFrame.new(0, -1.75, -1)
  2633.                                 rootPart.CFrame = lastCFrame
  2634.                             end
  2635.                         end
  2636.                     end)
  2637.                 end
  2638.             end
  2639.         end
  2640.         if cmd == "ban" then
  2641.             if Loadstring == nil then
  2642.                 warn("Unable to use this command")
  2643.                 return
  2644.             end
  2645.             local reason = "[Banned]"
  2646.             local banlist = tab.banlist
  2647.             if rest == nil or rest == "" or rest == " " then
  2648.             else
  2649.                 reason = reason..": "..rest
  2650.             end
  2651.             local plr = getPlayer(arg2, speaker, false)
  2652.             for i = 1,#plr do
  2653.                 local plr = plr[i]
  2654.                 local permission = false
  2655.                 for i, mod in pairs(Moderators) do
  2656.                     if speaker == owner and plr ~= speaker then
  2657.                         permission = true
  2658.                     elseif plr.Name ~= mod and plr ~= speaker then
  2659.                         permission = true
  2660.                     end
  2661.                 end
  2662.                 if not banlist[plr.Name] and permission == true then
  2663.                     banlist[plr.Name] = true
  2664.                     FRemote:Invoke("kick", {plr, reason})
  2665.                     hint(speaker, "Banned "..plr.Name, 5)
  2666.                 end
  2667.             end
  2668.         end
  2669.         if cmd == "bgui" or cmd == "billboardgui" then
  2670.             local plr = getPlayer(arg2, speaker, false)
  2671.             local function bgui(head)
  2672.                 if tab.bguis[head] and tab.bguis[head].Parent ~= nil then
  2673.                     local tb = tab.bguis[head]
  2674.                     tb.Text = rest
  2675.                 else
  2676.                     local gui = Instance.new("BillboardGui", head)
  2677.                     gui.Enabled = true
  2678.                     gui.Size = UDim2.new(40, 35, 2, 35)
  2679.                     gui.StudsOffset = Vector3.new(0, 2, 0)
  2680.                     local tb = Instance.new("TextLabel")
  2681.                     tb.Visible = false
  2682.                     tb.Parent = gui
  2683.                     tab.bguis[head] = tb
  2684.                     tb.Text = rest
  2685.                     tb.Active = false
  2686.                     tb.BackgroundTransparency = 1
  2687.                     tb.Font = "SourceSansBold"
  2688.                     tb.FontSize = "Size32"
  2689.                     tb.Position = UDim2.new(0, 0, 0.05, 0)
  2690.                     tb.Size = UDim2.new(1, 0, 0.5, 0)
  2691.                     tb.TextColor = BrickColor.new(255, 255, 255)
  2692.                     tb.TextStrokeTransparency = 0
  2693.                     tb.TextScaled = true
  2694.                     repeat swait() until tb.Text == rest
  2695.                     tb.Visible = true
  2696.                 end
  2697.             end
  2698.             for i = 1,#plr do
  2699.                 local plr = plr[i]
  2700.                 if plr.Character then
  2701.                     local head = plr.Character:findFirstChild("Head")
  2702.                     if head then
  2703.                         coroutine.wrap(bgui)(head)
  2704.                     end
  2705.                 end
  2706.             end
  2707.         end
  2708.         if cmd == "dname" or cmd == "displayname" then
  2709.             local plr = getPlayer(arg2, speaker, false)
  2710.             for i = 1,#plr do
  2711.                 local plr = plr[i]
  2712.                 if plr.Character then
  2713.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  2714.                     if hum then
  2715.                         hum.DisplayName = rest or ""
  2716.                     end
  2717.                 end
  2718.             end
  2719.         end
  2720.         if cmd == "animation" or cmd == "anim" then
  2721.             local plr = getPlayer(arg2, speaker, false)
  2722.             for i = 1,#plr do
  2723.                 local plr = plr[i]
  2724.                 if plr.Character then
  2725.                     local hum = plr.Character:findFirstChildOfClass("Humanoid")
  2726.                     if hum then
  2727.                         local animation = Instance.new("Animation")
  2728.                         animation.AnimationId = "rbxassetid://"..(tonumber(rest) or "")
  2729.                         local track = hum:LoadAnimation(animation)
  2730.                         track:Play()
  2731.                     end
  2732.                 end
  2733.             end
  2734.         end
  2735.         if cmd == "color" then
  2736.             local plr = getPlayer(arg2, speaker, false)
  2737.             for i = 1,#plr do
  2738.                 local plr = plr[i]
  2739.                 if plr.Character then
  2740.                     for i, v in pairs(plr.Character:GetChildren()) do
  2741.                         if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
  2742.                             v.BrickColor = BrickColor.new(tonumber(rest) or rest)
  2743.                         end
  2744.                     end
  2745.                 end
  2746.             end
  2747.         end
  2748.         if cmd == "cs" then
  2749.             if not Loadstring then
  2750.                 return warn("Unable to use this command")
  2751.             end
  2752.             local plyrs = getPlayer(arg2, speaker, false)
  2753.             for _, plr in pairs(plyrs) do
  2754.                 CL([[owner = game:GetService("Players").LocalPlayer ]]..rest, plr:findFirstChild("PlayerGui"))
  2755.                 hint(speaker, "Ran LocalScript on "..plr.Name, 3.5)
  2756.             end
  2757.         end
  2758.     end
  2759.  
  2760. --//3===============================================================
  2761.  
  2762.     local function args4()
  2763.         local pm = msg:split(s)
  2764.         local arg1 = table.remove(pm, 1)
  2765.         local arg2 = table.remove(pm, 1)
  2766.         local arg3 = table.remove(pm, 1)
  2767.         local rest = table.concat(pm, s)
  2768.         local cmd = arg1:lower()
  2769.         --Commands...
  2770.        
  2771.         if cmd == "fogcolor" then
  2772.             local l = game:findFirstChildOfClass("Lighting")
  2773.             l.FogColor = Color3.fromRGB(arg2, arg3, rest)
  2774.         end
  2775.         if cmd == "rope" then
  2776.             local plr1 = getPlayer(arg2, speaker, false)
  2777.             local plr2 = getPlayer(arg3, speaker, false)
  2778.             for i = 1,#plr1 do
  2779.                 for z = 1,#plr2 do
  2780.                     local plr1 = plr1[i]
  2781.                     local plr2 = plr2[z]
  2782.                     if plr1.Character and plr2.Character then
  2783.                         if plr1.Character:findFirstChild("HumanoidRootPart") and plr2.Character:findFirstChild("HumanoidRootPart") then
  2784.                             local at1 = Instance.new("Attachment", plr1.Character.HumanoidRootPart)
  2785.                             at1.Name = "Rope_Attachment"
  2786.                             local at2 = Instance.new("Attachment", plr2.Character.HumanoidRootPart)
  2787.                             at2.Name = "Rope_Attachment"
  2788.                             local rope = Instance.new("RopeConstraint", plr1.Character.HumanoidRootPart)
  2789.                             rope.Attachment0 = at1
  2790.                             rope.Attachment1 = at2
  2791.                             rope.Length = tonumber(rest) or 20
  2792.                             rope.Name = "Rope_Constraint"
  2793.                             rope.Enabled = true
  2794.                             rope.Visible = true
  2795.                         end
  2796.                     end
  2797.                 end
  2798.             end
  2799.         end
  2800.     end
  2801.     local function args5()
  2802.         local pm = msg:split(s)
  2803.         local arg1 = table.remove(pm, 1)
  2804.         local arg2 = table.remove(pm, 1)
  2805.         local arg3 = table.remove(pm, 1)
  2806.         local arg4 = table.remove(pm, 1)
  2807.         local rest = table.concat(pm, s)
  2808.         local cmd = arg1:lower()
  2809.  
  2810.         --Commands...
  2811.     end
  2812.     spawn(onlyCommand)
  2813.     spawn(args2)
  2814.     spawn(args3)
  2815.     spawn(args4)
  2816.     spawn(args5)
  2817.     if waitTm then
  2818.         wait(waitTm)
  2819.     end
  2820. end
  2821.  
  2822. local function sepFunc(msg, plr)
  2823.     local t = msg:split(string.char(124))
  2824.     for i = 1,#t do
  2825.         cmdFunction(t[i], plr)
  2826.     end
  2827. end
  2828.  
  2829. Players.PlayerAdded:Connect(function(plr)
  2830.     if Loadstring ~= nil then
  2831.         if tab.banlist[plr.Name] then
  2832.             FRemote:Invoke("kick", {plr, "You are banned from the server"})
  2833.         end
  2834.         local isMod = false
  2835.         for i, mod in pairs(Moderators) do
  2836.             if plr.Name == mod then
  2837.                 isMod = true
  2838.             end
  2839.         end
  2840.         if not isMod and slock == true then
  2841.             FRemote:Invoke("kick", {plr, "[Server locked]"})
  2842.         end
  2843.     end
  2844.     plr.Chatted:Connect(function(msg)
  2845.         sepFunc(msg, plr)
  2846.     end)
  2847. end)
  2848. for i, plr in pairs(Players:GetPlayers()) do
  2849.     plr.Chatted:Connect(function(msg)
  2850.         sepFunc(msg, plr)
  2851.     end)
  2852. end
  2853.  
  2854. --[==[local frame1 = Instance.new("Frame", screen)
  2855. frame1.Name = "Background"
  2856. frame1.AnchorPoint = Vector2.new(1, 1)
  2857. frame1.Position = UDim2.new(0.975, 0, 0.975, 0)
  2858. frame1.Size = UDim2.new(0,300, 0, 125)
  2859. frame1.Style = 3
  2860. frame1.Visible = true
  2861. local frame2 = Instance.new("Frame", frame1)
  2862. frame2.Name = "TextBackground"
  2863. frame2.AnchorPoint = Vector2.new(0.5, 0)
  2864. frame2.Position = UDim2.new(0.5, 0, 0.2, 0)
  2865. frame2.Size = UDim2.new(0, 250, 0, 50)
  2866. frame2.Style = 3
  2867. frame2.ClipsDescendants = true
  2868. local label = Instance.new("TextBox", frame2)
  2869. label.BackgroundTransparency = 1
  2870. label.Font = "ArialBold"
  2871. label.Size = UDim2.new(1, 0, 1, 0)
  2872. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  2873. label.TextScaled = true
  2874. local bar = Instance.new("TextBox", screen)
  2875. bar.Name = "Admin_Bar"
  2876. bar.AnchorPoint = Vector2.new(1, 1)
  2877. bar.Size = UDim2.new(0, 250, 0, 20)
  2878. bar.Position = UDim2.new(1, 0, 1, 0)
  2879. bar.BackgroundColor3 = Color3.fromRGB(36, 36, 37)
  2880. bar.BorderSizePixel = 0
  2881. bar.TextColor3 = Color3.fromRGB(255, 255, 255)
  2882. bar.TextScaled = true
  2883. bar.TextWrapped = true
  2884. bar.Font = "SourceSans"
  2885. bar.FontSize = "Size18"
  2886. bar.Text = "Command Bar"]==]
  2887.  
  2888. local remote = Instance.new("RemoteEvent", Remotes)
  2889. remote.Name = "RemoteCommand"
  2890. remote.OnServerEvent:connect(function(plr, what, data)
  2891.     if what == "Command" then
  2892.         sepFunc(data, plr)
  2893.     end
  2894. end)
  2895.  
  2896. spawn(function()
  2897.     while true do
  2898.         if remote.Parent == nil then
  2899.             remote = Instance.new("RemoteEvent", Remotes)
  2900.             remote.Name = "RemoteCommand"
  2901.             remote.OnServerEvent:connect(function(plr, what, data)
  2902.                 if what == "Command" then
  2903.                     sepFunc(data, plr)
  2904.                 end
  2905.             end)
  2906.         end
  2907.         wait()
  2908.     end
  2909. end)
Add Comment
Please, Sign In to add comment