Leodu41

azdazd

Oct 14th, 2019
283
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4.     print("FE Compatibility code by Mokiros")
  5.     script.Parent = Player.Character
  6.  
  7.     --RemoteEvent for communicating
  8.     local Event = Instance.new("RemoteEvent")
  9.     Event.Name = "UserInput_Event"
  10.  
  11.     --Fake event to make stuff like Mouse.KeyDown work
  12.     local function fakeEvent()
  13.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14.         t.connect = t.Connect
  15.         return t
  16.     end
  17.  
  18.     --Creating fake input objects with fake variables
  19.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23.     end}
  24.     --Merged 2 functions into one by checking amount of arguments
  25.     CAS.UnbindAction = CAS.BindAction
  26.  
  27.     --This function will trigger the events that have been :Connect()'ed
  28.     local function te(self,ev,...)
  29.         local t = m[ev]
  30.         if t and t._fakeEvent and t.Function then
  31.             t.Function(...)
  32.         end
  33.     end
  34.     m.TrigEvent = te
  35.     UIS.TrigEvent = te
  36.  
  37.     Event.OnServerEvent:Connect(function(plr,io)
  38.         if plr~=Player then return end
  39.         if io.isMouse then
  40.             m.Target = io.Target
  41.             m.Hit = io.Hit
  42.         else
  43.             local b = io.UserInputState == Enum.UserInputState.Begin
  44.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46.             end
  47.             for _,t in pairs(CAS.Actions) do
  48.                 for _,k in pairs(t.Keys) do
  49.                     if k==io.KeyCode then
  50.                         t.Function(t.Name,io.UserInputState,io)
  51.                     end
  52.                 end
  53.             end
  54.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56.         end
  57.     end)
  58.     Event.Parent = NLS([==[
  59.     local Player = game:GetService("Players").LocalPlayer
  60.     local Event = script:WaitForChild("UserInput_Event")
  61.  
  62.     local UIS = game:GetService("UserInputService")
  63.     local input = function(io,a)
  64.         if a then return end
  65.         --Since InputObject is a client-side instance, we create and pass table instead
  66.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67.     end
  68.     UIS.InputBegan:Connect(input)
  69.     UIS.InputEnded:Connect(input)
  70.  
  71.     local Mouse = Player:GetMouse()
  72.     local h,t
  73.     --Give the server mouse data 30 times every second, but only if the values changed
  74.     --If player is not moving their mouse, client won't fire events
  75.     while wait(1/30) do
  76.         if h~=Mouse.Hit or t~=Mouse.Target then
  77.             h,t=Mouse.Hit,Mouse.Target
  78.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  79.         end
  80.     end]==],Player.Character)
  81.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. ---------------------------------------------------------------
  84. ---------------------------------------------------------------
  85. --  _____       __ _       _ _        __   ___      _     _  --
  86. -- |_   _|     / _(_)     (_) |       \ \ / (_)    | |   | | --
  87. --   | | _ __ | |_ _ _ __  _| |_ ___   \ V / _  ___| | __| | --
  88. --   | || '_ \|  _| | '_ \| | __/ _ \   \ / | |/ _ \ |/ _` | --
  89. --  _| || | | | | | | | | | | ||  __/   | | | |  __/ | (_| | --
  90. --  \___/_| |_|_| |_|_| |_|_|\__\___|   \_/ |_|\___|_|\__,_| --
  91. --                                                           --
  92. ---------------------------------------------------------------
  93. ---------------------------Edge-Moon---------------------------
  94. ---------------------------------------------------------------
  95.  
  96. local Version = '9.5.3'
  97. HttpService = game:GetService("HttpService")
  98. SAVEFILE = {
  99.     colorR = 0.121569;
  100.     colorG = 0.121569;
  101.     colorB = 0.121569;
  102.     cmdprefix = ';';
  103.     suggestionstoggle = true;
  104.     allowfriends = true;
  105.     JLnotify = true;
  106.     Mseconds = '7';
  107.     Nfriends = true;
  108.     cmdbarbind = ';';
  109.     chatsV = false;
  110.     whispersV = false;
  111.     commandsV = false;
  112.     aliasSave = {}
  113. }
  114. defaults = HttpService:JSONEncode(SAVEFILE)
  115.  
  116. function writefileExploit() if is_protosmasher_caller ~= nil or elysianexecute ~= nil or Synapse ~= nil then return true end end
  117.  
  118. loaded = false
  119. function run()
  120. local function writeF()
  121. writefile("IY.txt", defaults)
  122. wait(1)
  123. local newjson = readfile("IY.txt")
  124. local CREATEFILE = HttpService:JSONDecode(newjson)
  125. colorR = CREATEFILE.colorR
  126. colorG = CREATEFILE.colorG
  127. colorB = CREATEFILE.colorB
  128. cmdprefix = CREATEFILE.cmdprefix
  129. suggestionstoggle = CREATEFILE.suggestionstoggle
  130. allowfriends = CREATEFILE.allowfriends
  131. JLnotify = CREATEFILE.JLnotify
  132. Mseconds = CREATEFILE.Mseconds
  133. Nfriends = CREATEFILE.Nfriends
  134. cmdbarbind = CREATEFILE.cmdbarbind
  135. chatsV = CREATEFILE.chatsV
  136. whispersV = CREATEFILE.whispersV
  137. commandsV = CREATEFILE.commandsV
  138. aliasSave = CREATEFILE.aliasSave
  139. loaded = true end
  140. function pcWRITE()
  141. local file, err = pcall(writeF)
  142. if not file then
  143. warn("READ/WRITE ERROR: "..err)
  144. R_W = game:GetObjects("rbxassetid://01587976911")[1] R_W.Parent = game.CoreGui
  145. function Click(mouse) R_W:Destroy()
  146. for _, child in pairs(game.CoreGui:GetChildren()) do
  147. if child.Name == "IYrun" then
  148. child:Destroy() end end end
  149. R_W.drag.PromptDialog.shadow.Exit.MouseButton1Down:connect(Click) end end
  150. if writefileExploit() then
  151. local function sfile()
  152. local checktxt = readfile("IY.txt")
  153. if checktxt == nil then pcWRITE() writeF()
  154. else return end end
  155. local success, message2 = pcall(sfile)
  156. if success then
  157. local json = readfile("IY.txt")
  158. local LOADFILE = HttpService:JSONDecode(json)
  159. colorR = LOADFILE.colorR
  160. colorG = LOADFILE.colorG
  161. colorB = LOADFILE.colorB
  162. cmdprefix = LOADFILE.cmdprefix
  163. suggestionstoggle = LOADFILE.suggestionstoggle
  164. allowfriends = LOADFILE.allowfriends
  165. JLnotify = LOADFILE.JLnotify
  166. Mseconds = LOADFILE.Mseconds
  167. Nfriends = LOADFILE.Nfriends
  168. cmdbarbind = LOADFILE.cmdbarbind
  169. chatsV = LOADFILE.chatsV
  170. whispersV = LOADFILE.whispersV
  171. commandsV = LOADFILE.commandsV
  172. aliasSave = LOADFILE.aliasSave
  173. loaded = true else
  174. pcWRITE() writeF() end
  175. else
  176.     colorR = 0.121569
  177.     colorG = 0.121569
  178.     colorB = 0.121569
  179.     cmdprefix = ';'
  180.     suggestionstoggle = true
  181.     allowfriends = true
  182.     JLnotify = true
  183.     Mseconds = '7'
  184.     Nfriends = true
  185.     cmdbarbind = ';'
  186.     chatsV = false
  187.     whispersV = false
  188.     commandsV = false
  189.     aliasSave = {}
  190.     loaded = true
  191. end
  192. repeat wait() until loaded == true
  193. local gCoreGui = game:GetService('CoreGui') local gPlayers = game:GetService('Players') local gLighting = game:GetService('Lighting') local Player = gPlayers.LocalPlayer
  194. local Mouse = Player:GetMouse() local char = Player.Character local LP = gPlayers.LocalPlayer local gPlayers = game:GetService("Players") local _players = game:GetService('Players') MSGhook = false local services={} local cmds={}
  195. local std={} local loopkillT = {} local rainbowT = {} local disabletoolsT = {} local banT = {} local adminT = {} function FIND_CHILD(PATH, NAME) if PATH:FindFirstChild(NAME) then return true end return false end
  196. services.events = {} local user = gPlayers.LocalPlayer local bringT = {} agelock = nil isagelocked = false local scriptprefix='\\'
  197. local split=" " slock = false
  198. function updatefile()
  199. if writefileExploit() then
  200. local update = {
  201.     colorR = colorR;
  202.     colorG = colorG;
  203.     colorB = colorB;
  204.     cmdprefix = cmdprefix;
  205.     suggestionstoggle = suggestionstoggle;
  206.     allowfriends = allowfriends;
  207.     JLnotify = JLnotify;
  208.     Mseconds = Mseconds;
  209.     Nfriends = Nfriends;
  210.     cmdbarbind = cmdbarbind;
  211.     chatsV = chatsV;
  212.     whispersV = whispersV;
  213.     commandsV = commandsV;
  214.     aliasSave = aliasSave
  215. }
  216. local updated = HttpService:JSONEncode(update)
  217. wait(0.1)
  218. writefile("IY.txt", updated) end end
  219. function isNumber(str)
  220. return tonumber(str) ~= nil end
  221. function msghook()
  222. for _, child in pairs( workspace:GetChildren()) do
  223. if MSGhook == false and child.ClassName == "Message" and child.Name ~= "IYmessage" then
  224. child.Name = "IYmessage" child.Text = '' MSGhook = true end end
  225. if workspace:FindFirstChild("IYmessage") then MSGhook = true
  226. else MSGhook = false end end
  227. game:GetService("RunService").RenderStepped:Connect(function()
  228. game:GetService("GuiService"):SetGlobalGuiInset(0,72,0,0)
  229. if r15noclip then
  230. if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(11) end end
  231. if LP.Character and LP.Character:FindFirstChild('Humanoid') then
  232.     LP.Character.Humanoid.Died:connect(function() FLYING = false end)
  233. if MSGhook == true and workspace:FindFirstChild("IYmessage") then
  234.     if workspace.IYmessage.Text == '' then
  235.     for _, child in pairs( LightingService:GetChildren()) do
  236.         if child.Name == "IYmblur" then
  237.         child:Destroy() end end end
  238.     else MSGhook = false end
  239.     for i,v in pairs(_players:GetPlayers()) do
  240.         if FindTable(loopkillT, v.Name) then
  241.         v.Character:BreakJoints() end
  242.         if FindTable(disabletoolsT, v.Name) and v:FindFirstChild('Backpack') then
  243.         v.Backpack:Destroy()
  244.         for i,n in pairs(v.Character:GetChildren()) do
  245.             if n:IsA('Tool') or n:IsA('HopperBin') then
  246.                 n:destroy() end end end
  247.         if FindTable(rainbowT, v.Name) then
  248.             v.Neutral = false
  249.             v.TeamColor = BrickColor.random()
  250. end end end end)
  251. LightingService = game:GetService("Lighting")
  252. origsettings = {abt = LightingService.Ambient, oabt = LightingService.OutdoorAmbient, brt = LightingService.Brightness, time =
  253. LightingService.TimeOfDay, fclr = LightingService.FogColor, fe = LightingService.FogEnd, fs = LightingService.FogStart}
  254. function lponly(player) game:GetService('Chat'):Chat(player.Character, 'That is a LocalPlayer only command!', 2) end
  255. function FindTable(Table, Name)
  256.     for i,v in pairs(Table) do
  257.         if v == Name then
  258.             return true
  259.         end end
  260.     return false
  261. end
  262. function GetInTable(Table, Name)
  263.     for i = 1, #Table do
  264.         if Table[i] == Name then
  265.             return i
  266.         end end
  267. return false end
  268. _players.PlayerRemoving:connect(function(player)
  269. for a,b in pairs(injail) do if b == player.Name then table.remove(injail, a) workspace["JAIL_" .. player.Name]:Destroy() end end
  270. for a,b in pairs(hastab) do if b == player.Name then table.remove(hastab, a) workspace[player.Name .. "TAB"]:Destroy() end end
  271. if JLnotify == true and Nfriends == true and player:IsFriendsWith(user.userId) then
  272.             game:FindService('StarterGui'):SetCore('SendNotification', {
  273.                 Title = player.Name,
  274.                 Text = 'has left the server.\n[AGE: ' ..player.AccountAge.. ']',
  275.                 Icon = [[http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userName=]]..player.Name..[[&RAND]] .. math.random(1,100000000),
  276.                 Duration = 5,
  277.             })
  278. elseif JLnotify == true and Nfriends == false then
  279.             game:FindService('StarterGui'):SetCore('SendNotification', {
  280.                 Title = player.Name,
  281.                 Text = 'has left the server.\n[AGE: ' ..player.AccountAge.. ']',
  282.                 Icon = [[http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userName=]]..player.Name..[[&RAND]] .. math.random(1,100000000),
  283.                 Duration = 5,
  284.             })
  285. end
  286. end)       
  287. FLYING = false
  288. iyflyspeed = 1
  289. function sFLY() -- from rocky2u cmdscript
  290.     repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('HumanoidRootPart') and LP.Character:FindFirstChild('Humanoid')
  291.     repeat wait() until Mouse
  292.    
  293.     local T = LP.Character.HumanoidRootPart
  294.     local CONTROL = {F = 0, B = 0, L = 0, R = 0}
  295.     local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  296.     local SPEED = 0
  297.    
  298.     local function FLY()
  299.         FLYING = true
  300.         local BG = Instance.new('BodyGyro', T)
  301.         local BV = Instance.new('BodyVelocity', T)
  302.         BG.P = 9e4
  303.         BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  304.         BG.cframe = T.CFrame
  305.         BV.velocity = Vector3.new(0, 0.1, 0)
  306.         BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  307.         spawn(function()
  308.         repeat wait()
  309.         LP.Character.Humanoid.PlatformStand = true
  310.         if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
  311.         SPEED = 50
  312.         elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
  313.         SPEED = 0
  314.         end
  315. if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
  316. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  317. lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  318. elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
  319. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  320. else
  321. BV.velocity = Vector3.new(0, 0.1, 0)
  322. end
  323.     BG.cframe = workspace.CurrentCamera.CoordinateFrame
  324.             until not FLYING
  325.             CONTROL = {F = 0, B = 0, L = 0, R = 0}
  326.             lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  327.             SPEED = 0
  328.             BG:destroy()
  329.             BV:destroy()
  330.             LP.Character.Humanoid.PlatformStand = false
  331.         end)
  332.     end
  333.     Mouse.KeyDown:connect(function(KEY)
  334.         if KEY:lower() == 'w' then
  335.             CONTROL.F = iyflyspeed
  336.         elseif KEY:lower() == 's' then
  337.             CONTROL.B = -iyflyspeed
  338.         elseif KEY:lower() == 'a' then
  339.             CONTROL.L = -iyflyspeed
  340.         elseif KEY:lower() == 'd' then
  341.             CONTROL.R = iyflyspeed
  342.         end
  343.     end)
  344.     Mouse.KeyUp:connect(function(KEY)
  345.         if KEY:lower() == 'w' then
  346.             CONTROL.F = 0
  347.         elseif KEY:lower() == 's' then
  348.             CONTROL.B = 0
  349.         elseif KEY:lower() == 'a' then
  350.             CONTROL.L = 0
  351.         elseif KEY:lower() == 'd' then
  352.             CONTROL.R = 0
  353.         end
  354.     end)
  355.     FLY()
  356. end
  357. function NOFLY()
  358.     FLYING = false
  359.     LP.Character.Humanoid.PlatformStand = false
  360. end
  361. HK = {
  362.     '-HOTKEYS-',
  363.     'HOLD F2 - Click TP',
  364.     'F4 - Toggle Fly',
  365.     'F5 - Toggle Noclip',
  366.     '-COMMANDS-'
  367. }
  368. CMDs = {
  369.     'addalias [cmd] [alias]',
  370.     'addstat [plr] [text]',
  371.     'admins',
  372.     'admin [plr]',
  373.     'agelock [age num]',
  374.     'addban [full username]',
  375.     'age [plr]',
  376.     'aliases',
  377.     'alien / ayylmao [plr]',
  378.     'ambient [R G B]',
  379.     'anchor',
  380.     'animation [plr] [anim]',
  381.     'arrest [plr]',
  382.     'bait',
  383.     'ball [plr]',
  384.     'bang [plr] [plr] / bang [plr]',
  385.     'bans',
  386.     'ban [plr]',
  387.     'base',
  388.     'begone / thot [plr]',
  389.     'bgui [plr] [text]',
  390.     'blackandwhite',
  391.     'bleach [plr]',
  392.     'blackify [plr]',
  393.     'blind [plr]',
  394.     'blur [num]',
  395.     'bomb [plr]',
  396.     'box [plr]',
  397.     'breakloops/break (cmd loops)',
  398.     'brightness [num]',
  399.     'bring [plr]',
  400.     'btools [plr]',
  401.     'burn [plr]',
  402.     'cape [plr] [R G B]',
  403.     'car [plr]',
  404.     'change [plr] [stat] [num]',
  405.     'charplr / cp [plr] [plr]',
  406.     'char [plr] [ID]',
  407.     'chat [plr] [msg]',
  408.     'chickenarms / chicken [plr]',
  409.     'clear',
  410.     'clip',
  411.     'clone [plr]',
  412.     'clraliases',
  413.     'clrbans',
  414.     'clrterrain',
  415.     'cmds',
  416.     'confuse [plr]',
  417.     'control [plr]',
  418.     'copytools / ctools [plr]',
  419.     'countdown [num]',
  420.     'crash [plr]',
  421.     'creeper [plr]',
  422.     'cripple [plr]',
  423.     'crucify [plr]',
  424.     'damage [plr]',
  425.     'dance [plr]',
  426.     'day',
  427.     'decalspam [ID]',
  428.     'deleteclass / dc [class name]',
  429.     'deletepos / dpos [name]',
  430.     'delete [part name]',
  431.     'devuzi',
  432.     'disablereset [plr]',
  433.     'disabletools [plr]',
  434.     'disable [plr]',
  435.     'disco',
  436.     'discomesh [plr]',
  437.     'distortsound / distort [num]',
  438.     'dog [plr]',
  439.     'dong [plr]',
  440.     'draw',
  441.     'duck [plr]',
  442.     'dummy [name]',
  443.     'earthquake [power] [intensity]',
  444.     'enablereset [plr]',
  445.     'enabletools [plr]',
  446.     'enable [plr]',
  447.     'esp [plr]',
  448.     'exit',
  449.     'explode [plr]',
  450.     'explorer / dex',
  451.     'f3x',
  452.     'face [plr] [ID]',
  453.     'fart [plr]',
  454.     'fat [plr]',
  455.     'fegod',
  456.     'feinvisible / feinvis',
  457.     'fekill [plr] (need a tool)',
  458.     'ff [plr]',
  459.     'filtering',
  460.     'fire [plr] [R G B]',
  461.     'firstp [plr]',
  462.     'fix',
  463.     'fixcam',
  464.     'fixlighting / fixl',
  465.     'flashlight [plr]',
  466.     'fling [plr]',
  467.     'float [plr]',
  468.     'flood',
  469.     'fly',
  470.     'flyspeed [num]',
  471.     'fogcolor [R G B]',
  472.     'fogend [num]',
  473.     'freecam / fc',
  474.     'freecamspeed / fcspeed [num]',
  475.     'freeze / fr [plr]',
  476.     'ghost [plr]',
  477.     'glass [plr]',
  478.     'globalshadows / gshadows',
  479.     'glowstick [plr] [R G B]',
  480.     'god [plr]',
  481.     'goto [plr]',
  482.     'gravity [num]',
  483.     'hang [plr]',
  484.     'hatsize [plr] [num]',
  485.     'hat [plr] [ID]',
  486.     'headshake [plr]',
  487.     'headsize [plr] [num]',
  488.     'heal [plr]',
  489.     'hidename [plr]',
  490.     'hideplaylist / hideplayer',
  491.     'hipheight / hheight [plr] [num]',
  492.     'hub',
  493.     'infect [plr]',
  494.     'insert [ID/name]',
  495.     'invert',
  496.     'invisible / invis [plr]',
  497.     'invisibleff / invisff [plr]',
  498.     'iyspam',
  499.     'jail [plr]',
  500.     'jumppower / jpower [plr] [num]',
  501.     'jump [plr]',
  502.     'keeptools / ktools [plr]',
  503.     'keybind [key] [cmd]',
  504.     'kick [plr]',
  505.     'kidnap [plr]',
  506.     'kill [plr]',
  507.     'knife',
  508.     'knuckles [plr]',
  509.     'light [plr] [R G B]',
  510.     'loadm',
  511.     'loadmap [ID]',
  512.     'loadpos / lpos [plr] [name]',
  513.     'lockws',
  514.     'lock [plr]',
  515.     'logs',
  516.     'longneck [plr]',
  517.     'loopbring [plr]',
  518.     'loopheal [plr]',
  519.     'loopjump / ljump [plr]',
  520.     'loopkill [plr]',
  521.     'loopname / lname [plr]',
  522.     'loopoof',
  523.     'loopsit / lsit [plr]',
  524.     'mage',
  525.     'maxhealth [plr] [num]',
  526.     'maxzoom [plr] [num]',
  527.     'mesh [plr] [mesh] [texture]',
  528.     'message / m [msg]',
  529.     'meteor/asteroid [plr]',
  530.     'naked [plr]',
  531.     'name [plr]',
  532.     'neon [plr]',
  533.     'nextsong',
  534.     'night',
  535.     'nil [plr]',
  536.     'noarms [plr]',
  537.     'nobox [plr]',
  538.     'noclip',
  539.     'noclones [plr]',
  540.     'nodong [plr]',
  541.     'nodummies',
  542.     'noesp [plr]',
  543.     'noglobalshadows / nogshadows',
  544.     'nokeeptools / noktools [plr]',
  545.     'nolimbs [plr]',
  546.     'nooutlines',
  547.     'noparticles [plr]',
  548.     'noplrsound [plr]',
  549.     'norain',
  550.     'notools [plr]',
  551.     'nuke [plr]',
  552.     'os [plr]',
  553.     'offset [plr] [coordinate]',
  554.     'outlines',
  555.     'paper [plr]',
  556.     'partdisco',
  557.     'particles [plr] [ID]',
  558.     'pipetp [plr] [plr]',
  559.     'pitch [num]',
  560.     'playhash / hash [hash]',
  561.     'playlist / player [ID],[ID]...',
  562.     'plrsound [plr] [ID]',
  563.     'positions / pos',
  564.     'prefix [string]',
  565.     'prevsong',
  566.     'punish [plr]',
  567.     'rainbowname [plr]',
  568.     'rainbow [plr]',
  569.     'rain [mesh] [texture]',
  570.     'refresh / re [plr]',
  571.     'rejoin',
  572.     'remotespy',
  573.     'removealias [alias]',
  574.     'removebait / nobait',
  575.     'rgui',
  576.     'removehats / rhats [plr]',
  577.     'removespawns',
  578.     'respawn [plr]',
  579.     'restoremap / rmap',
  580.     'rocket [plr]',
  581.     'savelighting / slighting',
  582.     'savemap / smap',
  583.     'savepos / spos [name]',
  584.     'script [script]',
  585.     'seagull / gull [plr]',
  586.     'seizure [plr]',
  587.     'serverinfo / info',
  588.     'serverlock / slock',
  589.     'servermessage / sm [msg]',
  590.     'sethealth [plr] [num]',
  591.     'setsong [num]',
  592.     'settings',
  593.     'sgod [plr]',
  594.     'shiny [plr]',
  595.     'shrek [plr]',
  596.     'shutdown',
  597.     'sit [plr]',
  598.     'size [plr] [num]',
  599.     'skydive [plr]',
  600.     'skygif [ID],[ID]... [interval]',
  601.     'sky [ID]',
  602.     'smite [plr]',
  603.     'smoke [plr]',
  604.     'sound / music [ID/name]',
  605.     'sparkles / sp [plr] [R G B]',
  606.     'spasm [plr]',
  607.     'spawnpoint [plr]',
  608.     'spectate / view [plr]',
  609.     'speed / ws [plr] [num]',
  610.     'sphere [plr]',
  611.     'spin [plr]',
  612.     'spookyify',
  613.     'starman [plr]',
  614.     'strength [plr]',
  615.     'strobe',
  616.     'stun [plr]',
  617.     'sun [intense] [spread]',
  618.     'sword [plr]',
  619.     'tablet',
  620.     'team [plr] [team]',
  621.     'terrain',
  622.     'thaw / unfr [plr]',
  623.     'thirdp [plr]',
  624.     'time [num]',
  625.     'tools [plr]',
  626.     'torso [plr]',
  627.     'tppos [plr] [coordinate]',
  628.     'tp [plr] [plr]',
  629.     'trail [plr] [R G B]',
  630.     'trip [plr]',
  631.     'unadmin [plr]',
  632.     'unagelock',
  633.     'unanchor',
  634.     'unball [plr]',
  635.     'unban [plr]',
  636.     'unbgui [plr]',
  637.     'unblind [plr]',
  638.     'unblur',
  639.     'uncape [plr]',
  640.     'uncar [plr]',
  641.     'unchar [plr]',
  642.     'unconfuse [plr]',
  643.     'uncreeper [plr]',
  644.     'uncripple [plr]',
  645.     'undecalspam',
  646.     'undisco',
  647.     'undog [plr]',
  648.     'unduck [plr]',
  649.     'unff [plr]',
  650.     'unfire [plr]',
  651.     'unfloat [plr]',
  652.     'unfly',
  653.     'unfreecam / unfc',
  654.     'unghost [plr]',
  655.     'ungod [plr]',
  656.     'unhidename [plr]',
  657.     'uninfect [plr]',
  658.     'unjail [plr]',
  659.     'unkeybind [key]',
  660.     'unlight [plr]',
  661.     'unlockws',
  662.     'unlock [plr]',
  663.     'unlongneck [plr]',
  664.     'unloopbring [plr]',
  665.     'unloopheal [plr]',
  666.     'unloopjump / unljump [plr]',
  667.     'unloopkill [plr]',
  668.     'unloopname / unlname [plr]',
  669.     'unloopoof',
  670.     'unloopsit / unlsit [plr]',
  671.     'unname [plr]',
  672.     'unpartdisco',
  673.     'unpunish [plr]',
  674.     'unrainbowname [plr]',
  675.     'unseizure [plr]',
  676.     'unserverlock / unslock',
  677.     'unshrek [plr]',
  678.     'unskygif',
  679.     'unsmoke [plr]',
  680.     'unsparkles / unsp [plr]',
  681.     'unspectate / unview',
  682.     'unsphere [plr]',
  683.     'unspin [plr]',
  684.     'unstarman [plr]',
  685.     'unstrength [plr]',
  686.     'unstrobe',
  687.     'unstun [plr]',
  688.     'untrail [plr]',
  689.     'unweaken [plr]',
  690.     'version',
  691.     'visible / vis [plr]',
  692.     'volume / vol [num]',
  693.     'weaken [plr]',
  694.     'whiteify [plr]',
  695.     'zinnia [plr]'
  696. }
  697. function updateevents(player) local C = player.Chatted:connect(function(M) if isAdmin(player) then do_exec(M, player) end end) table.insert(services.events, C) end
  698.  
  699. std.inTable=function(tbl,val)
  700.     if tbl==nil then return false end
  701.  
  702.     for _,v in pairs(tbl)do
  703.         if v==val then return true end
  704.     end
  705.     return false
  706. end
  707. std.out=function(str)
  708.     print(str)
  709. end
  710. std.list=function(tbl)
  711.     local str=''
  712.     for i,v in pairs(tbl)do
  713.         str=str..tostring(v)
  714.         if i~=#tbl then str=str..', ' end
  715.     end
  716.     return str
  717. end
  718. std.endat=function(str,val)
  719.     local z=str:find(val)
  720.     if z then
  721.         return str:sub(0,z-string.len(val)),true
  722.     else
  723.         return str,false
  724.     end
  725. end
  726. std.first=function(str) return str:sub(1,1) end
  727.  
  728. function isAdmin(name) if FindTable(adminT, name.userId) then return true elseif name.userId == LP.userId then return true end end
  729.  
  730. local exec=function(str)
  731.     spawn(function()
  732.         local script, loaderr = loadstring(str)
  733.         if not script then
  734.             error(loaderr)
  735.         else
  736.             script()
  737.         end
  738.     end)
  739. end
  740. local findCmd=function(cmd_name)
  741.     for i,v in pairs(cmds)do
  742.         if v.NAME:lower()==cmd_name:lower() or std.inTable(v.ALIAS,cmd_name:lower())then
  743.             return v
  744.         end
  745.     end
  746. end
  747. local getCmd=function(msg)
  748.     local cmd,hassplit=std.endat(msg:lower(),split)
  749.     if hassplit then
  750.         return {cmd,true}
  751.     else
  752.         return {cmd,false}
  753.     end
  754. end
  755. local getprfx=function(strn)
  756.     if strn:sub(1,string.len(cmdprefix))==cmdprefix then return{'cmd',string.len(cmdprefix)+1}
  757.     elseif strn:sub(1,string.len(scriptprefix))==scriptprefix then return{'exec',string.len(scriptprefix)+1}
  758.     end return
  759. end
  760. function dragGUI(gui)
  761. spawn(function()
  762. local UserInputService = game:GetService("UserInputService")
  763. local dragging
  764. local dragInput
  765. local dragStart
  766. local startPos
  767. local function update(input)
  768.     local delta = input.Position - dragStart
  769.     gui:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y), "InOut", "Quart", 0.04, true, nil)
  770. end
  771. gui.InputBegan:Connect(function(input)
  772.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  773.         dragging = true
  774.         dragStart = input.Position
  775.         startPos = gui.Position
  776.        
  777.         input.Changed:Connect(function()
  778.             if input.UserInputState == Enum.UserInputState.End then
  779.                 dragging = false
  780.             end
  781.         end)
  782.     end
  783. end)
  784. gui.InputChanged:Connect(function(input)
  785.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  786.         dragInput = input
  787.     end
  788. end)
  789. UserInputService.InputChanged:Connect(function(input)
  790.     if input == dragInput and dragging then
  791.         update(input)
  792.     end
  793. end)
  794. end)
  795. end
  796. maincolor = Color3.new(colorR, colorG, colorB)
  797. function updatecolors(color)
  798. colorR = maincolor.r colorG = maincolor.g colorB = maincolor.b
  799. maincolor = color
  800. for _, child in pairs( game.CoreGui.RobloxGui:GetChildren()) do
  801.     if child.Name == "TopBarContainer" then
  802.         child.BackgroundColor3 = color
  803.     end end
  804. FeedbackMain.BackgroundColor3 = maincolor
  805. MAIN.BackgroundColor3 = maincolor
  806. bar.BackgroundColor3 = maincolor
  807. game.CoreGui.sugg.suggestions.BackgroundColor3 = color
  808. if game.CoreGui:FindFirstChild('Updates') then
  809. game.CoreGui.Updates.drag.PromptDialog.ContainerFrame.BackgroundColor3 = color
  810. game.CoreGui.Updates.drag.PromptDialog.shadow.BackgroundColor3 = color end
  811. if game.CoreGui:FindFirstChild('Sinfo') then
  812. game.CoreGui.Sinfo.drag.PromptDialog.ContainerFrame.BackgroundColor3 = color
  813. game.CoreGui.Sinfo.drag.PromptDialog.shadow.BackgroundColor3 = color end
  814. if game.CoreGui:FindFirstChild('cp') then
  815. game.CoreGui.cp.Frame.holder.bar.BackgroundColor3 = color
  816. game.CoreGui.cp.Frame.holder.FeedbackMain.BackgroundColor3 = color
  817. game.CoreGui.cp.Frame.holder.size.MAIN.BackgroundColor3 = color end
  818. if game.CoreGui:FindFirstChild('Bans') then
  819. game.CoreGui.Bans.drag.PromptDialog.ContainerFrame.BackgroundColor3 = color
  820. game.CoreGui.Bans.drag.PromptDialog.shadow.BackgroundColor3 = color end
  821. if game.CoreGui:FindFirstChild('Pos') then
  822. game.CoreGui.Pos.drag.PromptDialog.ContainerFrame.BackgroundColor3 = color
  823. game.CoreGui.Pos.drag.PromptDialog.shadow.BackgroundColor3 = color end
  824. if game.CoreGui:FindFirstChild('Admins') then
  825. game.CoreGui.Admins.drag.PromptDialog.ContainerFrame.BackgroundColor3 = color
  826. game.CoreGui.Admins.drag.PromptDialog.shadow.BackgroundColor3 = color end
  827. if game.CoreGui:FindFirstChild('Logs') then
  828. game.CoreGui.Logs.drag.PromptDialog.ContainerFrame.BackgroundColor3 = color
  829. game.CoreGui.Logs.drag.PromptDialog.shadow.BackgroundColor3 = color end
  830. if game.CoreGui:FindFirstChild('Aliases') then
  831. game.CoreGui.Aliases.drag.PromptDialog.ContainerFrame.BackgroundColor3 = color
  832. game.CoreGui.Aliases.drag.PromptDialog.shadow.BackgroundColor3 = color end
  833. for _, child in pairs( game.CoreGui:GetChildren()) do
  834.     if child.Name == "Models" then
  835.         game.CoreGui.Models.drag.PromptDialog.ContainerFrame.BackgroundColor3 = color
  836.         game.CoreGui.Models.drag.PromptDialog.shadow.BackgroundColor3 = color
  837.     end
  838. end
  839. for _, child in pairs( game.CoreGui:GetChildren()) do
  840.     if child.Name == "Audios" then
  841.         game.CoreGui.Audios.drag.PromptDialog.ContainerFrame.BackgroundColor3 = color
  842.         game.CoreGui.Audios.drag.PromptDialog.shadow.BackgroundColor3 = color
  843.     end
  844. end
  845. end
  846.  
  847. function respawn(plr)
  848. local M = Instance.new('Model', workspace) M.Name = 'respawn_iy'
  849. local H = Instance.new('Humanoid', M)
  850. local T = Instance.new('Part', M) T.Name = 'Torso' T.CanCollide = false T.Transparency = 1
  851. plr.Character = M end
  852.  
  853. local dummy = game:GetService("InsertService"):LoadLocalAsset("rbxassetid://1498924930")
  854. WL = {'IoIman616','Conceptual_Nullifier','Thomasbudge','N3xuI','MoonlightTears','DesiredUsername1233','marie',LP.Name}
  855. function kickF(plr)
  856. spawn(function()
  857. if plr.Parent ~= nil then
  858. if FindTable(WL, plr.Name) then Notify('Error: '..plr.Name..' is whitelisted') else
  859. local newChar = dummy:Clone() newChar.Parent = workspace
  860. newChar.HumanoidRootPart.Position = Vector3.new(math.random(999000, 1001000), 10000, 0)
  861. for i = 1,4 do
  862. local Plat = Instance.new('SkateboardPlatform', newChar)
  863. Plat.Position = newChar.HumanoidRootPart.Position
  864. Plat.Name = 'IYplat'
  865. Plat.Size = Vector3.new(10, 1.2, 10)
  866. Plat.Transparency = 1 end
  867. plr.Character = newChar
  868. local PART = Instance.new('Part', newChar)
  869. PART.CFrame = newChar.HumanoidRootPart.CFrame - Vector3.new(0, 3, 0)
  870. PART.Size = Vector3.new(10, 1.2, 10)
  871. PART.Anchored = true
  872. PART.Transparency = 1
  873. if newChar:FindFirstChild("SkateboardPlatform") then
  874. newChar.SkateboardPlatform.CFrame = newChar.HumanoidRootPart.CFrame end
  875. wait(0.4)
  876. if newChar then newChar:Destroy() end
  877. kickF(plr) end
  878. end end) end
  879.  
  880. function refresh(plr)
  881. spawn(function()
  882. local rpos = plr.Character.HumanoidRootPart.Position
  883. wait(0.1) plr.Character:Destroy() respawn(plr) wait(0.1)
  884. repeat wait() until plr.Character ~= nil and plr.Character:FindFirstChild('HumanoidRootPart')
  885. plr.Character:MoveTo(rpos) end) end
  886.  
  887. function getArgs(str) local A = {} local NA = nil local HS = nil local S = str repeat NA, HS = std.endat(S:lower(), split) if NA ~= '' then table.insert(A, NA) S = S:sub(string.len(NA) + string.len(split) + 1) end until not HS return A end
  888. function getCapArgs(str) local A = {} local NA = nil local HS = nil local S = str repeat NA, HS = std.endat(S, split) if NA ~= '' then table.insert(A, NA) S = S:sub(string.len(NA) + string.len(split) + 1) end until not HS return A end
  889. _players.PlayerAdded:connect(function(player)
  890. if JLnotify == true and Nfriends == true and player:IsFriendsWith(user.userId) then
  891.             game:FindService('StarterGui'):SetCore('SendNotification', {
  892.                 Title = player.Name,
  893.                 Text = 'has joined the server.\n[AGE: ' ..player.AccountAge.. ']',
  894.                 Icon = [[http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userName=]]..player.Name..[[&RAND]] .. math.random(1,100000000),
  895.                 Duration = 5,
  896.             })
  897. elseif JLnotify == true and Nfriends == false then
  898.             game:FindService('StarterGui'):SetCore('SendNotification', {
  899.                 Title = player.Name,
  900.                 Text = 'has joined the server.\n[AGE: ' ..player.AccountAge.. ']',
  901.                 Icon = [[http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userName=]]..player.Name..[[&RAND]] .. math.random(1,100000000),
  902.                 Duration = 5,
  903.             })
  904. end
  905.     if slock == true and allowfriends == false then player.CharacterAdded:connect(function()
  906.     spawn(function()
  907. repeat wait() until player.Character
  908. kickF(player)
  909.     end)
  910.     end)
  911.     elseif slock == true and allowfriends == true and not player:IsFriendsWith(user.userId) then
  912.     spawn(function()
  913. repeat wait() until player.Character
  914. kickF(player)
  915.     end)
  916.     end
  917. if FindTable(banT, player.userId) then
  918.     spawn(function()
  919. repeat wait() until player.Character
  920. Notify('Banned player, ' .. player.Name .. ' attempted to join')
  921. kickF(player)
  922. end)
  923. end
  924. if isagelocked == true and allowfriends == false and player.AccountAge <= agelock then
  925.     spawn(function()
  926. repeat wait() until player.Character
  927. kickF(player)
  928. end)
  929. else
  930. if isagelocked == true and allowfriends == true and not player:IsFriendsWith(user.userId) and player.AccountAge <= agelock then
  931.     spawn(function()
  932. repeat wait() until player.Character
  933. kickF(player)
  934. end)
  935. end
  936. end
  937. end)
  938. local customAlias = {}
  939. local findCmd=function(cmd_name)
  940.     for i,v in pairs(cmds)do
  941.         if v.NAME:lower()==cmd_name:lower() or std.inTable(v.ALIAS,cmd_name:lower()) then
  942.             return v
  943.         end
  944.     end
  945.     return customAlias[cmd_name:lower()]
  946. end
  947. local function splitString(str,delim)
  948.     local broken = {}
  949.     if delim == nil then delim = "," end
  950.     for w in string.gmatch(str,"[^"..delim.."]+") do
  951.         table.insert(broken,w)
  952.     end
  953.     return broken
  954. end
  955. local historyCount = 0
  956. local cmdHistory = {}
  957. lastBreakTime = 0
  958. local function execCmd(cmdStr,speaker)
  959.     local rawCmdStr = cmdStr
  960.     cmdStr = string.gsub(cmdStr,"\\\\","%%BackSlash%%")
  961.     local commandsToRun = splitString(cmdStr,"\\")
  962.     for i,v in pairs(commandsToRun) do
  963.         v = string.gsub(v,"%%BackSlash%%","\\")
  964.         local x,y,num = v:find("^(%d+)%^")
  965.         local cmdDelay = 0
  966.         if num then
  967.             v = v:sub(y+1)
  968.             local x,y,del = v:find("^([%d%.]+)%^")
  969.             if del then
  970.                 v = v:sub(y+1)
  971.                 cmdDelay = tonumber(del) or 0
  972.             end
  973.         end
  974.         num = tonumber(num or 1)
  975.         local args = splitString(v,split)
  976.         local cmd = findCmd(args[1])
  977.         if cmd then
  978.             table.remove(args,1)
  979.             cargs = args
  980.             if speaker == gPlayers.LocalPlayer then
  981.                 if cmdHistory[1] ~= rawCmdStr then table.insert(cmdHistory,1,rawCmdStr) end
  982.             end
  983.             if #cmdHistory > 20 then table.remove(cmdHistory) end
  984.             local cmdStartTime = tick()
  985.             for rep = 1,num do
  986.                 if lastBreakTime > cmdStartTime then break end
  987.                 pcall(function()
  988.                     cmd.FUNC(args, speaker)
  989.                 end)
  990.                 if cmdDelay ~= 0 then wait(cmdDelay) end
  991.             end
  992.         end
  993.     end
  994. end
  995. logsloaded = false
  996. ChatLog = function(plr)
  997. plr.Chatted:Connect(function(Message)
  998. if logsloaded == true then
  999. if whispersV == true and Message:lower():sub(1,2) == '/w' then
  1000. CreateLabel(plr.Name,Message)
  1001. elseif commandsV == true and isAdmin(plr) and Message:lower():sub(1,1) == cmdprefix then
  1002. CreateLabel(plr.Name,Message)
  1003. elseif commandsV == true and isAdmin(plr) and Message:lower():sub(1,4) == '/e '..cmdprefix then
  1004. CreateLabel(plr.Name,Message)
  1005. elseif chatsV == true and Message:lower():sub(1,2) ~= '/e' and Message:lower():sub(1,2) ~= '/w' and Message:lower():sub(1,1) ~= cmdprefix then
  1006. CreateLabel(plr.Name,Message)
  1007. end end end) end
  1008. function do_exec(str, plr) if not isAdmin(plr) then return end str = str:gsub('/e ', '') local t = getprfx(str) if not t then return end str = str:sub(t[2]) if t[1]=='exec' then exec(str) elseif t[1]=='cmd' then execCmd(str, plr) end end
  1009. for _, plr in pairs(gPlayers:GetChildren()) do
  1010.     if plr.ClassName == "Player" then
  1011.         updateevents(plr) ChatLog(plr) end end
  1012. _players.PlayerAdded:connect(function(player)
  1013.     updateevents(player) ChatLog(player)
  1014. end)
  1015. _G.exec_cmd = execCmd
  1016. --gPlayers.LocalPlayer.Chatted:connect(doexec)
  1017. function GLS(lower, start) local AA = '' for i,v in pairs(cargs) do if i > start then if AA ~= '' then AA = AA .. ' ' .. v else AA = AA .. v end end end if not lower then return AA else return string.lower(AA) end end
  1018. local _char=function(plr_name)
  1019.     for i,v in pairs(gPlayers:GetChildren())do
  1020.         if v:IsA'Player'then
  1021.             if v.Name==plr_name then return v.Character end
  1022.         end
  1023.     end
  1024.     return
  1025. end
  1026. local _plr=function(plr_name)
  1027.     for i,v in pairs(gPlayers:GetChildren())do
  1028.         if v:IsA'Player'then
  1029.             if v.Name==plr_name then return v end
  1030.         end
  1031.     end
  1032.     return
  1033. end
  1034. function addcmd(name,desc,alias,func)
  1035.     cmds[#cmds+1]=
  1036.     {
  1037.         NAME=name;
  1038.         DESC=desc;
  1039.         ALIAS=alias;
  1040.         FUNC=func;
  1041.     }
  1042. end
  1043. SPC = {'all', 'others', 'random', 'allies', 'enemies', 'team', 'nonteam', 'friends', 'nonfriends', 'admins', 'nonadmins','bacons'}
  1044. local SpecialPlayerCases = {
  1045.     ["all"] = function(speaker)return game:GetService("Players"):GetPlayers() end,
  1046.     ["others"] = function(speaker)
  1047.         local plrs = {}
  1048.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1049.             if v ~= speaker then
  1050.                 table.insert(plrs,v)
  1051.             end
  1052.         end
  1053.         return plrs
  1054.      end,
  1055.     ["me"] = function(speaker)return {speaker} end,
  1056.     ["#(%d+)"] = function(speaker,args,currentList)
  1057.         local returns = {}
  1058.         local randAmount = tonumber(args[1])
  1059.         local players = {unpack(currentList)}
  1060.         for i = 1,randAmount do
  1061.             if #players == 0 then break end
  1062.             local randIndex = math.random(1,#players)
  1063.             table.insert(returns,players[randIndex])
  1064.             table.remove(players,randIndex)
  1065.         end
  1066.         return returns
  1067.     end,
  1068.     ["random"] = function(speaker,args,currentList)
  1069.         local players = currentList
  1070.         return {players[math.random(1,#players)]}
  1071.     end,
  1072.     ["%%(.+)"] = function(speaker,args) -- This is team Ex:[;kill %green]
  1073.         local returns = {}
  1074.         local team = args[1]
  1075.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1076.             if plr.Team and string.sub(string.lower(plr.Team.Name),1,#team) == string.lower(team) then
  1077.                 table.insert(returns,plr)
  1078.             end
  1079.         end
  1080.         return returns
  1081.     end,
  1082.     ["allies"] = function(speaker)
  1083.         local returns = {}
  1084.         local team = speaker.Team
  1085.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1086.             if plr.Team == team then
  1087.                 table.insert(returns,plr)
  1088.             end
  1089.         end
  1090.         return returns
  1091.     end,
  1092.     ["enemies"] = function(speaker)
  1093.         local returns = {}
  1094.         local team = speaker.Team
  1095.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1096.             if plr.Team ~= team then
  1097.                 table.insert(returns,plr)
  1098.             end
  1099.         end
  1100.         return returns
  1101.     end,
  1102.     ["team"] = function(speaker)
  1103.         local returns = {}
  1104.         local team = speaker.Team
  1105.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1106.             if plr.Team == team then
  1107.                 table.insert(returns,plr)
  1108.             end
  1109.         end
  1110.         return returns
  1111.     end,
  1112.     ["nonteam"] = function(speaker)
  1113.         local returns = {}
  1114.         local team = speaker.Team
  1115.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1116.             if plr.Team ~= team then
  1117.                 table.insert(returns,plr)
  1118.             end
  1119.         end
  1120.         return returns
  1121.     end,
  1122.     ["friends"] = function(speaker,args)
  1123.         local returns = {}
  1124.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1125.             if plr:IsFriendsWith(speaker.UserId) and plr ~= speaker then
  1126.                 table.insert(returns,plr)
  1127.             end
  1128.         end
  1129.         return returns
  1130.     end,
  1131.     ["nonfriends"] = function(speaker,args)
  1132.         local returns = {}
  1133.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1134.             if not plr:IsFriendsWith(speaker.UserId) and plr ~= speaker then
  1135.                 table.insert(returns,plr)
  1136.             end
  1137.         end
  1138.         return returns
  1139.     end,
  1140.     ["guests"] = function(speaker,args)
  1141.         local returns = {}
  1142.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1143.             if plr.Guest then
  1144.                 table.insert(returns,plr)
  1145.             end
  1146.         end
  1147.         return returns
  1148.     end,
  1149.     ["bacons"] = function(speaker,args)
  1150.         local returns = {}
  1151.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1152.             if plr.Character:FindFirstChild('Pal Hair') or plr.Character:FindFirstChild('Kate Hair') then
  1153.                 table.insert(returns,plr)
  1154.             end
  1155.         end
  1156.         return returns
  1157.     end,
  1158.     ["admins"] = function(speaker)
  1159.         local returns = {}
  1160.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1161.             if isAdmin(plr) then
  1162.                 table.insert(returns,plr)
  1163.             end
  1164.         end
  1165.         return returns
  1166.     end,
  1167.     ["nonadmins"] = function(speaker)
  1168.         local returns = {}
  1169.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1170.             if not isAdmin(plr) then
  1171.                 table.insert(returns,plr)
  1172.             end
  1173.         end
  1174.         return returns
  1175.     end,
  1176.     ["age(%d+)"] = function(speaker,args)
  1177.         local returns = {}
  1178.         local age = tonumber(args[1])
  1179.         if not age == nil then return end
  1180.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1181.         if plr.AccountAge <= age then
  1182.                 table.insert(returns,plr)
  1183.             end
  1184.         end
  1185.         return returns
  1186.     end,
  1187.     ["rad(%d+)"] = function(speaker,args)
  1188.         local returns = {}
  1189.         local radius = tonumber(args[1])
  1190.         local speakerChar = speaker.Character
  1191.         if not speakerChar or not speakerChar:FindFirstChild("HumanoidRootPart") then return end
  1192.         for _,plr in pairs(game:GetService("Players"):GetPlayers()) do
  1193.             if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
  1194.                 local magnitude = (plr.Character:FindFirstChild("HumanoidRootPart").Position-speakerChar.HumanoidRootPart.Position).magnitude
  1195.                 if magnitude <= radius then table.insert(returns,plr) end
  1196.             end
  1197.         end
  1198.         return returns
  1199.     end
  1200. }
  1201. local function toTokens(str)
  1202.     local tokens = {}
  1203.     for op,name in string.gmatch(str,"([+-])([^+-]+)") do
  1204.         table.insert(tokens,{Operator = op,Name = name})
  1205.     end
  1206.     return tokens
  1207. end
  1208. local function onlyIncludeInTable(tab,matches)
  1209.     local matchTable = {}
  1210.     local resultTable = {}
  1211.     for i,v in pairs(matches) do matchTable[v.Name] = true end
  1212.     for i,v in pairs(tab) do if matchTable[v.Name] then table.insert(resultTable,v) end end
  1213.     return resultTable
  1214. end
  1215. local function removeTableMatches(tab,matches)
  1216.     local matchTable = {}
  1217.     local resultTable = {}
  1218.     for i,v in pairs(matches) do matchTable[v.Name] = true end
  1219.     for i,v in pairs(tab) do if not matchTable[v.Name] then table.insert(resultTable,v) end end
  1220.     return resultTable
  1221. end
  1222. local function getPlayersByName(name)
  1223.     local found = {}
  1224.     for i,v in pairs(game:GetService("Players"):GetChildren()) do
  1225.         if string.sub(string.lower(v.Name),1,#name) == string.lower(name) then
  1226.             table.insert(found,v)
  1227.         end
  1228.     end
  1229.     return found
  1230. end
  1231. local function getPlayer(list,speaker)
  1232.     if list == nil then return {speaker.Name} end
  1233.     local nameList = splitString(list,",")
  1234.    
  1235.     local foundList = {}
  1236.    
  1237.     for _,name in pairs(nameList) do
  1238.         if string.sub(name,1,1) ~= "+" and string.sub(name,1,1) ~= "-" then name = "+"..name end
  1239.         local tokens = toTokens(name)
  1240.         local initialPlayers = game:GetService("Players"):GetPlayers()
  1241.        
  1242.         for i,v in pairs(tokens) do
  1243.             if v.Operator == "+" then
  1244.                 local tokenContent = v.Name
  1245.                 local foundCase = false
  1246.                 for regex,case in pairs(SpecialPlayerCases) do
  1247.                     local matches = {string.match(tokenContent,"^"..regex.."$")}
  1248.                     if #matches > 0 then
  1249.                         foundCase = true
  1250.                         initialPlayers = onlyIncludeInTable(initialPlayers,case(speaker,matches,initialPlayers))
  1251.                     end
  1252.                 end
  1253.                 if not foundCase then
  1254.                     initialPlayers = onlyIncludeInTable(initialPlayers,getPlayersByName(tokenContent))
  1255.                 end
  1256.             else
  1257.                 local tokenContent = v.Name
  1258.                 local foundCase = false
  1259.                 for regex,case in pairs(SpecialPlayerCases) do
  1260.                     local matches = {string.match(tokenContent,"^"..regex.."$")}
  1261.                     if #matches > 0 then
  1262.                         foundCase = true
  1263.                         initialPlayers = removeTableMatches(initialPlayers,case(speaker,matches,initialPlayers))
  1264.                     end
  1265.                 end
  1266.                 if not foundCase then
  1267.                     initialPlayers = removeTableMatches(initialPlayers,getPlayersByName(tokenContent))
  1268.                 end
  1269.             end
  1270.         end
  1271.        
  1272.         for i,v in pairs(initialPlayers) do table.insert(foundList,v) end
  1273.     end
  1274.    
  1275.     local foundNames = {}
  1276.     for i,v in pairs(foundList) do table.insert(foundNames,v.Name) end
  1277.    
  1278.     return foundNames
  1279. end
  1280. function fWeld(zName, zParent, zPart0, zPart1, zCoco, A, B, C, D, E, F)
  1281.     local funcw = Instance.new('Weld') funcw.Name = zName funcw.Parent = zParent funcw.Part0 = zPart0 funcw.Part1 = zPart1
  1282.     if (zCoco) then
  1283.         funcw.C0 = CFrame.new(A, B, C) * CFrame.fromEulerAnglesXYZ(D, E, F)
  1284.     else
  1285.         funcw.C1 = CFrame.new(A, B, C) * CFrame.fromEulerAnglesXYZ(D, E, F)
  1286.     end
  1287.     return funcw
  1288. end
  1289. function _G.msg(txt)
  1290.     spawn(function()
  1291.     msghook()
  1292.     if MSGhook == true then
  1293.     workspace.IYmessage.Text = ''
  1294.     wait(0.1)
  1295.     local b = Instance.new("BlurEffect", LightingService)
  1296.     b.Name = "IYmblur"
  1297.     b.Size = 18
  1298.     workspace.IYmessage.Text = txt
  1299.     wait(Mseconds)
  1300.     b:Destroy()
  1301.     if workspace.IYmessage.Text == txt then
  1302.     workspace.IYmessage.Text = '' end
  1303.     elseif MSGhook == false then
  1304.     execCmd("loadm")
  1305.     repeat wait() until workspace:FindFirstChild("IYmessage")
  1306.     workspace.IYmessage.Text = ''
  1307.     wait(0.1)
  1308.     local b = Instance.new("BlurEffect", LightingService)
  1309.     b.Name = "IYmblur"
  1310.     b.Size = 18
  1311.     workspace.IYmessage.Text = txt
  1312.     wait(Mseconds)
  1313.     b:Destroy()
  1314.     if workspace.IYmessage.Text == txt then
  1315.     workspace.IYmessage.Text = '' end
  1316.     end
  1317. end)
  1318. end
  1319. function bleach(plr)
  1320. spawn(function()
  1321. local char = plr.Character
  1322. local hit1 = Instance.new("Sound", workspace)
  1323. hit1.SoundId = "http://roblox.com/asset?id=145486953"
  1324. local hit = Instance.new("Sound", workspace)
  1325. hit.SoundId = "http://roblox.com/asset?id=178646271"
  1326. local Bleach = Instance.new("Part", char["Left Arm"])
  1327. Bleach.CanCollide = false
  1328. local Mesh = Instance.new("SpecialMesh", Bleach)
  1329. Mesh.MeshId = "http://roblox.com/asset?id=483388971"
  1330. Mesh.Scale = Vector3.new(0.005, 0.005, 0.005)
  1331. Mesh.TextureId = "http://roblox.com/asset?id=520016684"
  1332. local Handy = Instance.new("Weld", Bleach)
  1333. Handy.Part0 = Bleach
  1334. Handy.Part1 = char["Left Arm"]
  1335. Handy.C0 = CFrame.new(0.5,1.8,0)
  1336. Handy.C1 = CFrame.Angles(0,4,1)
  1337. local drink = Instance.new("Sound", char.Head)
  1338. drink.SoundId = "http://roblox.com/asset?id=10722059"
  1339. wait(3)
  1340.         game.Chat:Chat(char.Head,"I need to die","Red")
  1341.         for i = 1,10 do
  1342.             wait()
  1343.             char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.018,0,0)
  1344.             Handy.C0 = Handy.C0 * CFrame.new(-0.05,-0.07,0.09)
  1345.             Handy.C0 = Handy.C0 * CFrame.Angles(0.12,0,0)
  1346.             char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.Angles(0.2,0,-0.1)
  1347.         end
  1348.         drink:Play()
  1349.         wait(3.4)
  1350.         drink:Stop()
  1351.         for i = 1,10 do
  1352.             wait()
  1353.             char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.new(0,-0.50,0)
  1354.             char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.175,0,0)
  1355.             Handy.C0 = Handy.C0 * CFrame.new(0.05,0.07,-0.09)
  1356.             Handy.C0 = Handy.C0 * CFrame.Angles(-0.1,0,0)
  1357.             char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.Angles(-0.15,-0.04,0.2)
  1358.             char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0 * CFrame.Angles(-0.05,0.03,0)
  1359.             char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0 * CFrame.Angles(-0.02,0,0)
  1360.             char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0 * CFrame.Angles(-0.01,0,0)
  1361.         end
  1362.         wait(0.01)
  1363.         char.Torso.Anchored = true
  1364.         char["Left Arm"].Anchored = true
  1365.         char["Right Arm"].Anchored = true
  1366.         char["Left Leg"].Anchored = true
  1367.         char["Right Leg"].Anchored = true
  1368.         char.Head.Anchored = true
  1369.         hit:Play()
  1370.         hit1:Play()
  1371.         wait(4)
  1372.         local bl00d = Instance.new("Part", char.Head)
  1373.         bl00d.Size = Vector3.new(0.1,0.1,0.1)
  1374.         bl00d.Rotation = Vector3.new(0,0,-90)
  1375.         bl00d.CanCollide = false
  1376.         bl00d.Anchored = true
  1377.         bl00d.BrickColor = BrickColor.new("Maroon")
  1378.         bl00d.Position = char.Head.Position
  1379.         bl00d.CFrame = bl00d.CFrame * CFrame.new(0.43,-0.65,0)
  1380.         bl00d.Shape = "Cylinder"
  1381.         bl00d.Material = "Pebble"
  1382.         for i = 1,100 do
  1383.             wait()
  1384.             bl00d.Size = bl00d.Size + Vector3.new(0,0.05,0.05)
  1385.         end
  1386.         wait(1)
  1387.         char.Humanoid.Health = 0
  1388. end)
  1389. end
  1390. function rape(victim, speaker) -- from rocky2u cmdscript
  1391.     spawn(function()
  1392.         local P1 = game:GetService("Players")[speaker].Character.Torso
  1393.         local V1 = game:GetService("Players")[victim].Character.Torso
  1394.         V1.Parent.Humanoid.PlatformStand = true
  1395.         P1['Left Shoulder']:destroy() local LA1 = Instance.new('Weld', P1) LA1.Part0 = P1 LA1.Part1 = P1.Parent['Left Arm'] LA1.C0 = CFrame.new(-1.5, 0, 0) LA1.Name = 'Left Shoulder'
  1396.         P1['Right Shoulder']:destroy() local RS1 = Instance.new('Weld', P1) RS1.Part0 = P1 RS1.Part1 = P1.Parent['Right Arm'] RS1.C0 = CFrame.new(1.5, 0, 0) RS1.Name = 'Right Shoulder'
  1397.         V1['Left Shoulder']:destroy() local LS2 = Instance.new('Weld', V1) LS2.Part0 = V1 LS2.Part1 = V1.Parent['Left Arm'] LS2.C0 = CFrame.new(-1.5, 0, 0) LS2.Name = 'Left Shoulder'
  1398.         V1['Right Shoulder']:destroy() local RS2 = Instance.new('Weld', V1) RS2.Part0 = V1 RS2.Part1 = V1.Parent['Right Arm'] RS2.C0 = CFrame.new(1.5, 0, 0) RS2.Name = 'Right Shoulder'
  1399.         V1['Left Hip']:destroy() local LH2 = Instance.new('Weld', V1) LH2.Part0 = V1 LH2.Part1 = V1.Parent['Left Leg'] LH2.C0 = CFrame.new(-0.5, -2, 0) LH2.Name = 'Left Hip'
  1400.         V1['Right Hip']:destroy() local RH2 = Instance.new('Weld', V1) RH2.Part0 = V1 RH2.Part1 = V1.Parent['Right Leg'] RH2.C0 = CFrame.new(0.5, -2, 0) RH2.Name = 'Right Hip'
  1401.         local D = Instance.new('Part', P1) D.TopSurface = 0 D.BottomSurface = 0 D.CanCollide = false D.BrickColor = BrickColor.new('Pastel brown') D.Shape = 'Ball' D.Size = Vector3.new(1, 1, 1)
  1402.         local DM1 = Instance.new('SpecialMesh', D) DM1.MeshType = 'Sphere' DM1.Scale = Vector3.new(0.4, 0.4, 0.4)
  1403.         fWeld('weld', P1, P1, D, true, -0.2, -1.3, -0.6, 0, 0, 0)
  1404.         local D2 = D:Clone() D2.Parent = P1
  1405.         fWeld('weld', P1, P1, D2, true, 0.2, -1.3, -0.6, 0, 0, 0)
  1406.         local C = Instance.new('Part', P1) C.TopSurface = 0 C.BottomSurface = 0 C.CanCollide = false C.BrickColor = BrickColor.new('Pastel brown') C.Size = Vector3.new(0.4, 1.3, 0.4)
  1407.         fWeld('weld', P1, P1, C, true, 0, -1, -0.52 + (-C.Size.y / 2), math.rad(-80), 0, 0)
  1408.         local C2 = D:Clone() C2.BrickColor = BrickColor.new('Pink') C2.Mesh.Scale = Vector3.new(0.4, 0.62, 0.4) C2.Parent = P1
  1409.         fWeld('weld', C, C, C2, true, 0, 0 + (C.Size.y / 2), 0, math.rad(-10), 0, 0)
  1410.         local CM = Instance.new('CylinderMesh', C)
  1411.         local BL = Instance.new('Part', V1) BL.TopSurface = 0 BL.BottomSurface = 0 BL.CanCollide = false BL.BrickColor = BrickColor.new('Pastel brown') BL.Shape = 'Ball' BL.Size = Vector3.new(1, 1, 1)
  1412.         local DM2 = Instance.new('SpecialMesh', BL) DM2.MeshType = 'Sphere' DM2.Scale = Vector3.new(1.2, 1.2, 1.2)
  1413.         fWeld('weld', V1, V1, BL, true, -0.5, 0.5, -0.6, 0, 0, 0)
  1414.         local BR = Instance.new('Part', V1) BR.TopSurface = 0 BR.BottomSurface = 0 BR.CanCollide = false BR.BrickColor = BrickColor.new('Pastel brown') BR.Shape = 'Ball' BR.Size = Vector3.new(1, 1, 1)
  1415.         local DM3 = Instance.new('SpecialMesh', BR) DM3.MeshType = 'Sphere' DM3.Scale = Vector3.new(1.2, 1.2, 1.2)
  1416.         fWeld('weld', V1, V1, BR, true, 0.5, 0.5, -0.6, 0, 0, 0)
  1417.         local BLN = Instance.new('Part', V1) BLN.TopSurface = 0 BLN.BottomSurface = 0 BLN.CanCollide = false BLN.BrickColor = BrickColor.new('Pink') BLN.Shape = 'Ball' BLN.Size = Vector3.new(1, 1, 1)
  1418.         local DM4 = Instance.new('SpecialMesh', BLN) DM4.MeshType = 'Sphere' DM4.Scale = Vector3.new(0.2, 0.2, 0.2)
  1419.         fWeld('weld', V1, V1, BLN, true, -0.5, 0.5, -1.2, 0, 0, 0)
  1420.         local BRN = Instance.new('Part', V1) BRN.TopSurface = 0 BRN.BottomSurface = 0 BRN.CanCollide = false BRN.BrickColor = BrickColor.new('Pink') BRN.Shape = 'Ball' BRN.Size = Vector3.new(1, 1, 1)
  1421.         local DM5 = Instance.new('SpecialMesh', BRN) DM5.MeshType = 'Sphere' DM5.Scale = Vector3.new(0.2, 0.2, 0.2)
  1422.         fWeld('weld', V1, V1, BRN, true, 0.5, 0.5, -1.2, 0, 0, 0)
  1423.         LH2.C1 = CFrame.new(0.2, 1.6, 0.4) * CFrame.Angles(3.9, -0.4, 0) RH2.C1 = CFrame.new(-0.2, 1.6, 0.4) * CFrame.Angles(3.9, 0.4, 0)
  1424.         LS2.C1 = CFrame.new(-0.2, 0.9, 0.6) * CFrame.Angles(3.9, -0.2, 0) RS2.C1 = CFrame.new(0.2, 0.9, 0.6) * CFrame.Angles(3.9, 0.2, 0)
  1425.         LA1.C1 = CFrame.new(-0.5, 0.7, 0) * CFrame.Angles(-0.9, -0.4, 0) RS1.C1 = CFrame.new(0.5, 0.7, 0) * CFrame.Angles(-0.9, 0.4, 0)
  1426.         if P1:FindFirstChild('weldx') then P1.weldx:destroy() end
  1427.         WE = fWeld('weldx', P1, P1, V1, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
  1428.         local N = V1.Neck N.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
  1429.     end)
  1430.     spawn(function() while wait() do for i = 1, 6 do WE.C1 = WE.C1 * CFrame.new(0, -0.3, 0) end for i = 1, 6 do WE.C1 = WE.C1 * CFrame.new(0, 0.3, 0) end end end)
  1431. end
  1432.  
  1433. addcmd('addalias','Adds an alias to a command',{},
  1434. function(args,speaker)
  1435.     if #args < 2 then return end
  1436.     local cmd = string.lower(args[1])
  1437.     local alias = string.lower(args[2])
  1438.     for i,v in pairs(cmds) do
  1439.         if v.NAME:lower()==cmd or std.inTable(v.ALIAS,cmd) then
  1440.             customAlias[alias] = v
  1441.             if not aliasSave or aliasSave == nil then aliasSave = {} end
  1442.             aliasSave[#aliasSave + 1] = {CMD = cmd, ALIAS = alias}
  1443.             Notify("Added "..alias.." as an alias to "..cmd)
  1444.             updatefile()
  1445.             updatealiases()
  1446.             break
  1447.         end
  1448.     end
  1449. end)
  1450.  
  1451. addcmd('877241loadalias','dab',{},
  1452. function(args,speaker)
  1453.     if #args < 2 then return end
  1454.     local cmd = string.lower(args[1])
  1455.     local alias = string.lower(args[2])
  1456.     for i,v in pairs(cmds) do
  1457.         if v.NAME:lower()==cmd or std.inTable(v.ALIAS,cmd) then
  1458.             customAlias[alias] = v
  1459.             updatealiases()
  1460.             break
  1461.         end
  1462.     end
  1463. end)
  1464.  
  1465. addcmd('removealias','Removes a custom alias',{},
  1466. function(args,speaker)
  1467.     if #args < 1 then return end
  1468.     local alias = string.lower(args[1])
  1469.     if customAlias[alias] then
  1470.         local cmd = customAlias[alias].NAME
  1471.         customAlias[alias] = nil
  1472.         for i,v in pairs(aliasSave) do
  1473.         if v.ALIAS == tostring(alias) then
  1474.         table.remove(aliasSave, i)
  1475.         end end
  1476.         Notify("Removed the alias "..alias.." from "..cmd)
  1477.         updatefile()
  1478.         updatealiases()
  1479.     end
  1480. end)
  1481.  
  1482. addcmd('clraliases','Removes all custom alias',{},
  1483. function(args,speaker)
  1484. customAlias = {}
  1485. aliasSave ={}
  1486. updatefile()
  1487. updatealiases()
  1488. Notify('Removed all aliases')
  1489. end)
  1490.  
  1491. addcmd('s','runs a script in the chat or cmdbar',{'script'},
  1492. function(args, speaker)
  1493. loadstring(tostring(GLS(false, 0)))()
  1494. end)
  1495.  
  1496. function hub()
  1497. if not game.CoreGui:FindFirstChild('ScriptHub') then
  1498. loadstring(game:HttpGet(('https://pastebin.com/raw/VvDQgSZT'),true))() end end
  1499. addcmd('hub','opens script hub',{'scripts'},
  1500. function(args, speaker)
  1501. if speaker.userId ~= LP.userId then
  1502. lponly(speaker) else
  1503. hub()
  1504. end end)
  1505.  
  1506. addcmd('ff','gives ff to player',{},
  1507. function(args, speaker)
  1508.     local players = getPlayer(args[1], speaker)
  1509.     for i,v in pairs(players)do
  1510.         local pchar=_char(v)
  1511.         Instance.new("ForceField", pchar)
  1512.     end
  1513. end)
  1514.  
  1515. addcmd('maxhealth','sets a limit of health to player',{},
  1516. function(args, speaker)
  1517.     local players = getPlayer(args[1], speaker)
  1518.     for i,v in pairs(players)do
  1519.         local pchar=_char(v)
  1520.         pchar.Humanoid.MaxHealth = args[2]
  1521.     end
  1522. end)
  1523.  
  1524. addcmd('sethealth','sets the health of a player',{},
  1525. function(args, speaker)
  1526.     local players = getPlayer(args[1], speaker)
  1527.     for i,v in pairs(players)do
  1528.         local pchar=_char(v)
  1529.         pchar.Humanoid.Health = args[2]
  1530.     end
  1531. end)
  1532.  
  1533. addcmd('breakloops','stops any cmd loops',{'break'},
  1534. function(args, speaker)
  1535. lastBreakTime = tick()
  1536. end)
  1537.  
  1538. addcmd('invisibleff','gives invisible ff to player',{'invisff'},
  1539. function(args, speaker)
  1540. local players = getPlayer(args[1], speaker)
  1541. for i,v in pairs(players)do
  1542. local pchar=_char(v)
  1543. local invisff = Instance.new("ForceField", pchar)
  1544. invisff.Visible = false
  1545. end
  1546. end)
  1547.  
  1548. addcmd('rocket','attaches a player to a rocket',{'missile'},
  1549. function(args, speaker)
  1550.     local players = getPlayer(args[1], speaker)
  1551.     for i,v in pairs(players)do
  1552.         local pchar=_char(v)
  1553.         spawn(function()
  1554.         local m = missile:Clone()
  1555.         m.Parent = workspace
  1556.         local W = Instance.new('Weld', m)
  1557.         W.Part0 = W.Parent
  1558.         W.Part1 = pchar.HumanoidRootPart
  1559.         W.C1 = CFrame.new(0, 0.5, 1)
  1560.         m.force.Force = Vector3.new(0, 15000, 0)
  1561.         wait(0.01)
  1562.         pchar.HumanoidRootPart.CFrame = pchar.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0)
  1563.         wait(5)
  1564.         Instance.new('Explosion', m).Position = m.Position
  1565.         wait(0.01)
  1566.         pchar:BreakJoints()
  1567.         wait(1)
  1568.         m:destroy()
  1569.         end)
  1570.     end
  1571. end)
  1572.  
  1573. addcmd('kidnap', 'Kidnaps the player in a candy van',{}, function(args, speaker)
  1574.     local players = getPlayer(args[1], speaker)
  1575.     if not game:GetService("CoreGui"):FindFirstChild('VanEvent') then
  1576.         loadstring(game:HttpGet(('https://pastebin.com/raw/NbY247zv'),true))()
  1577.     end
  1578.     for i,v in pairs(players) do
  1579.         game:GetService("CoreGui").VanEvent:Fire(gPlayers[v])
  1580.     end
  1581. end)
  1582.  
  1583. addcmd('rejoin','makes you rejoin the game',{'rj'},
  1584. function(args, speaker)
  1585. if speaker.userId ~= LP.userId then
  1586. lponly(speaker)
  1587. else
  1588. game:GetService('TeleportService'):Teleport(game.PlaceId)
  1589. end
  1590. end)
  1591.  
  1592. addcmd('unff', 'takes away ff from player',{'noff'},
  1593. function(args, speaker)
  1594.     local players = getPlayer(args[1], speaker)
  1595.     for i,v in pairs(players)do
  1596.         local pchar=_char(v)
  1597.         for j,v1 in pairs(pchar:GetChildren()) do
  1598.             if v1:IsA("ForceField") then
  1599.                 v1:Destroy()
  1600.             end
  1601.         end
  1602.     end
  1603. end)
  1604.  
  1605. addcmd('flashlight', 'gives a player a flashlight',{},
  1606. function(args, speaker)
  1607.     local players = getPlayer(args[1], speaker)
  1608.     for i,v in pairs(players)do
  1609.     spawn(function()
  1610.     local flashlight = game:GetService("InsertService"):LoadLocalAsset("rbxassetid://01679418710")
  1611.     flashlight.Parent = gPlayers[v].Backpack
  1612.     flashlight.Name = "IYflashlight"
  1613.     end)
  1614.     end
  1615. end)
  1616.  
  1617. addcmd('car', 'inserts a car',{'vehicle'},
  1618. function(args, speaker)
  1619.     local players = getPlayer(args[1], speaker)
  1620.     for i,v in pairs(players)do
  1621.     spawn(function()
  1622.     local pchar=_char(v)
  1623.     local model = game:GetService("InsertService"):LoadLocalAsset("rbxassetid://01172688590")
  1624.     model.Parent = workspace
  1625.     model:MakeJoints()
  1626.     model:MoveTo(pchar.HumanoidRootPart.Position + Vector3.new(5, 5, 0))
  1627.     model.Name = "IYcar" .. gPlayers[v].Name wait(0.2)
  1628.     for _, child in pairs( model:GetChildren()) do
  1629.     if child.ClassName == "Part" then
  1630.     child.Anchored = true
  1631.     wait(1)
  1632.     child.Anchored = false
  1633. end end end) end end)
  1634.  
  1635. addcmd('uncar', 'removes a players car',{'unvehicle','nocar','novehicle'},
  1636. function(args, speaker)
  1637.     local players = getPlayer(args[1], speaker)
  1638.     for i,v in pairs(players)do
  1639.     for _, child in pairs( workspace:GetChildren()) do
  1640.     if child.Name == "IYcar" .. gPlayers[v].Name then
  1641.     child:Destroy()
  1642.     end
  1643. end
  1644. end
  1645. end)
  1646.  
  1647. addcmd('team','team [plr] [team]',{},
  1648. function(args, speaker)
  1649.     local players = getPlayer(args[1], speaker)
  1650.     local teamname = nil
  1651.     for i,v in pairs(players)do
  1652.         for a,b in pairs(game.Teams:GetChildren()) do local L_name = b.Name:lower() local F = L_name:find(GLS(true, 1)) if F == 1 then teamname = b end end
  1653.             _players[v].Team = teamname
  1654.     end
  1655. end)
  1656.  
  1657. addcmd('maxzoom','maximum camera zoom',{},
  1658. function(args, speaker)
  1659.     local players = getPlayer(args[1], speaker)
  1660.     for i,v in pairs(players)do
  1661.     _players[v].CameraMaxZoomDistance = args[2]
  1662.     end
  1663. end)
  1664.  
  1665. function spawnrain(mesh,texture)
  1666. spawn(function()
  1667. for i,v in pairs(gPlayers:GetChildren()) do
  1668. if v.Character ~= nil and v.Character:FindFirstChild('HumanoidRootPart') then
  1669. if raining == true then
  1670. local rain = Instance.new("Part",workspace)
  1671. rain.CanCollide = true
  1672. local m = Instance.new("SpecialMesh",rain)
  1673. m.MeshId = "http://www.roblox.com/asset/?id="..mesh
  1674. m.TextureId = "http://www.roblox.com/asset/?id="..texture
  1675. rain.CFrame = v.Character.HumanoidRootPart.CFrame + Vector3.new(math.random(-250,250),100,math.random(-250,250))
  1676. wait(5) rain:Destroy()
  1677. end
  1678. end
  1679. end
  1680. end)
  1681. end
  1682.  
  1683. raining = false
  1684. addcmd('rain','make it rain a mesh',{},
  1685. function(args, speaker)
  1686. raining = true
  1687. repeat
  1688. wait(0.5)
  1689. spawnrain(args[1],args[2])
  1690. until raining == false
  1691. end)
  1692.  
  1693. addcmd('norain','make it rain a mesh',{'unrain'},
  1694. function(args, speaker)
  1695. raining = false
  1696. end)
  1697.  
  1698. local rad = math.rad
  1699. addcmd('earthquake','earthquake [power] [intensity]',{}, -- credit to DontAddMeh
  1700. function(args, speaker)
  1701.      for i = 1,args[1] do
  1702.          wait()
  1703.                 local function ear(instance)
  1704.                 for i,v in pairs(instance:GetChildren())do
  1705.                 if v:IsA("Part") then
  1706.         if v.Size.x > 1 then
  1707.         v.CFrame = CFrame.new(v.Position) * CFrame.Angles(rad(math.random(-args[2],args[2])),rad(math.random(-args[2],args[2])),rad(math.random(-args[2],args[2])))
  1708.         end end ear(v) end end ear(workspace)
  1709.      end
  1710. end)
  1711.  
  1712. addcmd('cape','Gives the target player(s) a cape',{},
  1713. function(args, speaker)
  1714.     local players = getPlayer(args[1], speaker)
  1715.     for i,v in pairs(players)do
  1716.     spawn(function()
  1717.         if _char(v):FindFirstChild("Humanoid") then
  1718.             local plr = _players[v]
  1719.             repeat wait() until plr and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart")
  1720.             local torso = plr.Character.HumanoidRootPart
  1721.             local p = Instance.new("Part", torso.Parent) p.Name = "IYcape" p.Anchored = false
  1722.             p.CanCollide = false p.TopSurface = 0 p.BottomSurface = 0
  1723.             if not args[2] then
  1724.             p.Color = Color3.new(0,0,0)
  1725.             p.Color = Color3.new(0,0,0) else
  1726.             p.Color = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  1727.             p.Color = Color3.fromRGB((args[2]),(args[3]),(args[4])) end
  1728.             p.formFactor = "Custom"
  1729.             p.Size = Vector3.new(.2,.2,.2)
  1730.             local msh = Instance.new("BlockMesh", p) msh.Scale = Vector3.new(9,17.5,.5)
  1731.             local motor1 = Instance.new("Motor", p)
  1732.             motor1.Part0 = p
  1733.             motor1.Part1 = torso
  1734.             motor1.MaxVelocity = .01
  1735.             motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0)
  1736.             motor1.C1 = CFrame.new(0,1,.45)*CFrame.Angles(0,math.rad(90),0)
  1737.             local wave = false
  1738.             repeat wait(1/44)
  1739.             local ang = 0.1
  1740.             local oldmag = torso.Velocity.magnitude
  1741.             local mv = .002
  1742.             if wave then ang = ang + ((torso.Velocity.magnitude/10)*.05)+.05 wave = false else wave = true end
  1743.             ang = ang + math.min(torso.Velocity.magnitude/11, .5)
  1744.             motor1.MaxVelocity = math.min((torso.Velocity.magnitude/111), .04) + mv
  1745.             motor1.DesiredAngle = -ang
  1746.             if motor1.CurrentAngle < -.2 and motor1.DesiredAngle > -.2 then motor1.MaxVelocity = .04 end
  1747.             repeat wait() until motor1.CurrentAngle == motor1.DesiredAngle or math.abs(torso.Velocity.magnitude - oldmag)  >= (torso.Velocity.magnitude/10) + 1
  1748.             if torso.Velocity.magnitude < .1 then wait(.1) end
  1749.             until not p or p.Parent ~= torso.Parent
  1750.         end
  1751.     end)
  1752.     end
  1753. end)
  1754.  
  1755. addcmd('uncape','Removes cape',{'nocape'},
  1756. function(args, speaker)
  1757.     local players = getPlayer(args[1], speaker)
  1758.     for i,v in pairs(players)do
  1759.     local pchar=_char(v)
  1760.     for _, child in pairs( pchar:GetChildren()) do
  1761.     if child.Name == "IYcape" then
  1762.         child:Destroy() end end
  1763.     end
  1764. end)
  1765.  
  1766. addcmd('spasm','makes someone c r a z y',{},
  1767. function(args, speaker)
  1768.     local players = getPlayer(args[1], speaker)
  1769.     for i,v in pairs(players)do
  1770.     local pchar=_char(v)
  1771.    local AnimationId = "33796059"
  1772.    local Anim = Instance.new("Animation")
  1773.    Anim.AnimationId = "rbxassetid://"..AnimationId
  1774.    local k = pchar.Humanoid:LoadAnimation(Anim)
  1775.    k:Play()
  1776.    k:AdjustSpeed(99)
  1777.     end
  1778. end)
  1779.  
  1780. addcmd('dance','makes someone d a n c e',{},
  1781. function(args, speaker)
  1782.     local players = getPlayer(args[1], speaker)
  1783.     for i,v in pairs(players)do
  1784.     local pchar=_char(v)
  1785.         local anim = nil       
  1786.         local dance1 = math.random(1,7)
  1787.         if dance1 == 1 then
  1788.         anim = '27789359'
  1789.         end
  1790.         if dance1 == 2 then
  1791.         anim = '30196114'
  1792.         end
  1793.         if dance1 == 3 then
  1794.         anim = '248263260'
  1795.         end
  1796.         if dance1 == 4 then
  1797.         anim = '45834924'
  1798.         end
  1799.         if dance1 == 5 then
  1800.         anim = '33796059'
  1801.         end
  1802.         if dance1 == 6 then
  1803.         anim = '28488254'
  1804.         end
  1805.         if dance1 == 7 then
  1806.         anim = '52155728'
  1807.         end
  1808.         local animation = Instance.new("Animation")
  1809.         animation.AnimationId = "rbxassetid://"..anim
  1810.         local animTrack = pchar.Humanoid:LoadAnimation(animation)
  1811.         animTrack:Play()
  1812.     end
  1813. end)
  1814.  
  1815. addcmd('plrsound','creates a sound inside of someone',{'playersound'},
  1816. function(args, speaker)
  1817.     local players = getPlayer(args[1], speaker)
  1818.     for i,v in pairs(players)do
  1819.     if not args[1] and args[2] then return end
  1820.     local pchar=_char(v)
  1821.     for _, child in pairs( pchar:GetDescendants()) do
  1822.     if child.ClassName == "Sound" then
  1823.     child:Destroy() end end
  1824.     local s = Instance.new("Sound")
  1825.     s.Name = "IYplrsound"
  1826.     s.SoundId = "http://www.roblox.com/asset/?id=" .. args[2]
  1827.     s.Volume = 1
  1828.     s.Pitch = 1
  1829.     s.Looped = true
  1830.     s.archivable = true
  1831.     s.Parent = pchar.HumanoidRootPart
  1832.     s:Play()
  1833.     end
  1834. end)
  1835.  
  1836. addcmd('noplrsound','creates a sound inside of someone',{'noplayersound','unplayersound','unplrsound'},
  1837. function(args, speaker)
  1838.     local players = getPlayer(args[1], speaker)
  1839.     for i,v in pairs(players)do
  1840.     if not args[1] then return end
  1841.     local pchar=_char(v)
  1842.     for _, child in pairs( pchar:GetDescendants()) do
  1843.     if child.ClassName == "Sound" then
  1844.     child:Destroy() end end
  1845.     end
  1846. end)
  1847.  
  1848. addcmd('fly','makes you fly',{},
  1849. function(args, speaker)
  1850. if speaker.userId ~= LP.userId then
  1851. lponly(speaker)
  1852. else
  1853. sFLY()
  1854. end
  1855. end)
  1856.  
  1857. addcmd('flyspeed','set the fly speed',{'flysp'},
  1858. function(args, speaker)
  1859. if speaker.userId ~= LP.userId then
  1860. lponly(speaker)
  1861. else
  1862. if isNumber(args[1]) then
  1863. iyflyspeed = args[1]
  1864. end end end)
  1865.  
  1866. addcmd('unfly','takes away fly',{'nofly'},
  1867. function(args, speaker)
  1868. if speaker.userId ~= LP.userId then
  1869. lponly(speaker)
  1870. else
  1871. NOFLY()
  1872. end
  1873. end)
  1874.  
  1875. addcmd('exit','kills roblox process',{},
  1876. function(args, speaker)
  1877. if speaker.userId ~= LP.userId then
  1878. lponly(speaker)
  1879. else
  1880. game:shutdown()
  1881. end
  1882. end)
  1883.  
  1884. addcmd('fire', 'set a player on fire',{},
  1885. function(args, speaker)
  1886.     local players = getPlayer(args[1], speaker)
  1887.     for i,v in pairs(players)do
  1888.     spawn(function()
  1889.         local pchar=_char(v)
  1890.         local Fire1 = Instance.new("Fire", pchar.Head)
  1891.         local Fire2 = Instance.new("Fire", pchar.HumanoidRootPart)
  1892.         local Fire3 = Instance.new("Fire", pchar["Left Arm"])
  1893.         local Fire4 = Instance.new("Fire", pchar["Right Arm"])
  1894.         local Fire5 = Instance.new("Fire", pchar["Left Leg"])
  1895.         local Fire6 = Instance.new("Fire", pchar["Right Leg"])
  1896.         if not args[2] then return end
  1897.         Fire1.Color = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  1898.         Fire1.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
  1899.         Fire2.Color = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  1900.         Fire2.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
  1901.         Fire3.Color = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  1902.         Fire3.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
  1903.         Fire4.Color = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  1904.         Fire4.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
  1905.         Fire5.Color = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  1906.         Fire5.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
  1907.         Fire6.Color = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  1908.         Fire6.SecondaryColor = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  1909. end)
  1910. end
  1911. end)
  1912.  
  1913. addcmd('discomesh', 'body parts get  f u n k y',{},
  1914. function(args, speaker)
  1915.     local players = getPlayer(args[1], speaker)
  1916.     for i,v in pairs(players)do
  1917.     spawn(function()
  1918. local plr = _players[v]
  1919. local meshes = {"Brick","Cylinder","Head","Sphere","Torso","Wedge"}
  1920. local h = _players[v].Character.Head.Mesh
  1921. local t = Instance.new("SpecialMesh",_players[v].Character.Torso)
  1922. local la = Instance.new("SpecialMesh",_players[v].Character["Left Arm"])
  1923. local ra = Instance.new("SpecialMesh",_players[v].Character["Right Arm"])
  1924. local ll = Instance.new("SpecialMesh",_players[v].Character["Left Leg"])
  1925. local rl = Instance.new("SpecialMesh",_players[v].Character["Right Leg"])
  1926. while true do wait()
  1927. h.MeshType = meshes[math.random(1,#meshes)]
  1928. h.Offset = Vector3.new(math.random() * 2 - 1,math.random() * 2 - 1,math.random() * 2 - 1);
  1929. h.Parent.BrickColor = BrickColor.Random()
  1930. t.MeshType = meshes[math.random(1,#meshes)]
  1931. t.Offset = Vector3.new(math.random() * 2 - 1,math.random() * 2 - 1,math.random() * 2 - 1);
  1932. t.Parent.BrickColor = BrickColor.Random()
  1933. la.MeshType = meshes[math.random(1,#meshes)]
  1934. la.Offset = Vector3.new(math.random() * 2 - 1,math.random() * 2 - 1,math.random() * 2 - 1);
  1935. la.Parent.BrickColor = BrickColor.Random()
  1936. ra.MeshType = meshes[math.random(1,#meshes)]
  1937. ra.Offset = Vector3.new(math.random() * 2 - 1,math.random() * 2 - 1,math.random() * 2 - 1);
  1938. ra.Parent.BrickColor = BrickColor.Random()
  1939. ll.MeshType = meshes[math.random(1,#meshes)]
  1940. ll.Offset = Vector3.new(math.random() * 2 - 1,math.random() * 2 - 1,math.random() * 2 - 1);
  1941. ll.Parent.BrickColor = BrickColor.Random()
  1942. rl.MeshType = meshes[math.random(1,#meshes)]
  1943. rl.Offset = Vector3.new(math.random() * 2 - 1,math.random() * 2 - 1,math.random() * 2 - 1);
  1944. rl.Parent.BrickColor = BrickColor.Random()
  1945. end end) end end)
  1946.  
  1947. addcmd('chickenarms', 'I can fly!!1',{'chicken'},
  1948. function(args, speaker)
  1949.     local players = getPlayer(args[1], speaker)
  1950.     for i,v in pairs(players)do
  1951.     spawn(function()
  1952. local Chicken = _players[v].Character
  1953. Chicken.Torso["Left Shoulder"].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  1954. Chicken.Torso["Left Shoulder"].C1 = CFrame.new(0, 0.5, 0)
  1955. Chicken.Torso["Right Shoulder"].C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  1956. Chicken.Torso["Right Shoulder"].C1 = CFrame.new(0, 0.5, 0)
  1957. end) end end)
  1958.  
  1959. addcmd('esp', 'view a player and a players status',{},
  1960. function(args, speaker)
  1961. if speaker.userId ~= LP.userId then
  1962. lponly(speaker)
  1963. else
  1964.     local players = getPlayer(args[1], speaker)
  1965.     for i,v in pairs(players)do
  1966.     spawn(function()
  1967.     for _, child in pairs( game["CoreGui"]:GetChildren()) do
  1968.     if child.Name == gPlayers[v].Name then
  1969.     child:Destroy()
  1970. end end wait(0.5)
  1971. local m = game["Players"].LocalPlayer:GetMouse()
  1972. local rs = game:GetService("RunService").RenderStepped
  1973. local espplr = gPlayers[v]
  1974.         if espplr.Character and espplr.Name ~= _players.LocalPlayer.Name then
  1975.     for b,n in pairs (espplr.Character:GetChildren()) do
  1976.         if (n:IsA("BasePart")) then
  1977.         local a = Instance.new("BoxHandleAdornment", game.CoreGui)
  1978.         a.Name = espplr.Name
  1979.         a.Adornee = n
  1980.         a.AlwaysOnTop = true
  1981.         a.ZIndex = 0
  1982.         a.Size = n.Size
  1983.         a.Transparency = 0.7
  1984.         local resetting = false
  1985.         if espplr.TeamColor == _players.LocalPlayer.TeamColor then
  1986.             a.Color = BrickColor.new("Lime green")
  1987.             else
  1988.             a.Color = BrickColor.new("Really red")
  1989.             end
  1990.             if espplr.Character and espplr.Character:FindFirstChild('Head') then
  1991.             local BillboardGui = Instance.new("BillboardGui", game.CoreGui)
  1992.             local TextLabel = Instance.new("TextLabel")
  1993.             BillboardGui.Adornee = espplr.Character.Head
  1994.             BillboardGui.Name = espplr.Name
  1995.             BillboardGui.Size = UDim2.new(0, 100, 0, 150)
  1996.             BillboardGui.StudsOffset = Vector3.new(0, 1, 0)
  1997.             BillboardGui.AlwaysOnTop = true
  1998.             TextLabel.Parent = BillboardGui
  1999.             TextLabel.BackgroundTransparency = 1
  2000.             TextLabel.Position = UDim2.new(0, 0, 0, -50)
  2001.             TextLabel.Size = UDim2.new(0, 100, 0, 100)
  2002.             TextLabel.Font = Enum.Font.SourceSansSemibold
  2003.             TextLabel.TextSize = 20
  2004.             TextLabel.TextColor3 = Color3.new(1, 1, 1)
  2005.             TextLabel.TextStrokeTransparency = 0
  2006.             TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
  2007.             espplr.Character:WaitForChild("Humanoid").Died:connect(function()
  2008.             BillboardGui:Destroy() a:Destroy() end)
  2009.             _players.PlayerRemoving:connect(function(player)
  2010.             if player.Name == espplr.Name then
  2011.             BillboardGui:Destroy() a:Destroy()
  2012.             end end)
  2013.             game:GetService("RunService").RenderStepped:Connect(function()
  2014.             if espplr.Character ~= nil and espplr.Character.Parent ~= nil and espplr.Character:FindFirstChild('HumanoidRootPart') and espplr.Character:FindFirstChild('Humanoid') and game.CoreGui:FindFirstChild(espplr.Name) then
  2015.             local pos = math.floor((_players.LocalPlayer.Character.HumanoidRootPart.Position - espplr.Character.HumanoidRootPart.Position).magnitude)
  2016.             TextLabel.Text = 'Name: '..espplr.Name..' | Health: '..espplr.Character.Humanoid.Health..' | Studs: '..pos else
  2017.             BillboardGui:Destroy() a:Destroy() end end)
  2018.             end
  2019.         end
  2020.     end
  2021. end
  2022.     end)
  2023.     end
  2024. end
  2025. end)
  2026.  
  2027. addcmd('noesp', 'removes esp',{'unesp'},
  2028. function(args, speaker)
  2029. if speaker.userId ~= LP.userId then
  2030. lponly(speaker)
  2031. else
  2032.     local players = getPlayer(args[1], speaker)
  2033.     for i,v in pairs(players)do
  2034.     spawn(function()
  2035.     for _, child in pairs( game["CoreGui"]:GetChildren()) do
  2036.     if child.Name == gPlayers[v].Name then
  2037.     child:Destroy()
  2038.     end
  2039. end end) end end end)
  2040.  
  2041. addcmd('nofire', 'extinguish a player',{'unfire'},
  2042. function(args, speaker)
  2043.     local players = getPlayer(args[1], speaker)
  2044.     for i,v in pairs(players)do
  2045.         local pchar=_char(v)
  2046.         for j,v1 in pairs(pchar:GetDescendants()) do
  2047.         if v1:IsA("Fire") then
  2048.         v1:Destroy()
  2049. end end end end)
  2050.  
  2051. addcmd('shiny', 'makes a player shine',{},
  2052. function(args, speaker)
  2053. local players = getPlayer(args[1], speaker)
  2054. for i,v in pairs(players)do
  2055. spawn(function()
  2056. local pchar=_char(v)
  2057. for i,v in pairs(pchar:GetChildren()) do
  2058. if v.ClassName == "Decal" or v.ClassName == "Texture" then
  2059. v:Destroy() end
  2060. if v.ClassName == "Part" or v.ClassName == "WedgePart" or v.ClassName == "TrussPart" or v.ClassName == "UnionOperation" or v.ClassName == "CornerWedgePart" then
  2061. v.Reflectance = 1
  2062. v.Material = "Plastic"
  2063. end
  2064. end
  2065. end)
  2066. end
  2067. end)
  2068.  
  2069. addcmd('light', 'givs em light',{},
  2070. function(args, speaker)
  2071.     local players = getPlayer(args[1], speaker)
  2072.     for i,v in pairs(players)do
  2073.     spawn(function()
  2074.         local pchar=_char(v)
  2075.         for j,v1 in pairs(pchar.HumanoidRootPart:GetChildren()) do
  2076.             if v1:IsA("PointLight") then
  2077.                 v1:Destroy()
  2078.             end
  2079.         end
  2080.         local light = Instance.new("PointLight", pchar.HumanoidRootPart)
  2081.         light.Range = 12
  2082.         light.Brightness = 3
  2083.         if not args[2] then return end
  2084.         light.Color = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  2085.         light.Range = 12
  2086.         light.Brightness = 3
  2087.         end)
  2088.     end
  2089. end)
  2090.  
  2091. addcmd('begone', 'BEGONE THOT',{'thot'},
  2092. function(args, speaker)
  2093.     local players = getPlayer(args[1], speaker)
  2094.     for i,v in pairs(players)do
  2095.     spawn(function()
  2096.         local thotbottle = game:GetService("InsertService"):LoadLocalAsset("rbxassetid://01422895508")
  2097.             local pchar=_char(v)
  2098.         thotbottle.Name = 'THOT BEGONE'
  2099.         thotbottle.Handle:Destroy()
  2100.         execCmd('freeze '..gPlayers[v].Name)
  2101.         execCmd('name '..gPlayers[v].Name..' THOT')
  2102.         execCmd('spasm '..gPlayers[v].Name)
  2103.         thotbottle.Parent = pchar
  2104.         thotbottle:MoveTo(pchar.HumanoidRootPart.Position + Vector3.new(0, 0, 7))
  2105.         local cf = pchar.HumanoidRootPart.CFrame
  2106.         local newcf = cf + cf.lookVector * 6
  2107.         thotbottle.Head.CFrame = newcf
  2108.         local s = Instance.new("Sound")
  2109.         s.Name = "BEGONE"
  2110.         s.SoundId = "http://www.roblox.com/asset/?id=1095911222"
  2111.         s.Volume = 10
  2112.         s.Parent = thotbottle
  2113.         s:play()
  2114.         local d = Instance.new("Sound")
  2115.         d.Name = "WuOOOH"
  2116.         d.SoundId = "http://www.roblox.com/asset/?id=253143032"
  2117.         d.Volume = 5
  2118.         d.Parent = pchar
  2119.         wait(4)
  2120.         if gPlayers[v] then
  2121.         execCmd('thaw '..gPlayers[v].Name)
  2122.         execCmd('fling '..gPlayers[v].Name)
  2123.         thotbottle:Destroy()
  2124.         d:play()
  2125.         end if gPlayers[v] then
  2126.         wait(3)
  2127.         execCmd('explode '..gPlayers[v].Name)
  2128.         pchar:BreakJoints() end
  2129.         end)
  2130.     end
  2131. end)
  2132.  
  2133. addcmd('glowstick', 'givs em glo stik',{},
  2134. function(args, speaker)
  2135.     local players = getPlayer(args[1], speaker)
  2136.     for i,v in pairs(players)do
  2137.     spawn(function()
  2138.     System = {}
  2139. System.Create = function(a, c)
  2140.     local e = Instance.new(a)
  2141.     for d, a in pairs(c) do
  2142.         local b, a = ypcall(function()
  2143.             return e[d]
  2144.         end)
  2145.         if b then
  2146.             e[d] = c[d]
  2147.         end
  2148.     end
  2149.     return e
  2150. end
  2151. function b(d, b)
  2152.     local c = getfenv(d)
  2153.     local a = setmetatable({}, {
  2154.         __index = function(a, a)
  2155.             if a:lower() == 'script' then
  2156.                 return b
  2157.             else
  2158.                 return c[a]
  2159.             end
  2160.         end
  2161.     })
  2162.     setfenv(d, a)
  2163.     ypcall(function()
  2164.         d()
  2165.     end)
  2166. end
  2167. c = {}
  2168. mas = Instance.new("Model",game:GetService("Lighting"))
  2169. mas.Name = "CompiledModel"
  2170. o1 = System.Create("Tool",{
  2171. ["Name"] = "Glow Stick",
  2172. ["Parent"] = mas,
  2173. ["GripPos"] = Vector3.new(0, -0.300000012, 0),
  2174. ["CanBeDropped"] = false,
  2175. })
  2176. o2 = System.Create("Part",{
  2177. ["Name"] = "Handle",
  2178. ["Parent"] = o1,
  2179. ["Transparency"] = 0.10000000149012,
  2180. ["Position"] = Vector3.new(-9.38995171, 2.20000148, 42.3300056),
  2181. ["Rotation"] = Vector3.new(-180, 0, 0),
  2182. ["CFrame"] = CFrame.new(-9.38995171, 2.20000148, 42.3300056, 1, 0, 0, 0, -1, 0, 0, 0, -1),
  2183. ["FormFactor"] = Enum.FormFactor.Custom,
  2184. ["Size"] = Vector3.new(0.200000033, 1.80000019, 1),
  2185. ["BottomSurface"] = Enum.SurfaceType.Weld,
  2186. ["TopSurface"] = Enum.SurfaceType.Weld,
  2187. ["Material"] = "Neon",
  2188. })
  2189. o3 = System.Create("PointLight",{
  2190. ["Parent"] = o2,
  2191. ["Brightness"] = 8,
  2192. ["Range"] = 14,
  2193. })
  2194. o4 = System.Create("CylinderMesh",{
  2195. ["Parent"] = o2,
  2196. })
  2197. if not args[2] then
  2198. o2.Color = Color3.new(1,1,1)
  2199. o3.Color = Color3.new(1,1,1) else
  2200. o2.Color = Color3.fromRGB((args[2]),(args[3]),(args[4]))
  2201. o3.Color = Color3.fromRGB((args[2]),(args[3]),(args[4])) end
  2202. mas.Parent = workspace
  2203. mas:MakeJoints()
  2204. local b = mas:GetChildren()
  2205. for a = 1, #b do
  2206.     b[a].Parent = gPlayers[v].Backpack
  2207.     ypcall(function()
  2208.         b[a]:MakeJoints()
  2209.     end)
  2210. end
  2211. mas:Destroy()
  2212. for a = 1, #c do
  2213.     coroutine.resume(c[a])
  2214. end
  2215.         end)
  2216.     end
  2217. end)
  2218.  
  2219. addcmd('keybind','Binds a command to a key',{},
  2220. function(args,speaker)
  2221.     if speaker.userId ~= LP.userId then
  2222.     lponly(speaker) else
  2223.     if #args < 2 then return end
  2224.     local key = string.lower(args[1])
  2225.     if #key > 1 or key == cmdbarbind then return end
  2226.     local cmdText = GLS(false,1)
  2227.     local cas = game:GetService("ContextActionService")
  2228.     cas:BindAction("Keybind"..key,function(action,state,obj)
  2229.         if state == Enum.UserInputState.Begin then
  2230.             execCmd(cmdText,speaker)
  2231.         end
  2232.     end,false,key)
  2233.     Notify("Binded "..cmdText.." to "..key)
  2234. end
  2235. end)
  2236.  
  2237. addcmd('unkeybind','Removes a binded command from a key',{'unbind'},
  2238. function(args,speaker)
  2239.     if speaker.userId ~= LP.userId then
  2240.     lponly(speaker) else
  2241.     if #args < 1 then return end
  2242.     local key = string.lower(args[1])
  2243.     game:GetService("ContextActionService"):UnbindAction("Keybind"..key)
  2244.     Notify("Unbinded "..key)
  2245. end
  2246. end)
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252. addcmd('trail', 'spawns a trail behind a player',{},
  2253. function(args, speaker)
  2254.     local players = getPlayer(args[1], speaker)
  2255.     for i,v in pairs(players)do
  2256.     spawn(function()
  2257.         local pchar=_char(v)
  2258.         for j,v1 in pairs(pchar.Torso:GetChildren()) do
  2259.             if v1.Name == "TRAIL" then
  2260.                 v1:Destroy()
  2261.             end
  2262. end
  2263. if args[2] then
  2264. color1 = Color3.fromRGB(args[2],args[3],args[4])
  2265. color2 = Color3.new(0,0,0) else
  2266. color1 = Color3.new(1,1,1)
  2267. color2 = Color3.new(0,0,0) end
  2268.         if pchar:FindFirstChild("Torso") then
  2269. local e = Instance.new("Trail", pchar.Torso)
  2270. e.Name = "TRAIL"
  2271. e.FaceCamera = true
  2272. e.Color = ColorSequence.new(color1,color2)
  2273. e.Attachment0 = pchar.Torso.WaistCenterAttachment
  2274. e.Attachment1 = pchar.Torso.NeckAttachment
  2275. end
  2276.         end)
  2277.     end
  2278. end)
  2279.  
  2280. addcmd('untrail', 'deletes the trail behind a player',{'notrail'},
  2281. function(args, speaker)
  2282.     local players = getPlayer(args[1], speaker)
  2283.     for i,v in pairs(players)do
  2284.     spawn(function()
  2285.         local pchar=_char(v)
  2286.         for j,v1 in pairs(pchar.Torso:GetChildren()) do
  2287.             if v1.Name == "TRAIL" then
  2288.                 v1:Destroy()
  2289.             end
  2290.         end
  2291.         end)
  2292.     end
  2293. end)
  2294.  
  2295. local fa = false
  2296. local cam = workspace.CurrentCamera
  2297. local cam1 = 0
  2298. local cam2 = 0
  2299. local cam3 = 0
  2300. local k1 = false
  2301. local k2 = false
  2302. local k3 = false
  2303. local k4 = false
  2304. local k5 = false
  2305. local k6 = false
  2306. cs = 0.5
  2307. function movecam()
  2308.     local fc = game:GetService('Players').LocalPlayer.Character:FindFirstChild('xFC')
  2309.     if fa == false then
  2310.         repeat
  2311.             if game:GetService('Players').LocalPlayer.Character:FindFirstChild('xFC') then
  2312.                 local fp = fc.Position
  2313.                 fc.CFrame = CFrame.new(Vector3.new(fp.X,fp.Y+cam3,fp.Z),cam.CFrame.p)*CFrame.new(cam2,0,cam1)
  2314.                 fa = true
  2315.             end
  2316.             game:GetService('RunService').RenderStepped:Wait()
  2317.         until not game:GetService('Players').LocalPlayer.Character:FindFirstChild('xFC')
  2318.         fa = false
  2319.     end
  2320. end
  2321. function kp1(inputObject, gameProcessedEvent)
  2322.     if not gameProcessedEvent and game:GetService('Players').LocalPlayer.Character and game:GetService('Players').LocalPlayer.Character:FindFirstChild('xFC') then
  2323.         if inputObject.KeyCode == Enum.KeyCode.W or inputObject.KeyCode == Enum.KeyCode.Up then
  2324.             k1 = true
  2325.             cam1 = cs end
  2326.         if inputObject.KeyCode == Enum.KeyCode.S or inputObject.KeyCode == Enum.KeyCode.Down then
  2327.             k2 = true
  2328.             cam1 = (cs*-1) end
  2329.         if inputObject.KeyCode == Enum.KeyCode.A or inputObject.KeyCode == Enum.KeyCode.Left then
  2330.             k3 = true
  2331.             cam2 = cs end
  2332.         if inputObject.KeyCode == Enum.KeyCode.D or inputObject.KeyCode == Enum.KeyCode.Right then
  2333.             k4 = true
  2334.             cam2 = (cs*-1) end
  2335.         if inputObject.KeyCode == Enum.KeyCode.E or inputObject.KeyCode == Enum.KeyCode.Space then
  2336.             k5 = true
  2337.             cam3 = cs end
  2338.         if inputObject.KeyCode == Enum.KeyCode.Q or inputObject.KeyCode == Enum.KeyCode.LeftControl then
  2339.             k6 = true
  2340.             cam3 = (cs*-1) end
  2341.     end
  2342. end
  2343. game:GetService("UserInputService").InputBegan:connect(kp1)
  2344. function kp2(inputObject, gameProcessedEvent)
  2345.     if not gameProcessedEvent and game:GetService('Players').LocalPlayer.Character and game:GetService('Players').LocalPlayer.Character:FindFirstChild('xFC') then
  2346.         if inputObject.KeyCode == Enum.KeyCode.W or inputObject.KeyCode == Enum.KeyCode.Up then
  2347.             k1 = false
  2348.             if k2 == false then
  2349.                 cam1 = 0
  2350.             end
  2351.         end
  2352.         if inputObject.KeyCode == Enum.KeyCode.S or inputObject.KeyCode == Enum.KeyCode.Down then
  2353.             k2 = false
  2354.             if k1 == false then
  2355.                 cam1 = 0
  2356.             end
  2357.         end
  2358.         if inputObject.KeyCode == Enum.KeyCode.A or inputObject.KeyCode == Enum.KeyCode.Left then
  2359.             k3= false
  2360.             if k4== false then
  2361.                 cam2 = 0
  2362.             end
  2363.         end
  2364.         if inputObject.KeyCode == Enum.KeyCode.D or inputObject.KeyCode == Enum.KeyCode.Right then
  2365.             k4 = false
  2366.             if k3 == false then
  2367.                 cam2 = 0
  2368.             end
  2369.         end
  2370.         if inputObject.KeyCode == Enum.KeyCode.E or inputObject.KeyCode == Enum.KeyCode.Space then
  2371.             k5 = false
  2372.             if k6 == false then
  2373.                 cam3 = 0
  2374.             end
  2375.         end
  2376.         if inputObject.KeyCode == Enum.KeyCode.Q or inputObject.KeyCode == Enum.KeyCode.LeftControl then
  2377.             k6 = false
  2378.             if k5 == false then
  2379.                 cam3 = 0
  2380.             end
  2381.         end
  2382.     end
  2383. end
  2384. game:GetService("UserInputService").InputEnded:connect(kp2)
  2385. function FC()
  2386.     if not game:GetService('Players').LocalPlayer.Character:FindFirstChild('xFC') then
  2387.         game:GetService('Players').LocalPlayer.PlayerScripts.ControlScript.Disabled = true
  2388.         local fc = Instance.new('Part',game:GetService('Players').LocalPlayer.Character)
  2389.         fc.CanCollide = false
  2390.         fc.Anchored = true
  2391.         fc.Transparency = 1
  2392.         fc.Size = Vector3.new(1,1,1)
  2393.         fc.Name = 'xFC'
  2394.         fc.CFrame = game:GetService('Players').LocalPlayer.Character.Head.CFrame
  2395.         local cam = workspace.CurrentCamera
  2396.         cam.CameraSubject = fc
  2397.         cam.CameraType = 'Custom'
  2398.         movecam()
  2399.     end end
  2400. function UFC()
  2401.     game:GetService('Players').LocalPlayer.PlayerScripts.ControlScript.Disabled = false
  2402.     if game:GetService('Players').LocalPlayer.Character:FindFirstChild('xFC') then
  2403.         game:GetService('Players').LocalPlayer.Character:FindFirstChild('xFC'):Destroy()
  2404.         local cam = workspace.CurrentCamera
  2405.         cam.CameraSubject = game:GetService('Players').LocalPlayer.Character.Humanoid
  2406.         cam.CameraType = 'Custom'
  2407.     end end
  2408.  
  2409. addcmd('freecam','freecam',{'fc'},
  2410. function(args, speaker)
  2411. if speaker.userId ~= LP.userId then
  2412. lponly(speaker)
  2413. else
  2414. FC()
  2415. end
  2416. end)
  2417.  
  2418. addcmd('fixcam','fixes camera',{},
  2419. function(args, speaker)
  2420. if speaker.userId ~= LP.userId then
  2421. lponly(speaker)
  2422. else
  2423. workspace.CurrentCamera:remove()
  2424. wait(.1)
  2425. workspace.CurrentCamera.CameraSubject = LP.Character.Humanoid
  2426. workspace.CurrentCamera.CameraType = "Custom"
  2427. LP.CameraMinZoomDistance = 0.5
  2428. LP.CameraMaxZoomDistance = 400
  2429. LP.CameraMode = "Classic"
  2430. end
  2431. end)
  2432.  
  2433. addcmd('witchhunt', 'deletes the trail behind a player',{'burn','witch'},
  2434. function(args, speaker)
  2435.     local players = getPlayer(args[1], speaker)
  2436.     for i,v in pairs(players)do
  2437.         local pchar=_char(v)
  2438.                 local char = pchar
  2439.                 local hum = char.Humanoid
  2440.                 for k,c in pairs(char:children()) do if c:IsA("Part") and c.Name~="HumanoidRootPart" then c.Anchored=true end end
  2441.                 hum.HealthDisplayDistance = 0
  2442.                 --execcmd god
  2443.                 local stake = Instance.new("Part",char)
  2444.                 stake.Anchored = true
  2445.                 stake.BrickColor = BrickColor.new("Reddish brown")
  2446.                 stake.Material = "Wood"
  2447.                 stake.Size = Vector3.new(1,7,1)
  2448.                 stake.CFrame = char.Torso.CFrame*CFrame.new(0,0,1)
  2449.                 local hay = Instance.new("Part",char)
  2450.                 hay.Anchored = true
  2451.                 hay.Material = "Grass"
  2452.                 hay.BrickColor = BrickColor.new("New Yeller")
  2453.                 hay.Size = Vector3.new(6,1,5)
  2454.                 hay.CFrame = char.Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,2,0)
  2455.                 local hay2 = hay:clone()
  2456.                 hay2.Parent = char
  2457.                 hay2.CFrame = char.Torso.CFrame*CFrame.new(0,-2.6,0)*CFrame.Angles(0,6,0)
  2458.                 local fire = Instance.new("Fire",hay)
  2459.                 fire.Enabled = false
  2460.                 fire.Heat = 25
  2461.                 fire.Size = 2
  2462.                 fire.Color = Color3.new(170/255,85/255,0)
  2463.                 local smoke = Instance.new("Smoke",hay)
  2464.                 smoke.Enabled = false
  2465.                 smoke.Opacity = 1
  2466.                 smoke.RiseVelocity = 25
  2467.                 smoke.Size = 15
  2468.                 smoke.Color = Color3.new(0,0,0)
  2469.                 local light = Instance.new("PointLight",hay)
  2470.                 light.Color = Color3.new(170/255,85/255,0)
  2471.                 light.Range = 0
  2472.                 light.Brightness = 1
  2473.                 light.Enabled = false
  2474.                 --[[]]
  2475.                 local crack = Instance.new("Sound",hay)
  2476.                 crack.SoundId = "rbxassetid://239443642"
  2477.                 crack.Looped = true
  2478.                 crack.Volume = 0
  2479.                 local scream = Instance.new("Sound",char.Torso)
  2480.                 scream.SoundId = "rbxassetid://264227115"
  2481.                 scream.Looped = true
  2482.                 scream.Volume = 0
  2483.                 --]]
  2484.                 wait()
  2485.                 char['Left Arm'].CFrame = char.Torso.CFrame * CFrame.new(-0.8,0,0.7) * CFrame.Angles(-1,0,0.5)
  2486.                 char['Right Arm'].CFrame = char.Torso.CFrame * CFrame.new(0.8,0,0.7) * CFrame.Angles(-1,0,-0.5)
  2487.                
  2488.                 local bods = char['Body Colors']
  2489.                 local colors = {
  2490.                     --"Really red";
  2491.                     "Bright red";
  2492.                     "Crimson";
  2493.                     "Maroon";
  2494.                     "Really black";
  2495.                 }
  2496.                
  2497.                 fire.Enabled=true
  2498.                 smoke.Enabled=true
  2499.                 light.Enabled=true
  2500.                 crack:Play()
  2501.                 scream:Play()
  2502.                 scream.Pitch = 0.8
  2503.                 --scream.Volume = 0.5
  2504.                 for i=1,30 do
  2505.                     crack.Volume = crack.Volume+(1/30)
  2506.                     scream.Volume = crack.Volume
  2507.                     fire.Size=i
  2508.                     smoke.RiseVelocity=i-5
  2509.                     smoke.Size=i/2
  2510.                     light.Range=i*2
  2511.                     wait(1)
  2512.                 end
  2513.                
  2514.                 for i=1,#colors do
  2515.                     bods.HeadColor=BrickColor.new(colors[i])
  2516.                     bods.LeftArmColor=BrickColor.new(colors[i])
  2517.                     bods.LeftLegColor=BrickColor.new(colors[i])
  2518.                     bods.RightArmColor=BrickColor.new(colors[i])
  2519.                     bods.RightLegColor=BrickColor.new(colors[i])
  2520.                     bods.TorsoColor=BrickColor.new(colors[i])
  2521.                     hay.BrickColor=BrickColor.new(colors[i])
  2522.                     hay2.BrickColor=BrickColor.new(colors[i])
  2523.                     stake.BrickColor=BrickColor.new(colors[i])
  2524.                     wait(5)
  2525.                 end
  2526.                 wait(10)
  2527.                 scream.Volume = 0.5
  2528.                 wait(1)
  2529.                 scream:Stop()
  2530.                 char:BreakJoints()
  2531.             end
  2532.         end)
  2533.  
  2534. addcmd('unfreecam','unfreecam',{'nofreecam','unfc','nofc'},
  2535. function(args, speaker)
  2536. if speaker.userId ~= LP.userId then
  2537. lponly(speaker)
  2538. else
  2539. UFC()
  2540. end
  2541. end)
  2542.  
  2543. addcmd('freecamspeed','unfreecam',{'fcspeed'},
  2544. function(args, speaker)
  2545. if speaker.userId ~= LP.userId then
  2546. lponly(speaker)
  2547. else
  2548. if isNumber(args[1]) then
  2549. cs = args[1]
  2550. end end end)
  2551.  
  2552. addcmd('nolight', 'no more light',{'unlight'},
  2553. function(args, speaker)
  2554.     local players = getPlayer(args[1], speaker)
  2555.     for i,v in pairs(players)do
  2556.         local pchar=_char(v)
  2557.         for j,v1 in pairs(pchar.HumanoidRootPart:GetChildren()) do
  2558.             if v1:IsA("PointLight") then
  2559.                 v1:Destroy()
  2560.             end
  2561.         end
  2562.     end
  2563. end)
  2564.  
  2565. addcmd('ball', 'makes a hamster ball for a player',{'hamsterball'},
  2566. function(args, speaker)
  2567.     local players = getPlayer(args[1], speaker)
  2568.     for i,v in pairs(players)do
  2569.         local pchar=_char(v)
  2570.           scale = 10
  2571.  
  2572. function weld(tab)
  2573.         local last = nil
  2574.         for i,v in pairs(tab) do
  2575.                 if v:IsA("BasePart") then
  2576.                         if last then
  2577.                                 local w = Instance.new("Weld",last)
  2578.                                 w.Part0 = w.Parent
  2579.                                 w.Part1 = v
  2580.                                 local pos = last.CFrame:toObjectSpace(v.CFrame)
  2581.                                 w.C0 = pos
  2582.                         end
  2583.                         last = v
  2584.                 end
  2585.         end
  2586. end        
  2587.  
  2588. function makeball(pos)
  2589. local model = Instance.new("Model",workspace)
  2590. model.Name = gPlayers[v].Name .. "ball"
  2591. local rand = BrickColor.Random()
  2592. pchar.Head.Anchored = true
  2593. for i=0,340,20 do
  2594.         wait()
  2595.         for z=-90,70,20 do
  2596.                 local p = Instance.new("Part",model)
  2597.                 p.formFactor = "Custom"
  2598.                 p.BrickColor = rand
  2599.                 p.Transparency = 0.5
  2600.                 p.Size = Vector3.new(scale/5.5,scale/5.5,scale/140)
  2601.                 p.Anchored = true
  2602.                 p.TopSurface = 0
  2603.                 p.BottomSurface = 0
  2604.                 p.CFrame = CFrame.new(pos) * CFrame.Angles(math.rad(z),math.rad(i),0) * CFrame.new(0,0,-scale/2)
  2605.                 p:breakJoints()
  2606.         end
  2607. end
  2608. weld(model:children())
  2609. for i,v in pairs(model:children()) do v.Anchored = false end
  2610. pchar.Head.Anchored = false
  2611. model:MakeJoints()
  2612. end
  2613.  
  2614.         if pchar then
  2615.                 makeball(pchar.HumanoidRootPart.Position+Vector3.new(0,scale/2-2.5,0))
  2616.         end
  2617.     end
  2618. end)
  2619.  
  2620. addcmd('unball', 'makes a hamster ball for a player',{'unhamsterball','noball','nohamsterball'},
  2621. function(args, speaker)
  2622.     local players = getPlayer(args[1], speaker)
  2623.     for i,v in pairs(players)do
  2624.     local pchar=_char(v)
  2625.     for _, child in pairs( workspace:GetChildren()) do
  2626.     if child.Name == gPlayers[v].Name .. "ball" then
  2627.         child:Destroy()
  2628.     end
  2629. end
  2630. end
  2631. end)
  2632.  
  2633. local fastwait = function(time)
  2634.     local expire = tick()+(time or 0.02999999999999999889)
  2635.     while game:GetService("RunService").Heartbeat:wait() do
  2636.         if tick() >= expire then return true end
  2637.     end
  2638. end
  2639.  
  2640. function arrest(name)
  2641.     spawn(function()
  2642.     local p = game:GetService("Players"):FindFirstChild(name)
  2643.     local char = p.Character
  2644.                         local torso = p.Character:FindFirstChild("HumanoidRootPart")
  2645.                         local humanoid = p.Character:FindFirstChild("Humanoid")
  2646.                         if torso and humanoid and not char:FindFirstChild("ADONIS_VAN") then
  2647.                             local van = game:GetService("InsertService"):LoadLocalAsset("rbxassetid://01308109587")
  2648.                             if van then
  2649.                                 local function check()
  2650.                                     if not van or not van.Parent or not p or p.Parent ~= game:GetService("Players") or not torso or not humanoid or not torso.Parent or not humanoid.Parent or not char or not char.Parent then
  2651.                                         return false
  2652.                                     else
  2653.                                         return true
  2654.                                     end
  2655.                                 end
  2656.                                
  2657.                                 --local driver = van.Driver
  2658.                                 --local grabber = van.Clown
  2659.                                 local primary = van.Primary
  2660.                                 --local door = van.Door
  2661.                                 local tPos = torso.CFrame
  2662.                                
  2663.                                 local sound = Instance.new("Sound",primary)
  2664.                                 sound.SoundId = "rbxassetid://258529216"
  2665.                                 sound.Looped = true
  2666.                                 sound:Play()
  2667.                                
  2668.                                 local chuckle = Instance.new("Sound",primary)
  2669.                                 chuckle.SoundId = "rbxassetid://175964948"
  2670.                                 chuckle.Looped = true
  2671.                                 chuckle.Volume = 0.5
  2672.                                 chuckle:Play()
  2673.                                
  2674.                                 van.PrimaryPart = van.Primary
  2675.                                 van.Name = "ADONIS_VAN"
  2676.                                 van.Parent = workspace
  2677.                                 humanoid.Name = "NoResetForYou"
  2678.                                 humanoid.WalkSpeed = 0
  2679.                                 sound.Pitch = 1.3
  2680.                                
  2681.                                 local music = workspace:FindFirstChild("COPSONG") or Instance.new("Sound",workspace)
  2682.                                 music.Name = "COPSONG"
  2683.                                 music.SoundId = "rbxassetid://132007810"
  2684.                                 music.Volume = 1
  2685.                                 music.Looped = true
  2686.                                 if not music.Playing then music:Play() end
  2687.                                
  2688.                                 spawn(function()
  2689.                                     while fastwait(0.2) do
  2690.                                         van.Body.Lightbar.Red.PointLight.Enabled = true
  2691.                                         van.Body.Lightbar.Blue.PointLight.Enabled = false
  2692.                                         fastwait(0.2)
  2693.                                         van.Body.Lightbar.Red.PointLight.Enabled = false
  2694.                                         van.Body.Lightbar.Blue.PointLight.Enabled = true
  2695.                                     end
  2696.                                 end)
  2697.                                
  2698.                                 for i = 1,200 do
  2699.                                     if not check() then
  2700.                                         break
  2701.                                     else
  2702.                                         van:SetPrimaryPartCFrame(tPos*(CFrame.new(-200+i,-1,-7)*CFrame.Angles(0,math.rad(270),0)))
  2703.                                         fastwait(0.001*(i/5))
  2704.                                     end
  2705.                                 end
  2706.                                
  2707.                                 sound.Pitch = 0.9
  2708.                                
  2709.                                 fastwait(0.5)
  2710.                                 if check() then
  2711.                                     --door.Transparency = 1
  2712.                                 end
  2713.                                
  2714.                                 local freeze = Instance.new("Sound",primary)
  2715.                                 freeze.SoundId = "rbxassetid://163732279"
  2716.                                 freeze.Volume = 5
  2717.                                 freeze:Play()
  2718.                                
  2719.                                 fastwait(3)
  2720.                                
  2721.                                 if check() then
  2722.                                     torso.CFrame = primary.CFrame*(CFrame.new(0,2.3,0)*CFrame.Angles(0,math.rad(90),0))
  2723.                                 end
  2724.                                
  2725.                                 fastwait(0.5)
  2726.                                 if check() then
  2727.                                     --door.Transparency = 0
  2728.                                 end
  2729.                                 fastwait(0.5)
  2730.                                
  2731.                                 sound.Pitch = 1.3
  2732.                                 local gui = Instance.new("ScreenGui")
  2733.                                 local frame = Instance.new("Frame",gui)
  2734.                                 frame.BackgroundTransparency = 1
  2735.                                 frame.BackgroundColor3 = Color3.new(0,0,0)
  2736.                                 frame.Position = UDim2.new(0,0,0,-36)
  2737.                                 frame.Size = UDim2.new(1,0,1,36)
  2738.                                 spawn(function()
  2739.                                     for i = 1,0,-0.01 do
  2740.                                         frame.BackgroundTransparency = i
  2741.                                         fastwait(0.1)
  2742.                                     end
  2743.                                     frame.BackgroundTransparency = 0
  2744.                                 end)
  2745.                                
  2746.                                 p.CameraMaxZoomDistance = 0.5
  2747.                                
  2748.                                 torso.Anchored = true
  2749.                                
  2750.                                 for i = 1,400 do
  2751.                                     if not check() then
  2752.                                         break
  2753.                                     else
  2754.                                         van:SetPrimaryPartCFrame(tPos*(CFrame.new(0+i,-1,-7)*CFrame.Angles(0,math.rad(270),0)))
  2755.                                         torso.CFrame = primary.CFrame*(CFrame.new(0,-0.4,0)*CFrame.Angles(0,math.rad(90),0))
  2756.                                         fastwait(0.1/(i*5))
  2757.                                        
  2758.                                         if i == 270 then
  2759.                                             music.Volume = 5
  2760.                                         end
  2761.                                     end
  2762.                                 end
  2763.                                
  2764. local function KICK(P)
  2765.     spawn(function()
  2766.         if not FindTable(WL, P.Name) then
  2767.         for i = 1,5 do
  2768.             if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then
  2769.                 P.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  2770.                 local SP = Instance.new('SkateboardPlatform', P.Character) SP.Position = P.Character.HumanoidRootPart.Position SP.Transparency = 1
  2771.                 spawn(function()
  2772.                     repeat fastwait()
  2773.                         if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then SP.Position = P.Character.HumanoidRootPart.Position end
  2774.                     until not game:GetService("Players"):FindFirstChild(P.Name)
  2775.                 end)
  2776.                 P.Character.HumanoidRootPart.Anchored = true
  2777.             end
  2778.         end
  2779.         end
  2780.     end)
  2781. end
  2782.                                
  2783.                                 if p and p.Parent == game:GetService("Players") then
  2784.                                     if p == game:GetService("Players").LocalPlayer then
  2785.                                         fastwait(5)
  2786.                                     end
  2787.                                     torso.Anchored = false
  2788.                                     p.CharacterAdded:Connect(function()
  2789.                                         fastwait()
  2790.                                         KICK(p)
  2791.                                     end)
  2792.                                     KICK(p)
  2793.                                 end
  2794.                                 fastwait(0.5)
  2795.                                 pcall(function() van:Destroy() end)
  2796.                                 pcall(function() gui:Destroy() end)
  2797.                                 if not workspace:FindFirstChild("ADONIS_VAN") then
  2798.                                     music:Destroy()
  2799.                                 end
  2800.                             end
  2801.                         end
  2802.     end)
  2803. end
  2804.  
  2805. addcmd('arrest', 'arrests player',{},
  2806. function(args, speaker)
  2807.     local players = getPlayer(args[1], speaker)
  2808.     for i,v in pairs(players)do
  2809.         arrest(gPlayers[v].Name)
  2810.     end
  2811. end)
  2812.  
  2813. addcmd('nodummies', 'clears dummies',{},
  2814. function(args, speaker)
  2815. for _, child in pairs( workspace:GetChildren()) do
  2816.     if child:FindFirstChild('isdummy') then
  2817.         child:Destroy()
  2818.     end
  2819. end
  2820. end)
  2821.  
  2822. addcmd('dummy','Make a dummy(usage: ;dummy name)',{},
  2823. function(args, speaker)
  2824.          local name = GLS(false, 0)
  2825.         local lchar = game:GetService('Players').LocalPlayer
  2826.         local Model0 = Instance.new("Model")
  2827.         local Part1 = Instance.new("Part")
  2828.         local SpecialMesh2 = Instance.new("SpecialMesh")
  2829.         local Decal3 = Instance.new("Decal")
  2830.         local Part4 = Instance.new("Part")
  2831.         local Motor5 = Instance.new("Motor")
  2832.         local Motor6 = Instance.new("Motor")
  2833.         local Motor7 = Instance.new("Motor")
  2834.         local Motor8 = Instance.new("Motor")
  2835.         local Motor9 = Instance.new("Motor")
  2836.         local Part10 = Instance.new("Part")
  2837.         local Part11 = Instance.new("Part")
  2838.         local Part12 = Instance.new("Part")
  2839.         local Part13 = Instance.new("Part")
  2840.         local dum = Instance.new("BoolValue")
  2841.         dum.Name = "isdummy"
  2842.         dum.Parent = Model0
  2843.         local Humanoid14 = Instance.new("Humanoid")
  2844.         Model0.Name = name
  2845.         Model0.Parent = workspace
  2846.         Model0.PrimaryPart = Part1
  2847.         Part1.Name = "Head"
  2848.         Part1.Parent = Model0
  2849.         Part1.BrickColor = BrickColor.new("Bright yellow")
  2850.         Part1.CanCollide = false
  2851.         Part1.FormFactor = Enum.FormFactor.Symmetric
  2852.         Part1.Friction = 0
  2853.         Part1.Size = Vector3.new(2, 1, 1)
  2854.         Part1.CFrame = CFrame.new(3.49000192, 4.49999905, 7.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2855.         Part1.TopSurface = Enum.SurfaceType.Smooth
  2856.         Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  2857.         Part1.Position = Vector3.new(3.49000192, 4.49999905, 7.75)
  2858.         Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  2859.         SpecialMesh2.Parent = Part1
  2860.         SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  2861.         SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  2862.         Decal3.Name = "face"
  2863.         Decal3.Parent = Part1
  2864.         Decal3.Texture = "rbxasset://textures/face.png"
  2865.         Part4.Name = "Torso"
  2866.         Part4.Parent = Model0
  2867.         Part4.BrickColor = BrickColor.new("Bright blue")
  2868.         Part4.CanCollide = false
  2869.         Part4.FormFactor = Enum.FormFactor.Symmetric
  2870.         Part4.Friction = 0
  2871.         Part4.Size = Vector3.new(2, 2, 1)
  2872.         Part4.CFrame = CFrame.new(3.49000192, 2.99999905, 7.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2873.         Part4.LeftSurface = Enum.SurfaceType.Weld
  2874.         Part4.RightSurface = Enum.SurfaceType.Weld
  2875.         Part4.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  2876.         Part4.Position = Vector3.new(3.49000192, 2.99999905, 7.75)
  2877.         Part4.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  2878.         Motor5.Name = "Right Shoulder"
  2879.         Motor5.Parent = Part4
  2880.         Motor5.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2881.         Motor5.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2882.         Motor5.Part0 = Part4
  2883.         Motor5.Part1 = Part11
  2884.         Motor5.DesiredAngle = 0.083800852298737
  2885.         Motor5.MaxVelocity = 0.15000000596046
  2886.         Motor6.Name = "Left Shoulder"
  2887.         Motor6.Parent = Part4
  2888.         Motor6.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2889.         Motor6.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2890.         Motor6.Part0 = Part4
  2891.         Motor6.Part1 = Part10
  2892.         Motor6.DesiredAngle = 0.083800852298737
  2893.         Motor6.MaxVelocity = 0.15000000596046
  2894.         Motor7.Name = "Left Hip"
  2895.         Motor7.Parent = Part4
  2896.         Motor7.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2897.         Motor7.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2898.         Motor7.Part0 = Part4
  2899.         Motor7.Part1 = Part12
  2900.         Motor7.DesiredAngle = -0.083800852298737
  2901.         Motor7.MaxVelocity = 0.10000000149012
  2902.         Motor8.Name = "Neck"
  2903.         Motor8.Parent = Part4
  2904.         Motor8.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2905.         Motor8.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2906.         Motor8.Part0 = Part4
  2907.         Motor8.Part1 = Part1
  2908.         Motor8.MaxVelocity = 0.10000000149012
  2909.         Motor9.Name = "Right Hip"
  2910.         Motor9.Parent = Part4
  2911.         Motor9.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2912.         Motor9.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2913.         Motor9.Part0 = Part4
  2914.         Motor9.Part1 = Part13
  2915.         Motor9.DesiredAngle = -0.083800852298737
  2916.         Motor9.MaxVelocity = 0.10000000149012
  2917.         Part10.Name = "Left Arm"
  2918.         Part10.Parent = Model0
  2919.         Part10.BrickColor = BrickColor.new("Bright yellow")
  2920.         Part10.CanCollide = false
  2921.         Part10.FormFactor = Enum.FormFactor.Symmetric
  2922.         Part10.Size = Vector3.new(1, 2, 1)
  2923.         Part10.CFrame = CFrame.new(1.99000192, 2.99999905, 7.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2924.         Part10.Color = Color3.new(0.960784, 0.803922, 0.188235)
  2925.         Part10.Position = Vector3.new(1.99000192, 2.99999905, 7.75)
  2926.         Part10.Color = Color3.new(0.960784, 0.803922, 0.188235)
  2927.         Part11.Name = "Right Arm"
  2928.         Part11.Parent = Model0
  2929.         Part11.BrickColor = BrickColor.new("Bright yellow")
  2930.         Part11.CanCollide = false
  2931.         Part11.FormFactor = Enum.FormFactor.Symmetric
  2932.         Part11.Size = Vector3.new(1, 2, 1)
  2933.         Part11.CFrame = CFrame.new(4.99000168, 2.99999905, 7.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2934.         Part11.Color = Color3.new(0.960784, 0.803922, 0.188235)
  2935.         Part11.Position = Vector3.new(4.99000168, 2.99999905, 7.75)
  2936.         Part11.Color = Color3.new(0.960784, 0.803922, 0.188235)
  2937.         Part12.Name = "Left Leg"
  2938.         Part12.Parent = Model0
  2939.         Part12.BrickColor = BrickColor.new("Br. yellowish green")
  2940.         Part12.CanCollide = false
  2941.         Part12.FormFactor = Enum.FormFactor.Symmetric
  2942.         Part12.Size = Vector3.new(1, 2, 1)
  2943.         Part12.CFrame = CFrame.new(2.99000192, 0.999999046, 7.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2944.         Part12.BottomSurface = Enum.SurfaceType.Smooth
  2945.         Part12.Color = Color3.new(0.643137, 0.741176, 0.278431)
  2946.         Part12.Position = Vector3.new(2.99000192, 0.999999046, 7.75)
  2947.         Part12.Color = Color3.new(0.643137, 0.741176, 0.278431)
  2948.         Part13.Name = "Right Leg"
  2949.         Part13.Parent = Model0
  2950.         Part13.BrickColor = BrickColor.new("Br. yellowish green")
  2951.         Part13.CanCollide = false
  2952.         Part13.FormFactor = Enum.FormFactor.Symmetric
  2953.         Part13.Size = Vector3.new(1, 2, 1)
  2954.         Part13.CFrame = CFrame.new(3.99000192, 0.999999046, 7.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2955.         Part13.BottomSurface = Enum.SurfaceType.Smooth
  2956.         Part13.Color = Color3.new(0.643137, 0.741176, 0.278431)
  2957.         Part13.Position = Vector3.new(3.99000192, 0.999999046, 7.75)
  2958.         Part13.Color = Color3.new(0.643137, 0.741176, 0.278431)
  2959.         Humanoid14.Parent = Model0
  2960.         Humanoid14.RightLeg = Part13
  2961.         Humanoid14.LeftLeg = Part12
  2962.         Humanoid14.Torso = Part4
  2963.         Model0:MoveTo(game:GetService('Players').LocalPlayer.Character:GetModelCFrame().p)
  2964.         Model0.Parent = game:GetService('Workspace')
  2965. end)
  2966.  
  2967. addcmd('loopkill', 'rip person',{'lkill'},
  2968. function(args, speaker)
  2969.     local players = getPlayer(args[1], speaker)
  2970.     for i,v in pairs(players)do
  2971.         if not FindTable(loopkillT, _players[v].Name) then
  2972.             table.insert(loopkillT, _players[v].Name)
  2973.             if FindTable(SPC, args[1]) then Notify('Loopkilling ' .. args[1]) else
  2974.             Notify('Loopkilling player(s)') end end end end)
  2975.  
  2976. addcmd('unloopkill', 'un rip person',{'unlkill'},
  2977. function(args, speaker)
  2978.     local players = getPlayer(args[1], speaker)
  2979.     for i,v in pairs(players)do
  2980.         if FindTable(loopkillT, _players[v].Name) then
  2981.             table.remove(loopkillT, GetInTable(loopkillT, _players[v].Name))
  2982.             if FindTable(SPC, args[1]) then Notify('No longer loopkilling ' .. args[1]) else
  2983.             Notify('No longer loopkilling player(s)') end end end end)
  2984.  
  2985. addcmd('disabletools', 'removes their tools',{'loopremovetools'},
  2986. function(args, speaker)
  2987.     local players = getPlayer(args[1], speaker)
  2988.     for i,v in pairs(players)do
  2989.         if not FindTable(disabletoolsT, _players[v].Name) then
  2990.             table.insert(disabletoolsT, _players[v].Name)
  2991.             if FindTable(SPC, args[1]) then Notify('Disabled tools for ' .. args[1]) else
  2992.             Notify('Disabled tools for player(s)') end end end end)
  2993.  
  2994. addcmd('enabletools', 'lets them have tools',{},
  2995. function(args, speaker)
  2996.     local players = getPlayer(args[1], speaker)
  2997.     for i,v in pairs(players)do
  2998.         if FindTable(disabletoolsT, _players[v].Name) then
  2999.             table.remove(disabletoolsT, GetInTable(disabletoolsT, _players[v].Name)) wait(0.1) refresh(_players[v])
  3000.             if FindTable(SPC, args[1]) then Notify('Enabled tools for ' ..args[1]) else
  3001.             Notify('Enabled tools for player(s)') end end end end)
  3002.  
  3003. addcmd('refresh', 'refresh their player model',{'re'},
  3004. function(args, speaker)
  3005.     local players = getPlayer(args[1], speaker)
  3006.     for i,v in pairs(players)do
  3007.             refresh(_players[v])
  3008.             end end)
  3009.  
  3010. local fastwait = function(time)
  3011.     local expire = tick()+(time or 0.02999999999999999889)
  3012.     while game:GetService("RunService").Heartbeat:wait() do
  3013.         if tick() >= expire then return true end
  3014.     end
  3015. end
  3016.  
  3017. function gull(name)
  3018.     spawn(function()
  3019.     local char = game:GetService("Players")[name].Character
  3020.     char.PrimaryPart = char.HumanoidRootPart
  3021.    
  3022.     local tors = game:GetService("Players")[name].Character.HumanoidRootPart
  3023.     local initCFrame = tors.CFrame
  3024.    
  3025.     if char:FindFirstChild("Torso") then
  3026.         char.Torso.Anchored = true
  3027.     else
  3028.         char.UpperTorso.Anchored = true
  3029.     end
  3030.     char:FindFirstChildOfClass("Humanoid").Name = "Sad"
  3031.  
  3032.     local gull = Instance.new("Part")
  3033.     gull.Anchored = true
  3034.     gull.CanCollide = false
  3035.     gull.Position = Vector3.new(0,100000,0)
  3036.     local mesh = Instance.new("SpecialMesh",gull)
  3037.     mesh.MeshId = "http://www.roblox.com/asset/?id=272501436"
  3038.     mesh.TextureId = "http://www.roblox.com/asset/?id=267684509"
  3039.     mesh.Scale = Vector3.new(10,10,10)
  3040.    
  3041.     local leftWing = Instance.new("Part",gull)
  3042.     leftWing.CanCollide = false
  3043.     local lmesh = Instance.new("SpecialMesh",leftWing)
  3044.     lmesh.MeshId = "http://www.roblox.com/asset/?id=267684584"
  3045.     lmesh.TextureId = "http://www.roblox.com/asset/?id=267684509"
  3046.     lmesh.Scale = Vector3.new(10,10,10)
  3047.     local leftMotor = Instance.new("Motor6D",gull)
  3048.     leftMotor.MaxVelocity = 1
  3049.     leftMotor.Part0 = gull
  3050.     leftMotor.Part1 = leftWing
  3051.     leftMotor.C0 = CFrame.new(-50.2919998, -0.0920021087, 0.280000001)
  3052.    
  3053.     local rightWing = Instance.new("Part",gull)
  3054.     rightWing.CanCollide = false
  3055.     local rmesh = Instance.new("SpecialMesh",rightWing)
  3056.     rmesh.MeshId = "http://www.roblox.com/asset/?id=267684651"
  3057.     rmesh.TextureId = "http://www.roblox.com/asset/?id=267684509"
  3058.     rmesh.Scale = Vector3.new(10,10,10)
  3059.     local rightMotor = Instance.new("Motor6D",gull)
  3060.     rightMotor.MaxVelocity = 1
  3061.     rightMotor.Part0 = gull
  3062.     rightMotor.Part1 = rightWing
  3063.     rightMotor.C0 = CFrame.new(47.1930008, -0.0670021027, 0.280000001)
  3064.    
  3065.     local sound = Instance.new("Sound",gull)
  3066.     sound.SoundId = "rbxassetid://160877039"
  3067.     sound.Volume = 10
  3068.     gull.Parent = workspace
  3069.  
  3070.     for i = 400,-1000,-2 do
  3071.         local der = 0.02*i
  3072.         local angle = math.atan(der/1)
  3073.         gull.CFrame = initCFrame*CFrame.Angles(angle,math.pi,0) + initCFrame.lookVector * (i+5) + Vector3.new(0,0.01*i^2+7,0)
  3074.         if i == 0 then sound:Play() end
  3075.         if i <= 0 then
  3076.             char:SetPrimaryPartCFrame(gull.CFrame)
  3077.             local nextAngle = -0.2*math.sin(0.05*math.pi*(i))
  3078.             leftMotor.DesiredAngle = -nextAngle
  3079.             leftMotor.C0 = CFrame.new(-50.2919998, 47.193*math.tan(nextAngle), 0.280000001)
  3080.             rightMotor.DesiredAngle = nextAngle
  3081.             rightMotor.C0 = CFrame.new(47.1930008, 47.193*math.tan(nextAngle), 0.280000001)
  3082.         end
  3083.         game:GetService("RunService").RenderStepped:wait()
  3084.     end
  3085.    
  3086.     local function KICK(P)
  3087.     spawn(function()
  3088.         if not FindTable(WL, P.Name) then
  3089.         for i = 1,5 do
  3090.             if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then
  3091.                 P.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  3092.                 local SP = Instance.new('SkateboardPlatform', P.Character) SP.Position = P.Character.HumanoidRootPart.Position SP.Transparency = 1
  3093.                 spawn(function()
  3094.                     repeat wait()
  3095.                         if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then SP.Position = P.Character.HumanoidRootPart.Position end
  3096.                     until not game:GetService("Players"):FindFirstChild(P.Name)
  3097.                 end)
  3098.                 P.Character.HumanoidRootPart.Anchored = true
  3099.             end
  3100.         end
  3101.         end
  3102.     end)
  3103.     end
  3104.    
  3105.     if char:FindFirstChild("Torso") then
  3106.         char.Torso.Anchored = false
  3107.     else
  3108.         char.UpperTorso.Anchored = false
  3109.     end
  3110.    
  3111.     spawn(function()
  3112.     if game:GetService("Players")[name] == game:GetService("Players").LocalPlayer then wait(5) end
  3113.     game:GetService("Players")[name].CharacterAdded:Connect(function()
  3114.         wait()
  3115.         KICK(game:GetService("Players")[name])
  3116.     end)
  3117.     KICK(game:GetService("Players")[name])
  3118.     end)
  3119.    
  3120.         local go = Instance.new("BodyVelocity",gull)
  3121.         go.Velocity = Vector3.new(0,1000,0)
  3122.         go.MaxForce = Vector3.new(1000000,1000000,1000000)
  3123.         gull.Anchored = false
  3124.     end)
  3125. end
  3126.  
  3127. addcmd('seagull', 'seagulls player',{'gull'},
  3128. function(args, speaker)
  3129.     local players = getPlayer(args[1], speaker)
  3130.     for i,v in pairs(players)do
  3131.         gull(gPlayers[v].Name)
  3132.     end
  3133. end)
  3134.  
  3135. local song = nil
  3136. function zinniaKick(name)
  3137.     spawn(function()
  3138.             if song == nil or song.Parent == nil then
  3139.                 song = Instance.new("Sound",workspace)
  3140.                 song.SoundId = "rbxassetid://190423831"
  3141.                 song.Volume = 1
  3142.                 song.Looped = true
  3143.                 song:Play()
  3144.             end
  3145.             local zin = Instance.new("Part")
  3146.             zin.Name = "CuteZinnia"
  3147.             zin.Anchored = true
  3148.             zin.CanCollide = false
  3149.             zin.Locked = true
  3150.             local mesh = Instance.new("SpecialMesh")
  3151.             mesh.MeshId = "rbxassetid://1175670539"
  3152.             mesh.TextureId = "rbxassetid://1175670558"
  3153.             mesh.Scale = Vector3.new(0.05,0.05,0.05)
  3154.             mesh.Offset = Vector3.new(0,0.88,0)
  3155.             mesh.Parent = zin
  3156.             local char = game:GetService("Players")[name].Character
  3157.             char.PrimaryPart = char.HumanoidRootPart
  3158.             if char:FindFirstChild("Torso") then
  3159.                 char.Torso.Anchored = true
  3160.             else
  3161.                 char.UpperTorso.Anchored = true
  3162.             end
  3163.             zin.CFrame = (char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*50) * CFrame.Angles(0,math.pi,0) + Vector3.new(0,500,0) + (char:FindFirstChild("UpperTorso") and Vector3.new(0,0.9,0) or Vector3.new(0,0,0))
  3164.             zin.Parent = workspace
  3165.             local tween = game:GetService("TweenService"):Create(zin,TweenInfo.new(3,Enum.EasingStyle.Quart,Enum.EasingDirection.Out,0,false,0),{CFrame = zin.CFrame - Vector3.new(0,500,0)})
  3166.             tween:Play()
  3167.             fastwait(3)
  3168.             for i = 50,1,-1 do
  3169.                 zin.CFrame = (char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*i) * CFrame.Angles(0,math.pi,0) + (char:FindFirstChild("UpperTorso") and Vector3.new(0,0.9,0) or Vector3.new(0,0,0))
  3170.                 fastwait()
  3171.             end
  3172.             char:SetPrimaryPartCFrame(zin.CFrame + CFrame.Angles(0,math.pi/2,0)*zin.CFrame.lookVector*3.5 + Vector3.new(0,3,0))
  3173.             fastwait(1)
  3174.             local turns = 0
  3175.  
  3176.             while turns < 200 do
  3177.                 zin.CFrame = zin.CFrame*CFrame.Angles(0,(-math.pi/3)*turns/200,0)
  3178.                 char:SetPrimaryPartCFrame(zin.CFrame + CFrame.Angles(0,math.pi/2,0)*zin.CFrame.lookVector*3.5 + Vector3.new(0,3,0))
  3179.                 turns = turns + 1
  3180.                 fastwait()
  3181.             end
  3182.             for i = 1,10 do
  3183.                 zin.CFrame = zin.CFrame*CFrame.Angles(0,(-math.pi/3)*turns/200,0)
  3184.                 char:SetPrimaryPartCFrame(zin.CFrame + CFrame.Angles(0,math.pi/2,0)*zin.CFrame.lookVector*3.5 + Vector3.new(0,3,0))
  3185.                 fastwait()
  3186.             end
  3187.             local rX,rZ = 0,0
  3188.             repeat rX = math.random(-10000,10000) until math.abs(rX) > 5000
  3189.                 repeat rZ = math.random(-10000,10000) until math.abs(rZ) > 5000
  3190.                     local bv = Instance.new("BodyForce",char.HumanoidRootPart)
  3191.                     bv.Force = Vector3.new(rX,10000,rZ)
  3192.                     if char:FindFirstChild("Torso") then
  3193.                         char.Torso.Anchored = false
  3194.                     else
  3195.                         char.UpperTorso.Anchored = false
  3196.                     end
  3197.                     function KICK(P)
  3198.                         spawn(function()
  3199.                             if not FindTable(WL, P.Name) then
  3200.                                 for i = 1,5 do
  3201.                                     if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then
  3202.                                         P.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  3203.                                         local SP = Instance.new('SkateboardPlatform', P.Character) SP.Position = P.Character.HumanoidRootPart.Position SP.Transparency = 1
  3204.                                         spawn(function()
  3205.                                                 repeat fastwait()
  3206.                                                     if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then SP.Position = P.Character.HumanoidRootPart.Position end
  3207.                                                 until not game:GetService("Players"):FindFirstChild(P.Name)
  3208.                                             end)
  3209.                                         P.Character.HumanoidRootPart.Anchored = true
  3210.                                     end
  3211.                                 end
  3212.                             end
  3213.                         end)
  3214.                     end
  3215.                     spawn(function()
  3216.                             if game:GetService("Players")[name] == game:GetService("Players").LocalPlayer then fastwait(10) else fastwait(5) end
  3217.                             game:GetService("Players")[name].CharacterAdded:Connect(function()
  3218.                                     fastwait()
  3219.                                     KICK(game:GetService("Players")[name])
  3220.                                 end)
  3221.                             KICK(game:GetService("Players")[name])
  3222.                         end)
  3223.                     for i = 1,20 do
  3224.                         zin.CFrame = zin.CFrame*CFrame.Angles(0,(-math.pi/3)*turns/200,0)
  3225.                         fastwait()
  3226.                     end
  3227.                     while turns > 0 do
  3228.                         zin.CFrame = zin.CFrame*CFrame.Angles(0,(-math.pi/3)*turns/200,0)
  3229.                         turns = turns - 5
  3230.                         fastwait()
  3231.                     end
  3232.                     fastwait(1)
  3233.                     zin.Name = "GoneZinnia"
  3234.                     local go = Instance.new("BodyVelocity",zin)
  3235.                     go.Velocity = zin.CFrame.lookVector * 100
  3236.                     go.MaxForce = Vector3.new(1000000,1000000,1000000)
  3237.                     zin.Anchored = false
  3238.                     fastwait(20)
  3239.          if song and not workspace:FindFirstChild("CuteZinnia") then
  3240.              song:Destroy()
  3241.              song = nil
  3242.          end
  3243.     end)
  3244. end
  3245.  
  3246. addcmd('zinnia', 'asdf for moon',{},
  3247. function(args, speaker)
  3248.     local players = getPlayer(args[1], speaker)
  3249.     for i,v in pairs(players)do
  3250.         zinniaKick(gPlayers[v].Name)
  3251.     end
  3252. end)
  3253.  
  3254. addcmd('rainbowname', 'color spam their name tag',{'rname'},
  3255. function(args, speaker)
  3256.     local players = getPlayer(args[1], speaker)
  3257.     for i,v in pairs(players)do
  3258.         if not FindTable(rainbowT, _players[v].Name) then
  3259.             table.insert(rainbowT, _players[v].Name)
  3260.             if FindTable(SPC, args[1]) then Notify('Gave ' ..args[1].. ' rainbow name') else
  3261.             Notify('Gave player(s) rainbow name') end end end end)
  3262.  
  3263. addcmd('unrainbowname', 'removes their colorful name',{'unrname'},
  3264. function(args, speaker)
  3265.     local players = getPlayer(args[1], speaker)
  3266.     for i,v in pairs(players)do
  3267.         if FindTable(rainbowT, _players[v].Name) then
  3268.             table.remove(rainbowT, GetInTable(rainbowT, _players[v].Name))
  3269.             _players[v].Neutral = true
  3270.             if FindTable(SPC, args[1]) then Notify('Disabled rainbow name for ' ..args[1]) else
  3271.             Notify('Disabled rainbow name for player(s)') end end end end)
  3272.  
  3273. addcmd('terrain', 'gives you terrain tools',{'tt'},
  3274. function(args, speaker)
  3275. if speaker.userId ~= LP.userId then
  3276. lponly(speaker)
  3277. else
  3278. --Terrain Script
  3279. --Edge/IoIman616
  3280.  
  3281. for _, child in pairs( gPlayers.LocalPlayer.PlayerGui:GetChildren()) do
  3282.     if child.Name == "MaterialGui" then
  3283.         child:Destroy()
  3284.     end
  3285. end
  3286.  
  3287. function sandbox(var,func)
  3288.     local env = getfenv(func)
  3289.     local newenv = setmetatable({},{
  3290.         __index = function(self,k)
  3291.             if k=="script" then
  3292.                 return var
  3293.             else
  3294.                 return env[k]
  3295.             end
  3296.         end,
  3297.     })
  3298.     setfenv(func,newenv)
  3299.     return func
  3300. end
  3301. cors = {}
  3302. mas = Instance.new("Model",game:GetService("Lighting"))
  3303. HopperBin0 = Instance.new("HopperBin")
  3304. HopperBin0.Name = "Terrain Build"
  3305. HopperBin0.Parent = mas
  3306. for i,v in pairs(mas:GetChildren()) do
  3307.     v.Parent = game:GetService("Players").LocalPlayer.Backpack
  3308.     pcall(function() v:MakeJoints() end)
  3309. end
  3310. mas:Destroy()
  3311. for i,v in pairs(cors) do
  3312.     spawn(function()
  3313.         pcall(v)
  3314.     end)
  3315. end
  3316.  
  3317. wait(0.01)
  3318.  
  3319. function sandbox(var,func)
  3320.     local env = getfenv(func)
  3321.     local newenv = setmetatable({},{
  3322.         __index = function(self,k)
  3323.             if k=="script" then
  3324.                 return var
  3325.             else
  3326.                 return env[k]
  3327.             end
  3328.         end,
  3329.     })
  3330.     setfenv(func,newenv)
  3331.     return func
  3332. end
  3333. cors = {}
  3334. mas = Instance.new("Model",game:GetService("Lighting"))
  3335. ScreenGui0 = Instance.new("ScreenGui")
  3336. ImageLabel1 = Instance.new("ImageLabel")
  3337. ImageButton2 = Instance.new("ImageButton")
  3338. Frame3 = Instance.new("Frame")
  3339. NumberValue4 = Instance.new("NumberValue")
  3340. ImageButton5 = Instance.new("ImageButton")
  3341. Frame6 = Instance.new("Frame")
  3342. NumberValue7 = Instance.new("NumberValue")
  3343. ImageButton8 = Instance.new("ImageButton")
  3344. Frame9 = Instance.new("Frame")
  3345. NumberValue10 = Instance.new("NumberValue")
  3346. ImageButton11 = Instance.new("ImageButton")
  3347. Frame12 = Instance.new("Frame")
  3348. NumberValue13 = Instance.new("NumberValue")
  3349. ImageButton14 = Instance.new("ImageButton")
  3350. Frame15 = Instance.new("Frame")
  3351. NumberValue16 = Instance.new("NumberValue")
  3352. ImageButton17 = Instance.new("ImageButton")
  3353. Frame18 = Instance.new("Frame")
  3354. NumberValue19 = Instance.new("NumberValue")
  3355. ImageButton20 = Instance.new("ImageButton")
  3356. Frame21 = Instance.new("Frame")
  3357. NumberValue22 = Instance.new("NumberValue")
  3358. ImageButton23 = Instance.new("ImageButton")
  3359. Frame24 = Instance.new("Frame")
  3360. NumberValue25 = Instance.new("NumberValue")
  3361. ImageButton26 = Instance.new("ImageButton")
  3362. Frame27 = Instance.new("Frame")
  3363. NumberValue28 = Instance.new("NumberValue")
  3364. ImageButton29 = Instance.new("ImageButton")
  3365. Frame30 = Instance.new("Frame")
  3366. NumberValue31 = Instance.new("NumberValue")
  3367. ImageButton32 = Instance.new("ImageButton")
  3368. Frame33 = Instance.new("Frame")
  3369. NumberValue34 = Instance.new("NumberValue")
  3370. ImageButton35 = Instance.new("ImageButton")
  3371. Frame36 = Instance.new("Frame")
  3372. NumberValue37 = Instance.new("NumberValue")
  3373. ImageButton38 = Instance.new("ImageButton")
  3374. Frame39 = Instance.new("Frame")
  3375. NumberValue40 = Instance.new("NumberValue")
  3376. ImageButton41 = Instance.new("ImageButton")
  3377. Frame42 = Instance.new("Frame")
  3378. NumberValue43 = Instance.new("NumberValue")
  3379. ImageButton44 = Instance.new("ImageButton")
  3380. Frame45 = Instance.new("Frame")
  3381. NumberValue46 = Instance.new("NumberValue")
  3382. ImageButton47 = Instance.new("ImageButton")
  3383. Frame48 = Instance.new("Frame")
  3384. NumberValue49 = Instance.new("NumberValue")
  3385. ImageButton50 = Instance.new("ImageButton")
  3386. Frame51 = Instance.new("Frame")
  3387. NumberValue52 = Instance.new("NumberValue")
  3388. ImageButton53 = Instance.new("ImageButton")
  3389. Frame54 = Instance.new("Frame")
  3390. ScreenGui0.Name = "MaterialGui"
  3391. ScreenGui0.Parent = mas
  3392. ImageLabel1.Name = "MaterialMenu"
  3393. ImageLabel1.Parent = ScreenGui0
  3394. ImageLabel1.Transparency = 1
  3395. ImageLabel1.Size = UDim2.new(0, 100, 0, 450)
  3396. ImageLabel1.Position = UDim2.new(0, 0, 1, -550)
  3397. ImageLabel1.BackgroundTransparency = 1
  3398. ImageLabel1.ZIndex = 2
  3399. ImageLabel1.Image = "rbxasset://textures/ui/MaterialMenu.png"
  3400. ImageButton2.Name = "Grass"
  3401. ImageButton2.Parent = ImageLabel1
  3402. ImageButton2.Transparency = 1
  3403. ImageButton2.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3404. ImageButton2.Position = UDim2.new(0.0700000003, 0, 0.0599999987, 0)
  3405. ImageButton2.BackgroundTransparency = 1
  3406. ImageButton2.ZIndex = 4
  3407. ImageButton2.Image = "http://www.roblox.com/asset/?id=56563112"
  3408. Frame3.Name = "Selection"
  3409. Frame3.Parent = ImageButton2
  3410. Frame3.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3411. Frame3.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3412. Frame3.BackgroundColor3 = Color3.new(1, 1, 1)
  3413. Frame3.BorderSizePixel = 0
  3414. Frame3.ZIndex = 3
  3415. NumberValue4.Name = "num"
  3416. NumberValue4.Parent = ImageButton2
  3417. NumberValue4.Value = 1
  3418. ImageButton5.Name = "Sand"
  3419. ImageButton5.Parent = ImageLabel1
  3420. ImageButton5.Transparency = 1
  3421. ImageButton5.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3422. ImageButton5.Position = UDim2.new(0.524545431, 0, 0.0599999987, 0)
  3423. ImageButton5.BackgroundTransparency = 1
  3424. ImageButton5.ZIndex = 4
  3425. ImageButton5.Image = "http://www.roblox.com/asset/?id=62356652"
  3426. Frame6.Name = "Selection"
  3427. Frame6.Parent = ImageButton5
  3428. Frame6.Transparency = 1
  3429. Frame6.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3430. Frame6.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3431. Frame6.BackgroundColor3 = Color3.new(1, 1, 1)
  3432. Frame6.BackgroundTransparency = 1
  3433. Frame6.BorderSizePixel = 0
  3434. Frame6.ZIndex = 3
  3435. NumberValue7.Name = "num"
  3436. NumberValue7.Parent = ImageButton5
  3437. NumberValue7.Value = 2
  3438. ImageButton8.Name = "Brick"
  3439. ImageButton8.Parent = ImageLabel1
  3440. ImageButton8.Transparency = 1
  3441. ImageButton8.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3442. ImageButton8.Position = UDim2.new(0.0700000003, 0, 0.161010101, 0)
  3443. ImageButton8.BackgroundTransparency = 1
  3444. ImageButton8.ZIndex = 4
  3445. ImageButton8.Image = "http://www.roblox.com/asset/?id=65961537"
  3446. Frame9.Name = "Selection"
  3447. Frame9.Parent = ImageButton8
  3448. Frame9.Transparency = 1
  3449. Frame9.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3450. Frame9.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3451. Frame9.BackgroundColor3 = Color3.new(1, 1, 1)
  3452. Frame9.BackgroundTransparency = 1
  3453. Frame9.BorderSizePixel = 0
  3454. Frame9.ZIndex = 3
  3455. NumberValue10.Name = "num"
  3456. NumberValue10.Parent = ImageButton8
  3457. NumberValue10.Value = 3
  3458. ImageButton11.Name = "Granite"
  3459. ImageButton11.Parent = ImageLabel1
  3460. ImageButton11.Transparency = 1
  3461. ImageButton11.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3462. ImageButton11.Position = UDim2.new(0.524545431, 0, 0.161010101, 0)
  3463. ImageButton11.BackgroundTransparency = 1
  3464. ImageButton11.ZIndex = 4
  3465. ImageButton11.Image = "http://www.roblox.com/asset/?id=67532153"
  3466. Frame12.Name = "Selection"
  3467. Frame12.Parent = ImageButton11
  3468. Frame12.Transparency = 1
  3469. Frame12.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3470. Frame12.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3471. Frame12.BackgroundColor3 = Color3.new(1, 1, 1)
  3472. Frame12.BackgroundTransparency = 1
  3473. Frame12.BorderSizePixel = 0
  3474. Frame12.ZIndex = 3
  3475. NumberValue13.Name = "num"
  3476. NumberValue13.Parent = ImageButton11
  3477. NumberValue13.Value = 4
  3478. ImageButton14.Name = "Asphalt"
  3479. ImageButton14.Parent = ImageLabel1
  3480. ImageButton14.Transparency = 1
  3481. ImageButton14.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3482. ImageButton14.Position = UDim2.new(0.0700000003, 0, 0.2620202, 0)
  3483. ImageButton14.BackgroundTransparency = 1
  3484. ImageButton14.ZIndex = 4
  3485. ImageButton14.Image = "http://www.roblox.com/asset/?id=67532038"
  3486. Frame15.Name = "Selection"
  3487. Frame15.Parent = ImageButton14
  3488. Frame15.Transparency = 1
  3489. Frame15.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3490. Frame15.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3491. Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
  3492. Frame15.BackgroundTransparency = 1
  3493. Frame15.BorderSizePixel = 0
  3494. Frame15.ZIndex = 3
  3495. NumberValue16.Name = "num"
  3496. NumberValue16.Parent = ImageButton14
  3497. NumberValue16.Value = 5
  3498. ImageButton17.Name = "Iron"
  3499. ImageButton17.Parent = ImageLabel1
  3500. ImageButton17.Transparency = 1
  3501. ImageButton17.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3502. ImageButton17.Position = UDim2.new(0.524545431, 0, 0.2620202, 0)
  3503. ImageButton17.BackgroundTransparency = 1
  3504. ImageButton17.ZIndex = 4
  3505. ImageButton17.Image = "http://www.roblox.com/asset/?id=67532093"
  3506. Frame18.Name = "Selection"
  3507. Frame18.Parent = ImageButton17
  3508. Frame18.Transparency = 1
  3509. Frame18.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3510. Frame18.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3511. Frame18.BackgroundColor3 = Color3.new(1, 1, 1)
  3512. Frame18.BackgroundTransparency = 1
  3513. Frame18.BorderSizePixel = 0
  3514. Frame18.ZIndex = 3
  3515. NumberValue19.Name = "num"
  3516. NumberValue19.Parent = ImageButton17
  3517. NumberValue19.Value = 6
  3518. ImageButton20.Name = "Aluminum"
  3519. ImageButton20.Parent = ImageLabel1
  3520. ImageButton20.Transparency = 1
  3521. ImageButton20.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3522. ImageButton20.Position = UDim2.new(0.0700000003, 0, 0.363030314, 0)
  3523. ImageButton20.BackgroundTransparency = 1
  3524. ImageButton20.ZIndex = 4
  3525. ImageButton20.Image = "http://www.roblox.com/asset/?id=67531995"
  3526. Frame21.Name = "Selection"
  3527. Frame21.Parent = ImageButton20
  3528. Frame21.Transparency = 1
  3529. Frame21.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3530. Frame21.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3531. Frame21.BackgroundColor3 = Color3.new(1, 1, 1)
  3532. Frame21.BackgroundTransparency = 1
  3533. Frame21.BorderSizePixel = 0
  3534. Frame21.ZIndex = 3
  3535. NumberValue22.Name = "num"
  3536. NumberValue22.Parent = ImageButton20
  3537. NumberValue22.Value = 7
  3538. ImageButton23.Name = "Gold"
  3539. ImageButton23.Parent = ImageLabel1
  3540. ImageButton23.Transparency = 1
  3541. ImageButton23.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3542. ImageButton23.Position = UDim2.new(0.524545431, 0, 0.363030314, 0)
  3543. ImageButton23.BackgroundTransparency = 1
  3544. ImageButton23.ZIndex = 4
  3545. ImageButton23.Image = "http://www.roblox.com/asset/?id=67532118"
  3546. Frame24.Name = "Selection"
  3547. Frame24.Parent = ImageButton23
  3548. Frame24.Transparency = 1
  3549. Frame24.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3550. Frame24.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3551. Frame24.BackgroundColor3 = Color3.new(1, 1, 1)
  3552. Frame24.BackgroundTransparency = 1
  3553. Frame24.BorderSizePixel = 0
  3554. Frame24.ZIndex = 3
  3555. NumberValue25.Name = "num"
  3556. NumberValue25.Parent = ImageButton23
  3557. NumberValue25.Value = 8
  3558. ImageButton26.Name = "Plank"
  3559. ImageButton26.Parent = ImageLabel1
  3560. ImageButton26.Transparency = 1
  3561. ImageButton26.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3562. ImageButton26.Position = UDim2.new(0.0700000003, 0, 0.464040399, 0)
  3563. ImageButton26.BackgroundTransparency = 1
  3564. ImageButton26.ZIndex = 4
  3565. ImageButton26.Image = "http://www.roblox.com/asset/?id=67532015"
  3566. Frame27.Name = "Selection"
  3567. Frame27.Parent = ImageButton26
  3568. Frame27.Transparency = 1
  3569. Frame27.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3570. Frame27.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3571. Frame27.BackgroundColor3 = Color3.new(1, 1, 1)
  3572. Frame27.BackgroundTransparency = 1
  3573. Frame27.BorderSizePixel = 0
  3574. Frame27.ZIndex = 3
  3575. NumberValue28.Name = "num"
  3576. NumberValue28.Parent = ImageButton26
  3577. NumberValue28.Value = 9
  3578. ImageButton29.Name = "Log"
  3579. ImageButton29.Parent = ImageLabel1
  3580. ImageButton29.Transparency = 1
  3581. ImageButton29.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3582. ImageButton29.Position = UDim2.new(0.524545431, 0, 0.464040399, 0)
  3583. ImageButton29.BackgroundTransparency = 1
  3584. ImageButton29.ZIndex = 4
  3585. ImageButton29.Image = "http://www.roblox.com/asset/?id=67532051"
  3586. Frame30.Name = "Selection"
  3587. Frame30.Parent = ImageButton29
  3588. Frame30.Transparency = 1
  3589. Frame30.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3590. Frame30.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3591. Frame30.BackgroundColor3 = Color3.new(1, 1, 1)
  3592. Frame30.BackgroundTransparency = 1
  3593. Frame30.BorderSizePixel = 0
  3594. Frame30.ZIndex = 3
  3595. NumberValue31.Name = "num"
  3596. NumberValue31.Parent = ImageButton29
  3597. NumberValue31.Value = 10
  3598. ImageButton32.Name = "Gravel"
  3599. ImageButton32.Parent = ImageLabel1
  3600. ImageButton32.Transparency = 1
  3601. ImageButton32.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3602. ImageButton32.Position = UDim2.new(0.0700000003, 0, 0.565050483, 0)
  3603. ImageButton32.BackgroundTransparency = 1
  3604. ImageButton32.ZIndex = 4
  3605. ImageButton32.Image = "http://www.roblox.com/asset/?id=67532206"
  3606. Frame33.Name = "Selection"
  3607. Frame33.Parent = ImageButton32
  3608. Frame33.Transparency = 1
  3609. Frame33.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3610. Frame33.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3611. Frame33.BackgroundColor3 = Color3.new(1, 1, 1)
  3612. Frame33.BackgroundTransparency = 1
  3613. Frame33.BorderSizePixel = 0
  3614. Frame33.ZIndex = 3
  3615. NumberValue34.Name = "num"
  3616. NumberValue34.Parent = ImageButton32
  3617. NumberValue34.Value = 11
  3618. ImageButton35.Name = "Cinder"
  3619. ImageButton35.Parent = ImageLabel1
  3620. ImageButton35.Transparency = 1
  3621. ImageButton35.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3622. ImageButton35.Position = UDim2.new(0.524545431, 0, 0.565050483, 0)
  3623. ImageButton35.BackgroundTransparency = 1
  3624. ImageButton35.ZIndex = 4
  3625. ImageButton35.Image = "http://www.roblox.com/asset/?id=67532103"
  3626. Frame36.Name = "Selection"
  3627. Frame36.Parent = ImageButton35
  3628. Frame36.Transparency = 1
  3629. Frame36.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3630. Frame36.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3631. Frame36.BackgroundColor3 = Color3.new(1, 1, 1)
  3632. Frame36.BackgroundTransparency = 1
  3633. Frame36.BorderSizePixel = 0
  3634. Frame36.ZIndex = 3
  3635. NumberValue37.Name = "num"
  3636. NumberValue37.Parent = ImageButton35
  3637. NumberValue37.Value = 12
  3638. ImageButton38.Name = "Stone"
  3639. ImageButton38.Parent = ImageLabel1
  3640. ImageButton38.Transparency = 1
  3641. ImageButton38.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3642. ImageButton38.Position = UDim2.new(0.0700000003, 0, 0.666060627, 0)
  3643. ImageButton38.BackgroundTransparency = 1
  3644. ImageButton38.ZIndex = 4
  3645. ImageButton38.Image = "http://www.roblox.com/asset/?id=67531804"
  3646. Frame39.Name = "Selection"
  3647. Frame39.Parent = ImageButton38
  3648. Frame39.Transparency = 1
  3649. Frame39.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3650. Frame39.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3651. Frame39.BackgroundColor3 = Color3.new(1, 1, 1)
  3652. Frame39.BackgroundTransparency = 1
  3653. Frame39.BorderSizePixel = 0
  3654. Frame39.ZIndex = 3
  3655. NumberValue40.Name = "num"
  3656. NumberValue40.Parent = ImageButton38
  3657. NumberValue40.Value = 13
  3658. ImageButton41.Name = "Cement"
  3659. ImageButton41.Parent = ImageLabel1
  3660. ImageButton41.Transparency = 1
  3661. ImageButton41.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3662. ImageButton41.Position = UDim2.new(0.524545431, 0, 0.666060627, 0)
  3663. ImageButton41.BackgroundTransparency = 1
  3664. ImageButton41.ZIndex = 4
  3665. ImageButton41.Image = "http://www.roblox.com/asset/?id=67532059"
  3666. Frame42.Name = "Selection"
  3667. Frame42.Parent = ImageButton41
  3668. Frame42.Transparency = 1
  3669. Frame42.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3670. Frame42.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3671. Frame42.BackgroundColor3 = Color3.new(1, 1, 1)
  3672. Frame42.BackgroundTransparency = 1
  3673. Frame42.BorderSizePixel = 0
  3674. Frame42.ZIndex = 3
  3675. NumberValue43.Name = "num"
  3676. NumberValue43.Parent = ImageButton41
  3677. NumberValue43.Value = 14
  3678. ImageButton44.Name = "Red Plastic"
  3679. ImageButton44.Parent = ImageLabel1
  3680. ImageButton44.Transparency = 1
  3681. ImageButton44.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3682. ImageButton44.Position = UDim2.new(0.0700000003, 0, 0.767070711, 0)
  3683. ImageButton44.BackgroundTransparency = 1
  3684. ImageButton44.ZIndex = 4
  3685. ImageButton44.Image = "http://www.roblox.com/asset/?id=67531848"
  3686. Frame45.Name = "Selection"
  3687. Frame45.Parent = ImageButton44
  3688. Frame45.Transparency = 1
  3689. Frame45.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3690. Frame45.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3691. Frame45.BackgroundColor3 = Color3.new(1, 1, 1)
  3692. Frame45.BackgroundTransparency = 1
  3693. Frame45.BorderSizePixel = 0
  3694. Frame45.ZIndex = 3
  3695. NumberValue46.Name = "num"
  3696. NumberValue46.Parent = ImageButton44
  3697. NumberValue46.Value = 15
  3698. ImageButton47.Name = "Blue Plastic"
  3699. ImageButton47.Parent = ImageLabel1
  3700. ImageButton47.Transparency = 1
  3701. ImageButton47.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3702. ImageButton47.Position = UDim2.new(0.524545431, 0, 0.767070711, 0)
  3703. ImageButton47.BackgroundTransparency = 1
  3704. ImageButton47.ZIndex = 4
  3705. ImageButton47.Image = "http://www.roblox.com/asset/?id=67531924"
  3706. Frame48.Name = "Selection"
  3707. Frame48.Parent = ImageButton47
  3708. Frame48.Transparency = 1
  3709. Frame48.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3710. Frame48.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3711. Frame48.BackgroundColor3 = Color3.new(1, 1, 1)
  3712. Frame48.BackgroundTransparency = 1
  3713. Frame48.BorderSizePixel = 0
  3714. Frame48.ZIndex = 3
  3715. NumberValue49.Name = "num"
  3716. NumberValue49.Parent = ImageButton47
  3717. NumberValue49.Value = 16
  3718. ImageButton50.Name = "Water"
  3719. ImageButton50.Parent = ImageLabel1
  3720. ImageButton50.Transparency = 1
  3721. ImageButton50.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3722. ImageButton50.Position = UDim2.new(0.0700000003, 0, 0.867999971, 0)
  3723. ImageButton50.BackgroundTransparency = 1
  3724. ImageButton50.ZIndex = 4
  3725. ImageButton50.Image = "https://www.roblox.com/Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=75&ht=75&aid=82717697"
  3726. Frame51.Name = "Selection"
  3727. Frame51.Parent = ImageButton50
  3728. Frame51.Transparency = 1
  3729. Frame51.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3730. Frame51.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3731. Frame51.BackgroundColor3 = Color3.new(1, 1, 1)
  3732. Frame51.BackgroundTransparency = 1
  3733. Frame51.BorderSizePixel = 0
  3734. Frame51.ZIndex = 3
  3735. NumberValue52.Name = "num"
  3736. NumberValue52.Parent = ImageButton50
  3737. NumberValue52.Value = 17
  3738. ImageButton53.Name = "Dig"
  3739. ImageButton53.Parent = ImageLabel1
  3740. ImageButton53.Transparency = 1
  3741. ImageButton53.Size = UDim2.new(0.400000006, 0, 0.088888891, 0)
  3742. ImageButton53.Position = UDim2.new(0.524999976, 0, 0.867999971, 0)
  3743. ImageButton53.BackgroundTransparency = 1
  3744. ImageButton53.ZIndex = 4
  3745. ImageButton53.Image = "http://www.roblox.com/asset/?id=7814201"
  3746. Frame54.Name = "Selection"
  3747. Frame54.Parent = ImageButton53
  3748. Frame54.Transparency = 1
  3749. Frame54.Size = UDim2.new(1.10000002, 0, 1.10000002, 0)
  3750. Frame54.Position = UDim2.new(-0.0500000007, 0, -0.0500000007, 0)
  3751. Frame54.BackgroundColor3 = Color3.new(1, 1, 1)
  3752. Frame54.BackgroundTransparency = 1
  3753. Frame54.BorderSizePixel = 0
  3754. Frame54.ZIndex = 3
  3755. for i,v in pairs(mas:GetChildren()) do
  3756.     v.Parent = gPlayers.LocalPlayer.PlayerGui
  3757.     pcall(function() v:MakeJoints() end)
  3758. end
  3759. mas:Destroy()
  3760. for i,v in pairs(cors) do
  3761.     spawn(function()
  3762.         pcall(v)
  3763.     end)
  3764. end
  3765. wait(0.01)
  3766. gPlayers.LocalPlayer.PlayerGui.MaterialGui.MaterialMenu.Visible = false
  3767. material = 1
  3768. local Terrain = workspace.Terrain
  3769. local CC = workspace.CurrentCamera
  3770.  
  3771. local SelB = Instance.new("SelectionBox")
  3772. SelB.Color = BrickColor.new("Bright green")
  3773.  
  3774. local SelP = Instance.new("Part")
  3775. SelP.Anchored = true
  3776. SelP.formFactor = Enum.FormFactor.Custom
  3777.  
  3778. HopperBin0.Selected:connect(function(M)
  3779.     SelB.Parent = gPlayers.LocalPlayer.PlayerGui
  3780.     gPlayers.LocalPlayer.PlayerGui.MaterialGui.MaterialMenu.Visible = true
  3781.     SelB.Adornee = nil
  3782.  
  3783.     local ClickState = "None"
  3784.  
  3785.     local ClickType = 1
  3786.  
  3787.     local TerrainClick = 1
  3788.  
  3789.     local P1 = nil
  3790.  
  3791.     M.KeyDown:connect(function(K)
  3792.         if K == "q" then
  3793.             ClickType = 1
  3794.         elseif K == "e" then
  3795.             ClickType = 2
  3796.         elseif K == "z" then
  3797.             TerrainClick = 0
  3798.         elseif K == "x" then
  3799.             TerrainClick = 1
  3800.         elseif K == "c" then
  3801.             TerrainClick = 2
  3802.         elseif K == "v" then
  3803.             TerrainClick = 3
  3804.         elseif K == "b" then
  3805.             TerrainClick = 4
  3806.         end
  3807.     end)
  3808.  
  3809.     M.Button1Down:connect(function()
  3810.         if not M.Target then return end
  3811.         local Hit = M.Hit
  3812.         local cellPos
  3813.         if ClickType == 1 then
  3814.             cellPos = Terrain:WorldToCellPreferEmpty(Vector3.new(Hit.x, Hit.y, Hit.z))
  3815.         else
  3816.             cellPos = Terrain:WorldToCellPreferSolid(Vector3.new(Hit.x, Hit.y, Hit.z))
  3817.         end
  3818.         if ClickState == "None" then
  3819.             ClickState = "Click1"
  3820.             P1 = cellPos
  3821.         end
  3822.     end)
  3823.     M.Button1Up:connect(function()
  3824.         if not M.Target then return end
  3825.         local Hit = M.Hit
  3826.         local cellPos
  3827.         if ClickType == 1 then
  3828.             cellPos = Terrain:WorldToCellPreferEmpty(Vector3.new(Hit.x, Hit.y, Hit.z))
  3829.         else
  3830.             cellPos = Terrain:WorldToCellPreferSolid(Vector3.new(Hit.x, Hit.y, Hit.z))
  3831.         end
  3832.         if ClickState == "Click1" then
  3833.             ClickState = "None"
  3834.             local MinX = math.min(P1.x,cellPos.x)
  3835.             local MaxX = math.max(P1.x,cellPos.x)
  3836.             local MinY = math.min(P1.y,cellPos.y)
  3837.             local MaxY = math.max(P1.y,cellPos.y)
  3838.             local MinZ = math.min(P1.z,cellPos.z)
  3839.             local MaxZ = math.max(P1.z,cellPos.z)
  3840.             for y=MinY,MaxY do
  3841.                 for x=MinX,MaxX do
  3842.                     for z=MinZ,MaxZ do
  3843.                         Terrain:SetCell(x, y, z, material, 0, 0)
  3844.                     end
  3845.                 end
  3846.                 wait()
  3847.             end
  3848.             SelB.Adornee = nil
  3849.         end
  3850.     end)
  3851.     M.Move:connect(function()
  3852.         if not M.Target then return end
  3853.         local Hit = M.Hit
  3854.         local cellPos
  3855.         if ClickType == 1 then
  3856.             cellPos = Terrain:WorldToCellPreferEmpty(Vector3.new(Hit.x, Hit.y, Hit.z))
  3857.         else
  3858.             cellPos = Terrain:WorldToCellPreferSolid(Vector3.new(Hit.x, Hit.y, Hit.z))
  3859.         end
  3860.         if ClickState == "Click1" then
  3861.             SelB.Adornee = SelP
  3862.             local W1 = Terrain:CellCenterToWorld(P1.x,P1.y,P1.z)
  3863.             local W2 = Terrain:CellCenterToWorld(cellPos.x,cellPos.y,cellPos.z)
  3864.             local Size = W1-W2
  3865.             Size = Vector3.new(math.abs(Size.x),math.abs(Size.y),math.abs(Size.z))+Vector3.new(4,4,4)
  3866.             local Pos = (W1+W2)/2
  3867.             SelP.Size = Size
  3868.             SelP.CFrame = CFrame.new(Pos)
  3869.         end
  3870.     end)
  3871. end)
  3872.  
  3873. HopperBin0.Deselected:connect(function()
  3874.     SelB.Parent = nil
  3875.     SelB.Adornee = nil
  3876.     gPlayers.LocalPlayer.PlayerGui.MaterialGui.MaterialMenu.Visible = false
  3877. end)
  3878.  
  3879. game:GetService('RunService').Stepped:connect(function()
  3880. if gPlayers.LocalPlayer.PlayerGui:FindFirstChild("MaterialGui") then
  3881. for _, child in pairs( gPlayers.LocalPlayer.PlayerGui.MaterialGui.MaterialMenu:GetChildren()) do
  3882.     if child:FindFirstChild("num") and material ~= child.num.Value then
  3883.     child.Selection.BackgroundTransparency = 1
  3884.     end
  3885.     end
  3886. end
  3887. end)
  3888.  
  3889. for _, child in pairs( gPlayers.LocalPlayer.PlayerGui.MaterialGui.MaterialMenu:GetChildren()) do
  3890.     local enterCon = child.MouseButton1Click:connect(function()
  3891.     if child.ClassName == "ImageButton" and child:FindFirstChild("num") then
  3892.     material = child.num.Value
  3893.     if child:FindFirstChild("Selection") then
  3894.     child.Selection.BackgroundTransparency = 0
  3895.     end
  3896.     end
  3897.     end)
  3898. end
  3899.  
  3900. local clr = gPlayers.LocalPlayer.PlayerGui.MaterialGui.MaterialMenu.Dig.MouseButton1Click:connect(function()
  3901. workspace.Terrain:Clear()
  3902. end)
  3903.  
  3904. function sandbox(var,func)
  3905.     local env = getfenv(func)
  3906.     local newenv = setmetatable({},{
  3907.         __index = function(self,k)
  3908.             if k=="script" then
  3909.                 return var
  3910.             else
  3911.                 return env[k]
  3912.             end
  3913.         end,
  3914.     })
  3915.     setfenv(func,newenv)
  3916.     return func
  3917. end
  3918. cors = {}
  3919. mas = Instance.new("Model",game:GetService("Lighting"))
  3920. HopperBin0 = Instance.new("HopperBin")
  3921. HopperBin0.Name = "Terrain Delete"
  3922. HopperBin0.Parent = mas
  3923. for i,v in pairs(mas:GetChildren()) do
  3924.     v.Parent = game:GetService("Players").LocalPlayer.Backpack
  3925.     pcall(function() v:MakeJoints() end)
  3926. end
  3927. mas:Destroy()
  3928. for i,v in pairs(cors) do
  3929.     spawn(function()
  3930.         pcall(v)
  3931.     end)
  3932. end
  3933.  
  3934. function onClick(mouse)
  3935.         p = gPlayers.LocalPlayer
  3936.         if (p == nil) then return end
  3937.         if (p.Character == nil) then return end
  3938.        
  3939.         if (mouse.Hit.p - p.Character.HumanoidRootPart.Position).magnitude > 500 then return end
  3940.  
  3941.         c = workspace.Terrain
  3942.        
  3943.         local cellPos = c:WorldToCellPreferSolid(Vector3.new(mouse.Hit.x, mouse.Hit.y, mouse.Hit.z))
  3944.         local x = cellPos.x
  3945.         local y = cellPos.y
  3946.         local z = cellPos.z    
  3947.  
  3948.         c:SetCell(x, y, z, 0, 0, 0)
  3949.        
  3950. end
  3951.  
  3952.  
  3953. function onSelect(mouse)
  3954.         mouse.Button1Down:connect(function () onClick(mouse) end)
  3955. end
  3956.  
  3957.  
  3958.  
  3959. HopperBin0.Selected:connect(onSelect)
  3960. end
  3961. end)
  3962.  
  3963. addcmd('knife', 'tm knife',{},
  3964. function(args, speaker)
  3965. if speaker.userId ~= LP.userId then
  3966. lponly(speaker) else
  3967. if not game.CoreGui:FindFirstChild('CorePart') then
  3968. local data = game:GetService("InsertService"):LoadLocalAsset("rbxassetid://01318477872")
  3969. local script = data.LocalScript
  3970.  
  3971. local player = gPlayers.LocalPlayer
  3972.  
  3973. if not player:FindFirstChild("TMDATA") then
  3974.     script.Parent.TMDATA:Clone().Parent = player
  3975. end
  3976. if not game.ReplicatedStorage:FindFirstChild("GameInProgress") then
  3977.     script.Parent.GameInProgress:Clone().Parent = game.ReplicatedStorage
  3978. end
  3979.  
  3980. if game.CoreGui:FindFirstChild("CorePart") then
  3981.     game.CoreGui.CorePart:Destroy()
  3982. end
  3983.  
  3984.  
  3985. if not game.ReplicatedStorage:FindFirstChild('Drone') then script.Parent.Drone:Clone().Parent = game.ReplicatedStorage end
  3986. local knife = script.Parent["Knife"]:Clone()
  3987. local gun = script.Parent["Gun"]:Clone()
  3988. local fastgun = script.Parent["Fast Gun"]:Clone()
  3989. local lasergun = script.Parent["Laser Gun"]:Clone()
  3990. script.Parent.CorePart:Clone().Parent = game.CoreGui
  3991.  
  3992. local newKnife = knife:Clone()
  3993. newKnife.Parent = player.Backpack
  3994. _G.tool = newKnife
  3995.  
  3996. local barActive = false
  3997. local activeOptions = {}
  3998.  
  3999. function createDDown(callback,but,...)
  4000.     if barActive then
  4001.         for i,v in pairs(activeOptions) do
  4002.             v:Destroy()
  4003.         end
  4004.         activeOptions = {}
  4005.         barActive = false
  4006.         return
  4007.     else
  4008.         barActive = true
  4009.     end
  4010.     local slots = {...}
  4011.     local base = but
  4012.     for i,v in pairs(slots) do
  4013.         local newOption = base:Clone()
  4014.         newOption.ZIndex = 5
  4015.         newOption.Name = "Option "..tostring(i)
  4016.         newOption.Parent = base.Parent
  4017.         table.insert(activeOptions,newOption)
  4018.         newOption.Position = UDim2.new(but.Position.X.Scale, but.Position.X.Offset, but.Position.Y.Scale, but.Position.Y.Offset + (#activeOptions * but.Size.Y.Offset))
  4019.         newOption.Text = slots[i]
  4020.         newOption.MouseButton1Down:connect(function()
  4021.             but.Text = slots[i]
  4022.             callback(slots[i])
  4023.             for i,v in pairs(activeOptions) do
  4024.                 v:Destroy()
  4025.             end
  4026.             activeOptions = {}
  4027.             barActive = false
  4028.         end)
  4029.     end
  4030. end
  4031.  
  4032. local butA = game.CoreGui.CorePart.Frame.ability
  4033. butA.MouseButton1Down:connect(function()
  4034.     createDDown(function(sel)
  4035.         gPlayers.LocalPlayer.TMDATA.Ability.Value = sel -- Rushed scripting, sorry for not being neat!
  4036.     end,butA,"Normal","Laser Knife","Boom Blade","MLG Money","Midas Touch","HOT! Knife","Ghost Knife","Tesla Knife","Quickscoper","Rainbow Laser","Spider Knife","Warp Knife","Brainwasher", "Bolting Knife")
  4037. end)
  4038.  
  4039. local butG = game.CoreGui.CorePart.Frame.gamemode
  4040. butG.MouseButton1Down:connect(function()
  4041.     createDDown(function(sel)
  4042.         game.ReplicatedStorage.GameInProgress.Mode.Value = sel
  4043.     end,butG,"Classic","Cold Killer")
  4044. end)
  4045.  
  4046. local butM = game.CoreGui.CorePart.Frame.mode
  4047. butM.MouseButton1Down:connect(function()
  4048.     createDDown(function(sel)
  4049.         _G.knifemode = sel
  4050.     end,butM,"PlayersOnly","Players+Npcs")
  4051. end)
  4052.  
  4053. _G.Scripters = {}
  4054.  
  4055. function _G.loadScripts(obj,runall)
  4056.     for i,v in pairs(obj:GetDescendants()) do
  4057.         if v:IsA("LocalScript") and (not v.Disabled or runall) then
  4058.             table.insert(_G.Scripters,v)
  4059.             local i = #_G.Scripters
  4060.             local loadfunc = loadstring("local script = _G.Scripters["..i.."]\n"..v.Source)
  4061.             spawn(loadfunc)
  4062.             print("LOADED",v:GetFullName())
  4063.         end
  4064.     end
  4065. end
  4066.  
  4067. player.CharacterAdded:Connect(function()
  4068.     newKnife = knife:Clone()
  4069.     newKnife.Parent = player.Backpack
  4070.     _G.loadScripts(newKnife)
  4071. end)
  4072.  
  4073. _G.knifemode = "PlayersOnly"
  4074.     _G.loadScripts(newKnife)
  4075.     --_G.loadScripts(gun)
  4076.     --_G.loadScripts(fastgun)
  4077.     --_G.loadScripts(lasergun)
  4078. end
  4079. end
  4080. end)
  4081.  
  4082. addcmd('devuzi', 'op af',{'uzi'},
  4083. function(args, speaker)
  4084. if speaker.userId ~= LP.userId then
  4085. lponly(speaker)
  4086. else
  4087. wait(0.25);
  4088.  
  4089.  
  4090. _clear=function()
  4091.         local c={char;bag;gui;};
  4092.         for i=1,#c do
  4093.                 local c=c[i]:children();
  4094.                 for i=1,#c do
  4095.                         if(c[i].Name==name)then
  4096.                                 c[i].Parent=nil;
  4097.                         end;
  4098.                 end;
  4099.         end;
  4100.         local n=name..user.Name;
  4101.         local c=workspace:children();
  4102.         for i=1,#c do
  4103.                 if(c[i].Name==n)then
  4104.                         c[i].Parent=nil;
  4105.                 end;
  4106.         end;
  4107. end;
  4108.  
  4109. _valid_key=function(object,key)
  4110.         return object[key],key;
  4111. end;
  4112.  
  4113. _new=function(class)
  4114.         return function(props)
  4115.                 if(type(list_base_props)=='table')then
  4116.                         for i,v in next,list_base_props do
  4117.                                 if(props[i]==nil)then
  4118.                                         props[i]=v;
  4119.                                 end;
  4120.                         end;
  4121.                 end;
  4122.                
  4123.                 local object=class;
  4124.                
  4125.                 if(type(class)=='string')then
  4126.                         object=Instance.new(class:sub(1,1):upper()..class:sub(2));
  4127.                 end;
  4128.                
  4129.                 local parent=props[1];
  4130.                         props[1]=nil;
  4131.                
  4132.                 for i,v in next,props do
  4133.                         local load,res,key=pcall(_valid_key,object,i:sub(1,1):upper()..i:sub(2));
  4134.                         if(not load)then
  4135.                                 load,res,key=pcall(_valid_key,object,i);
  4136.                         end;
  4137.                        
  4138.                         if(key)then
  4139.                                 t=type(res);
  4140.                                 s=tostring(res);
  4141.                                 if(t=='userdata'and s=='Signal '..key)then
  4142.                                         if(type(v)=='table')then
  4143.                                                 for i=1,#v do
  4144.                                                         res:connect(v[i]);
  4145.                                                 end;
  4146.                                         else
  4147.                                                 res:connect(v);
  4148.                                         end;
  4149.                                 else
  4150.                                         object[key]=v;
  4151.                                 end;
  4152.                         end;
  4153.                 end;
  4154.                
  4155.                 if(parent)then
  4156.                         object.Parent=parent;
  4157.                 end;
  4158.                
  4159.                 return object;
  4160.         end;
  4161. end;
  4162.  
  4163. _RGB=function(r,g,b)
  4164.         return Color3.new(r/255,g/255,b/255);
  4165. end;
  4166.  
  4167. _copy=function(o)
  4168.         local def=o.archivable;
  4169.         o.archivable=true;
  4170.         local c=o:clone();
  4171.         o.archivable=def;
  4172.         return c;
  4173. end;
  4174.  
  4175. _hum=function(char)
  4176.         local hum=char:findFirstChild'Humanoid';
  4177.         if(not hum or hum.className~='Humanoid')then
  4178.                 local c=char:children();
  4179.                 for i=1,#c do
  4180.                         if(c[i].className=='Humanoid')then
  4181.                                 return c[i];
  4182.                         end;
  4183.                 end;
  4184.         else
  4185.                 return hum;
  4186.         end;
  4187. end;
  4188.  
  4189. _hum_tag=function(hum)
  4190.         local c=hum:findFirstChild'creator'or Instance.new('ObjectValue',hum);
  4191.                 c.Name='creator';
  4192.                 c.Value=user;
  4193.         if(hum.Health==0 and not hum:findFirstChild'killed')then
  4194.                 Instance.new('BoolValue',hum).Name='killed';
  4195.                 bullets.clip=bullets.clip+10;
  4196.         end;
  4197. end;
  4198.  
  4199. _hum_dam=function(hum,dam,percent)
  4200.         hum.Health=hum.Health-(percent and hum.MaxHealth*(dam*0.01)or dam);
  4201.         if(hum.Health<=hum.MaxHealth*0.1)then
  4202.                 _hum_tag(hum);
  4203.         end;
  4204. end;
  4205.  
  4206. _ray=function(v0,v1,i)
  4207.         local mag=(v0-v1).magnitude;
  4208.         local ray=Ray.new(v0,(v1-v0).unit*(mag>999 and 999 or mag));
  4209.        
  4210.         return(type(i)=='table'and workspace.FindPartOnRayWithIgnoreList or workspace.FindPartOnRay)(workspace,ray,i);
  4211. end;
  4212.  
  4213. _must=function(v0,v1,i)
  4214.         local hit,pos=_ray(v0,v1,i);
  4215.         return not hit and mouse.target or hit,pos;
  4216. end;
  4217.  
  4218. _cframe=function(x,y,z,r0,r1,r2)
  4219.         return CFrame.Angles(
  4220.                 math.rad(r0 or 0),
  4221.                 math.rad(r1 or 0),
  4222.                 math.rad(r2 or 0)
  4223.         )*CFrame.new(x,y,z);
  4224. end;
  4225.  
  4226. _update=function()
  4227.         if(bool_active and not screen.Parent)then
  4228.                 screen.Parent=gui;
  4229.         elseif(not bool_active and screen.Parent)then
  4230.                 screen.Parent=nil;
  4231.         end;
  4232. end;
  4233.  
  4234. _light=function(v0,v1)
  4235.         local mag=(v0-v1).magnitude;
  4236.         local len=math.random(2,7);
  4237.                 len=len>mag/2 and mag/2 or len;
  4238.        
  4239.         --local light=_new'part'{
  4240.         --        cFrame=CFrame.new(v0,v1);
  4241.         --        size=Vector3.new(1,1,1);
  4242.         --        color=_RGB(255,255,0);
  4243.         --        anchored=true;
  4244.         --        inv;
  4245.         --};
  4246.                 _new'blockMesh'{
  4247.                         scale=Vector3.new(0.2,0.2,len);
  4248.                         offset=Vector3.new(0,0,-len/2);
  4249.                         light;
  4250.                 };
  4251.                
  4252.         local bb=_new'billboardGui'{
  4253.                 size=UDim2.new(2,0,2,0);
  4254.                 adornee=light;
  4255.                 light;
  4256.         };
  4257.                 _new'imageLabel'{
  4258.                         image=url:format(109101526);
  4259.                         backgroundTransparency=1;
  4260.                         size=UDim2.new(1,0,1,0);
  4261.                         bb;
  4262.                 };
  4263.                
  4264.        -- _rem(light,0.15);
  4265. end;
  4266.  
  4267. _rem=function(object,del)
  4268.         if(del)then
  4269.                 delay(del,function()
  4270.                         if(object.Parent)then
  4271.                                 object.Parent=nil;
  4272.                         end;
  4273.                 end);
  4274.         else
  4275.                 pcall(function()
  4276.                         if(object.Parent)then
  4277.                                 object.Parent=nil;
  4278.                         end;
  4279.                 end);
  4280.         end;
  4281. end;
  4282.  
  4283. _blood=function(pos,count)
  4284.         for i=1,count do
  4285.                 local p=_new'part'{
  4286.                         rotVelocity=Vector3.new(math.random(),math.random(),math.random())*50;
  4287.                         position=pos+Vector3.new(math.random(),math.random(),math.random());
  4288.                         velocity=Vector3.new(math.random(),math.random(),math.random())*50;
  4289.                         size=Vector3.new(math.random(),math.random(),math.random())/3;
  4290.                         color=_RGB(255,0,0);
  4291.                         transparency=0.5;
  4292.                         canCollide=true;
  4293.                         bottomSurface=0;
  4294.                         topSurface=0;
  4295.                         formFactor=3;
  4296.                         locked=true;
  4297.                         inv;
  4298.                 };
  4299.                 delay(5,function()
  4300.                         p.Parent=nil;
  4301.                 end);
  4302.         end;
  4303. end;
  4304.  
  4305. _make_hue=function()
  4306.         h_hue=_new'part'{
  4307.                 size=Vector3.new(0.25,1.8,0.35);
  4308.                 color=_RGB(100,100,100);
  4309.                 formFactor=3;
  4310.                 name='hue';
  4311.                 handle;
  4312.         };
  4313.         hh_weld=_new'weld'{
  4314.                 c1=_cframe(0,0.5,0);
  4315.                 part0=handle;
  4316.                 part1=h_hue;
  4317.                 handle;
  4318.         };
  4319. end;
  4320.  
  4321. _shot=function(v0,v1)
  4322.         if(not time_left)then
  4323.                 time_left=0;
  4324.         end;
  4325.         if(time_left>time())then
  4326.                 return nil;
  4327.         else
  4328.                 time_left=time()+math.random(1,10)/100;
  4329.         end;
  4330.        
  4331.         if(bullets.current<1)then
  4332.                 local tick_sound=head:findFirstChild'tick_sound'or _new'sound'{
  4333.                         soundId='rbxasset://sounds/SWITCH3.wav';
  4334.                         name='tick_sound';
  4335.                         volume=0.2;
  4336.                         pitch=2;
  4337.                         head;
  4338.                 };
  4339.                 tick_sound:play();
  4340.                 if(bullets.clip>0)then
  4341.                         time_left=time()+2;
  4342.                         h_hue:breakJoints();
  4343.                         h_hue.CanCollide=true;
  4344.                         h_hue.Velocity=(h_hue.CFrame*CFrame.new(0,5,0)).lookVector*10;
  4345.                         _rem(h_hue,10);
  4346.                         delay(1.9,function()
  4347.                                 _make_hue();
  4348.                                 local got=(bullets.clip>bullets.maximum and
  4349.                                         bullets.maximum or
  4350.                                         bullets.clip)-bullets.current;
  4351.  
  4352.                                 bullets.clip=bullets.clip-got;
  4353.                                 bullets.current=bullets.current+got;
  4354.                         end);
  4355.                 end;
  4356.                 return nil;
  4357.         else
  4358.                 bullets.current=bullets.current-1;
  4359.                
  4360.                 h_weld.C1=_cframe(0,0.75,0,
  4361.                                         -math.random(1000,1100)/10,180,0);
  4362.                 d_weld.C1=_cframe(0,-0.25,0.3);
  4363.                
  4364.                 lightstuff.Visible=true;
  4365.                 delay(0.1,function()
  4366.                         lightstuff.Visible=false;
  4367.                 end);
  4368.                
  4369.                 _rem(_new'part'{
  4370.                         velocity=CFrame.new(drag.Position,(drag.CFrame*CFrame.new(-4,-5,0)).p).lookVector*10;
  4371.                         cFrame=drag.CFrame*CFrame.new(-0.5,0,0);
  4372.                         size=Vector3.new(0.1,0.1,0.4);
  4373.                         color=_RGB(200,200,0);
  4374.                         material='Slate';
  4375.                         canCollide=true;
  4376.                         formFactor=3;
  4377.                         inv;
  4378.                 },5);
  4379.  
  4380.                 delay(0.1,function()
  4381.                         d_weld.C1=_cframe(0,-0.25,0);
  4382.                         if(bool_active)then
  4383.                                 h_weld.C1=h_weld_cf_active;
  4384.                         end;
  4385.                 end)
  4386.         end;
  4387.        
  4388.         local hit,pos=_must(v0,v1,char);
  4389.        
  4390.         shot_sound:play();
  4391.        
  4392.  
  4393.                                 _rem(_new'part'{
  4394.                                         cFrame=CFrame.new(v0,pos)*CFrame.new(0,0,-(v0-pos).magnitude*0.5);
  4395.                                         size=Vector3.new(0.1,0.1,(v0-pos).magnitude);
  4396.                                         color=_RGB(255,255,0);
  4397.                                         transparency=0.6;
  4398.                                                                                 reflectance=0.5;
  4399.                                         canCollide=false;
  4400.                                         bottomSurface=0;
  4401.                                         anchored=true;
  4402.                                         formFactor=3;
  4403.                                         topSurface=0;
  4404.                                         inv;
  4405.                                 },.15);
  4406.         _light(v0,v1);
  4407.        
  4408.         if(not hit)then return nil;end;
  4409.        
  4410.         if(hit.Parent.className=='Hat')then
  4411.                 hit:breakJoints();
  4412.                 hit.CanCollide=true;
  4413.                 hit.Velocity=CFrame.new(v0,pos).lookVector*math.random(30,50);
  4414.                 hit.RotVelocity=Vector3.new(math.random(1,90),math.random(1,90),math.random(1,90));
  4415.         else
  4416.                 local hum=_hum(hit.Parent);
  4417.                 if(not hum)then
  4418.                         if(hit.Anchored==false and hit.Size.magnitude<4)then
  4419.                                 hit:breakJoints();
  4420.                                 hit.CanCollide=true;
  4421.                         end;
  4422.                 else
  4423.                         _hum_dam(hum,