Advertisement
kanewutt

Untitled

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