Advertisement
BlueHasMeme

O

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