Advertisement
Godofadmin1337

Basics admin

Mar 29th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.38 KB | None | 0 0
  1. --https://titanpad.com/ep/pad/export/7VowCxrcTo/latest?format=txt
  2. --Ping('Really black',1,'Teal','bas')
  3.  
  4. owner = "Godofadmin1337"
  5. admins = {"Godofadmin1337","MostAccurate","DynamicVeloxio","n00bahkiin2","Key_Stone","RitualCross2500","DaneWantsWang"}
  6. prefix = ''
  7. prefix2 = '.'
  8. http = game:GetService('HttpService');
  9. cmds_http = [[https://titanpad.com/ep/pad/export/nVQSszBFTO/latest?format=txt]]
  10. players = game.Players
  11. songplayer = false
  12. SongPlayingSignaler = Instance.new("Part")
  13. SongPlayingSignaler.Size=Vector3.new(1,1,1)
  14. SongPlayingSignaler2 = Instance.new("Part")
  15. SongPlayingSignaler2.Size=Vector3.new(2,2,2)
  16. song_playing = false
  17.  
  18. tab_settings = {
  19. dismiss_mesh = false;
  20. other_mesh = true;
  21. meshId = 'rbxassetid://430345282';
  22. scale = '0.4'
  23. }
  24.  
  25. music_script = [[
  26. AddMusic("Rae Sremmurd - Black Beatles",492272696)
  27. AddMusic("Meek Mill - Lord Knows",336805821)
  28. AddMusic("Sweet - Ballroom Blitz",464424535)
  29. AddMusic("Rae Sremmurd - This Could Be Us",244111886)
  30. AddMusic("Pumped Up Kicks - Bridge Law (Remix)",495493706)
  31. AddMusic("David Guetta Bang - My Head - feat Sia Fetty Wap",317275694)
  32. AddMusic('Desiigner - Panda',401120618)
  33. AddMusic("I Got the Keys (ft. Jay-Z & Future) - DJ ",446714239)
  34. AddMusic('My House - Flo Rida',319758951)
  35. AddMusic('The Weekend - The Hills',281750011)
  36. AddMusic('Whistle - Flo Rida',291396031)
  37. AddMusic('Future - Low Life ft. The Weekend',336725246)
  38. AddMusic('Kid Ink - Promise ft. Fetty Wap',356917026)
  39. AddMusic('O.T. Genasis x Young Dolph - Cut It',318486515)
  40. AddMusic('G Eazy - I mean it',219254377)
  41. AddMusic('Charlie Puth - One Call Away',310948899)
  42. AddMusic('D.R.A.M. - Broccoli ft. Lil Yachty',466984917)
  43. AddMusic('D.R.A.M. - Cha Cha',263824541)
  44. AddMusic('Desiigner - Timmy Turner',469009274)
  45. AddMusic("Mike Posner - I Took A Pill In Ibiza (Seeb Remix)",415989637)
  46. AddMusic("Ugly God - Straight Like That ft. Wintertime",435089805)
  47. AddMusic("Lil Uzi Vert - Erase Your Social",470321629)
  48. AddMusic("Jeff Kaale (X I X X) - Happy Days (rmx)",481698447)
  49. AddMusic("The Chainsmokers ft. Halsey - Closer",516050206)
  50. AddMusic("Charlie Puth ft. Selena Gomez - We don't talk anymore",348494043)
  51. AddMusic("Dawin - Jumpshot",511898136)
  52. AddMusic("Twenty One Pilots - Ride",516134477)
  53. AddMusic("Martin Garrix & Bebe Rexha - In The Name Of Love",467472854)
  54. AddMusic("Desiigner - Overnight",447672752)
  55. AddMusic("Rob $tone - Chill Bill",396066454)
  56. AddMusic("Rae Sremmurd - No Type",396488242)
  57. AddMusic("Bill Nye - Theme Song (Trap Remix)",500583860)
  58. AddMusic('none',0)
  59. ]]
  60.  
  61.  
  62. workspace.Terrain:ClearAllChildren()
  63. admin_model = Instance.new("Model")
  64. admin_model.Name = 'Whatever'
  65. music_model = Instance.new("Model",admin_model)
  66. music_model.Name = 'Music'
  67.  
  68. tabs_model=Instance.new("Model",workspace.Terrain)
  69. tabs_model.Name='Xenosis Tablets'
  70.  
  71.  
  72. coroutine.resume(coroutine.create(function()
  73. while wait() do
  74. if not workspace.Terrain:FindFirstChild("Xenosis Tablets") then
  75. tabs_model=tabs_model:clone()
  76. tabs_model.Parent=workspace.Terrain
  77. end
  78. end
  79. end))
  80.  
  81. pcall(function()
  82. ---------------------------------W A R N I N G [!]-------------------------------------
  83. ---------------------------REAL FUNCTIONS START HERE-----------------------------------
  84. ---------------------------------------------------------------------------------------
  85.  
  86. -- for i,model in pairs(tabs_model:children()) do if string.find(model.Name:lower(),who:lower()) then
  87.  
  88. for i,plr in pairs(game.Players:children()) do
  89. model=Instance.new("Model",tabs_model)
  90. model.Name='Tabs_'..plr.Name
  91. end
  92.  
  93.  
  94. coroutine.resume(coroutine.create(function()
  95. for i = 0,math.huge,.008 do wait()
  96. pcall(function()
  97. for i,x in pairs(tabs_model:children()) do
  98. if game.Players:FindFirstChild(x.Name:sub(6)) then
  99. who = game.Players[x.Name:sub(6)]
  100. end
  101. for i,v in pairs(x:children()) do
  102. if who.Character:FindFirstChild("HumanoidRootPart") then
  103. v.CFrame = CFrame.new(who.Character.HumanoidRootPart.Position) * CFrame.Angles(0,time()+math.rad(i/#x:children()*360),0)
  104. v.CFrame=v.CFrame*CFrame.new(0,0,(#x:children()/6+1)*v.Size.X)*CFrame.Angles(0.3,0,0)
  105. end;
  106.  
  107. if who.Character:FindFirstChild('HumanoidRootPart') then
  108. v.CFrame = CFrame.new(who.Character.HumanoidRootPart.Position) * CFrame.Angles(0,time()+math.rad(i/#x:children()*360),0)
  109. v.CFrame=v.CFrame*CFrame.new(0,0,(#x:children()/6+1)*v.Size.X)*CFrame.Angles(0.3,0,0)
  110. end;
  111. end
  112. end
  113. end)
  114. end
  115. end))
  116.  
  117. function RealDissmiss(who)
  118. for i,model in pairs(tabs_model:children()) do if string.find(model.Name:lower(),who:lower()) then
  119. coroutine.resume(coroutine.create(function()
  120. for i = 1,10,1 do wait()
  121. for i,v in pairs(model:children()) do v.Transparency=v.Transparency+.1 v.BG.Tl.TextTransparency=v.BG.Tl.TextTransparency+.3 if v.Transparency > 1 then v:remove() end end
  122. end
  123. end))
  124. end
  125. end
  126. end
  127.  
  128. function RealDissmissWait(who)
  129. for i,model in pairs(tabs_model:children()) do if string.find(model.Name:lower(),who:lower()) then
  130. for i = 1,10,1 do wait()
  131. for i,v in pairs(model:children()) do v.Transparency=v.Transparency+.1 v.BG.Tl.TextTransparency=v.BG.Tl.TextTransparency+.3 if v.Transparency > 1 then v:remove() end end
  132. end
  133. end
  134. end
  135. end
  136.  
  137. function Dissmiss(who)
  138. for i,model in pairs(tabs_model:children()) do if string.find(model.Name:lower(),who:lower()) then
  139. local p = Instance.new("Part",model)
  140. p.Anchored = true
  141. p.FormFactor='Custom'
  142. p.Size = Vector3.new(3,3,0)
  143. p.Material = 'Neon'
  144. p.BrickColor = BrickColor.new'Really red'
  145. p.CanCollide = false
  146.  
  147. if tab_settings.dismiss_mesh == true then
  148. pmesh=Instance.new("SpecialMesh",p)
  149. pmesh.MeshId=tab_settings.meshId
  150. pmesh.Scale=Vector3.new(.8,tab_settings.scale,tab_settings.scale)
  151. end
  152.  
  153.  
  154. local bg = Instance.new("BillboardGui", p)
  155. bg.Adornee = p
  156. bg.Name = "BG"
  157. bg.Size = UDim2.new(4, 0, 2.5, 0)
  158. bg.StudsOffset = Vector3.new(-4, 2, 0)
  159.  
  160. local text1 = Instance.new("TextLabel", bg)
  161. text1.Size = UDim2.new(3, 0, 0.5, 0)
  162. text1.FontSize = "Size18"
  163. text1.TextScaled = true
  164. text1.TextTransparency = 0
  165. text1.BackgroundTransparency = 1
  166. text1.TextTransparency = 0
  167. text1.TextStrokeTransparency = 0
  168. text1.TextColor = BrickColor.new('Crimson')
  169. text1.Text = 'Dismiss'
  170. text1.Name='Tl'
  171.  
  172. local cd=Instance.new("ClickDetector",p)
  173. cd.MouseClick:connect(function(who1)
  174. if string.find(who1.Name:lower(),who:lower()) or who1.Name==owner then
  175. RealDissmiss(who)
  176. end
  177. end)
  178. end
  179. end
  180. end
  181.  
  182.  
  183. function Ping(Color,text,textcolor,who)
  184. for i,model in pairs(tabs_model:children()) do if string.find(model.Name:lower(),who:lower()) then
  185.  
  186. if #model:GetChildren() < 1 then
  187. Dissmiss(who)
  188. end
  189.  
  190. p1 = Instance.new("Part",model)
  191. p1.Anchored = true
  192. p1.FormFactor='Custom'
  193. p1.Size = Vector3.new(3,3,0)
  194. p1.Material = 'Neon'
  195. p1.BrickColor = BrickColor.new(Color)
  196. p1.CanCollide = false
  197. p1.Name='Ping'
  198.  
  199. if tab_settings.other_mesh == true then
  200. pmesh=Instance.new("SpecialMesh",p1)
  201. pmesh.MeshId=tab_settings.meshId
  202. pmesh.Scale=Vector3.new(.8,tab_settings.scale,tab_settings.scale)
  203. end
  204.  
  205. local bg = Instance.new("BillboardGui", p1)
  206. bg.Adornee = p1
  207. bg.Name = "BG"
  208. bg.Size = UDim2.new(4, 0, 2.5, 0)
  209. bg.StudsOffset = Vector3.new(-4, 2, 0)
  210.  
  211. local text1 = Instance.new("TextLabel", bg)
  212. text1.Size = UDim2.new(3, 0, 0.5, 0)
  213. text1.FontSize = "Size18"
  214. text1.TextScaled = true
  215. text1.TextTransparency = 0
  216. text1.BackgroundTransparency = 1
  217. text1.TextTransparency = 0
  218. text1.TextStrokeTransparency = 0
  219. text1.TextColor = BrickColor.new(textcolor)
  220. text1.Text = text
  221. text1.Name='Tl'
  222.  
  223.  
  224. end
  225. end
  226. end
  227.  
  228. game:GetService'RunService'.Stepped:connect(function()
  229. for i,asdxca in pairs(model:children()) do if asdxca.Name=='Ping' then
  230. if not asdxca:FindFirstChild("ClickDetector") then
  231. local cd=Instance.new("ClickDetector",asdxca)
  232. cd.MouseClick:connect(function(who1)
  233. if string.find(who1.Name:lower(),who:lower()) or who1.Name==owner then
  234. coroutine.resume(coroutine.create(function()
  235. for i = 0,1,.1 do wait()
  236. asdxca.Transparency=asdxca.Transparency+.1 asdxca.BillboardGui.Tl.TextTransparency=asdxca.BillboardGui.Tl.TextTransparency.TextTransparency+.3
  237. end
  238. asdxca:remove()
  239. end))
  240. end
  241. end)
  242. end
  243. end
  244. end
  245. end)
  246.  
  247. function ScriptPing(Color,text,textcolor,source,who)
  248. for i,model in pairs(tabs_model:children()) do if string.find(model.Name:lower(),who:lower()) then
  249.  
  250. if #model:GetChildren() < 1 then
  251. Dissmiss(who)
  252. end
  253.  
  254. p1 = Instance.new("Part",model)
  255. p1.Anchored = true
  256. p1.FormFactor='Custom'
  257. p1.Size = Vector3.new(3,3,0)
  258. p1.Material = 'Neon'
  259. p1.BrickColor = BrickColor.new(Color)
  260. p1.CanCollide = false
  261. p1.Name='ScriptPing'
  262.  
  263. if tab_settings.other_mesh == true then
  264. pmesh=Instance.new("SpecialMesh",p1)
  265. pmesh.MeshId=tab_settings.meshId
  266. pmesh.Scale=Vector3.new(.8,tab_settings.scale,tab_settings.scale)
  267. end
  268.  
  269. local bg = Instance.new("BillboardGui", p1)
  270. bg.Adornee = p1
  271. bg.Name = "BG"
  272. bg.Size = UDim2.new(4, 0, 2.5, 0)
  273. bg.StudsOffset = Vector3.new(-4, 2, 0)
  274.  
  275. local text1 = Instance.new("TextLabel", bg)
  276. text1.Size = UDim2.new(3, 0, 0.5, 0)
  277. text1.FontSize = "Size18"
  278. text1.TextScaled = true
  279. text1.TextTransparency = 0
  280. text1.BackgroundTransparency = 1
  281. text1.TextTransparency = 0
  282. text1.TextStrokeTransparency = 0
  283. text1.TextColor = BrickColor.new(textcolor)
  284. text1.Text = text
  285. text1.Name='Tl'
  286.  
  287.  
  288. local cd=Instance.new("ClickDetector",p1)
  289. cd.MouseClick:connect(function(who1)
  290. if string.find(who1.Name:lower(),who:lower()) or who1.Name==owner then
  291. loadstring(source)()
  292. end
  293. end)
  294. end
  295. end
  296. end
  297.  
  298.  
  299.  
  300. function BLAH()
  301. page_number=1
  302.  
  303. function PingSong(Color,textcolor,who,keyword)
  304. RealDissmissWait(who)
  305. for i,model in pairs(tabs_model:children()) do if string.find(model.Name:lower(),who:lower()) then
  306. if #model:GetChildren() < 1 then
  307. Dissmiss(who)
  308. end
  309.  
  310.  
  311. --PingSong(Color,textcolor,who,keyword)
  312. Url = "http://search.roblox-proxy.cf/catalog/json?Keyword=" .. keyword.. "&Category=9&PageNumber="..page_number.."&ResultsPerPage=10"
  313. Assets = http:JSONDecode(http:GetAsync(Url))
  314.  
  315. if #Assets<10 then
  316. Url = "http://search.roblox-proxy.cf/catalog/json?Keyword=" .. keyword.. "&Category=9&PageNumber="..page_number.."&ResultsPerPage=10"
  317. else
  318. Url = "http://search.roblox-proxy.cf/catalog/json?Keyword=" .. keyword.. "&Category=9&PageNumber="..page_number.."&ResultsPerPage="..#Assets
  319. if page_number<#Assets then ScriptPing("Lime green","Next page","Lime green",[[RealDissmissWait(']]..who..[[')
  320. page_number=page_number+1 PingSong(']]..Color..[[',']]..textcolor..[[',']]..who..[[',']]..keyword..[[') ]],who)
  321. end
  322. delay(1,function()
  323. page_number=1
  324. end)
  325. end
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332. for song = 1, #Assets,1 do
  333. p1 = Instance.new("Part",model)
  334. p1.Anchored = true
  335. p1.FormFactor='Custom'
  336. p1.Size = Vector3.new(3,3,0)
  337. p1.Material = 'Neon'
  338. p1.BrickColor = BrickColor.new(Color)
  339. p1.CanCollide = false
  340. p1.Name='Ping'
  341.  
  342. if tab_settings.other_mesh == true then
  343. pmesh=Instance.new("SpecialMesh",p1)
  344. pmesh.MeshId=tab_settings.meshId
  345. pmesh.Scale=Vector3.new(.8,tab_settings.scale,tab_settings.scale)
  346. end
  347.  
  348. local bg = Instance.new("BillboardGui", p1)
  349. bg.Adornee = p1
  350. bg.Name = "BG"
  351. bg.Size = UDim2.new(4, 0, 2.5, 0)
  352. bg.StudsOffset = Vector3.new(-4, 2, 0)
  353.  
  354. local text1 = Instance.new("TextLabel", bg)
  355. text1.Size = UDim2.new(3, 0, 0.5, 0)
  356. text1.FontSize = "Size18"
  357. text1.TextScaled = true
  358. text1.TextTransparency = 0
  359. text1.BackgroundTransparency = 1
  360. text1.TextTransparency = 0
  361. text1.TextStrokeTransparency = 0
  362. text1.TextColor = BrickColor.new(textcolor)
  363. text1.Text = Assets[song].Name
  364. text1.Name='Tl'
  365.  
  366.  
  367. local cd=Instance.new("ClickDetector",p1)
  368. cd.MouseClick:connect(function(who1)
  369. if string.find(who1.Name:lower(),who:lower()) or who1.Name==owner then
  370. RealDissmissWait(who)
  371. ScriptPing("Lime green","Play Audio","Lime green",[[ for i,v in pairs(workspace:children()) do if v.ClassName=='Sound' then v:Stop() v.Volume=0 v.Pitch=0 v:remove() end end sound=Instance.new("Sound",workspace) sound.Looped=true sound.SoundId='rbxassetid://]]..Assets[song].AssetId.."' sound:Play()",who)
  372. if Assets[song].Creator~="" then
  373. Ping("Really black","Creator: \n"..Assets[song].Creator,"White",who)
  374. end
  375. ScriptPing("Black","Buy Audio","White",[[game:GetService("MarketplaceService"):PromptPurchase(game.Players[']] ..who..[['],]] ..Assets[song].AssetId.. [[)]],who)
  376. Ping("Really black","Name: \n"..Assets[song].Name,"White",who)
  377. Ping("Really black","URL: \n"..Assets[song].AbsoluteUrl,"White",who)
  378. ScriptPing("Teal","Go back","Teal",[[PingSong(']]..Color..[[',']]..textcolor..[[',']]..who..[[',']]..keyword..[[')]],who)
  379. end
  380. end)
  381. end
  382. end
  383. end
  384. end
  385. end
  386.  
  387. BLAH()
  388.  
  389.  
  390. for i,play in pairs(game.Players:children()) do
  391. Ping('Really black','Welcome to Xenosis, '..play.Name..'.','Teal',play.Name)
  392. Ping('Really black',"The current prefix, and prefix2 are: "..prefix.." and "..prefix2,'Teal',play.Name)
  393.  
  394. if play.Name=='Basictality' then
  395. Ping('Really black','Your rank is: Owner','White',play.Name)
  396. end
  397.  
  398. for i,admin in pairs(admins) do
  399. if play.Name==admin and play.Name~=owner then
  400. Ping("Really black","Your rank is: Admin","White",play.Name)
  401. end
  402. end
  403.  
  404. end
  405.  
  406.  
  407. game.Players.PlayerAdded:connect(function(play)
  408. if not tabs_model:FindFirstChild("Tabs_"..play.Name) then
  409. model_2=Instance.new("Model",tabs_model)
  410. model_2.Name='Tabs_'..plr.Name
  411. end
  412. wait(1)
  413.  
  414. Ping('Really black','Welcome to Xenosis, '..play.Name..'.','Teal',play.Name)
  415. Ping('Really black',"The current prefix, and prefix2 are: "..prefix.." and "..prefix2,'Teal',play.Name)
  416.  
  417. if play.Name=='Basictality' then
  418. Ping('Really black','Your rank is: Owner','White',play.Name)
  419. end
  420.  
  421. for i,admin in pairs(admins) do
  422. if play.Name==admin and play.Name~=owner then
  423. Ping("Really black","Your rank is: Admin","White",play.Name)
  424. end
  425. end
  426. end)
  427. --Ping('Really black',1,'Dark indigo','bas')
  428. function TabCommands()
  429. for i,admin in pairs(admins) do
  430. for i,player in pairs(game.Players:children()) do
  431. if player.Name==admin then
  432. player.Chatted:connect(function(m)
  433. if m:lower():sub(1,#prefix+#'dt'+#prefix2+#'all')==prefix..'dt'..prefix2..'all' then
  434. for i,admin in pairs(tabs_model:children()) do
  435. for i,plr in pairs(game.Players:children()) do if plr.Name==admin.Name:sub(6) then
  436. RealDissmiss(plr.Name)
  437. end
  438. end
  439. end
  440. end;
  441.  
  442. if m:lower():sub(1,#prefix+#'dismisstabs'+#prefix2+#'all')==prefix..'dismisstabs'..prefix2..'all' then
  443. for i,admin in pairs(tabs_model:children()) do
  444. for i,plr in pairs(game.Players:children()) do if plr.Name==admin.Name:sub(6) then
  445. RealDissmiss(plr.Name)
  446. end
  447. end
  448. end
  449. end;
  450. if m:lower():sub(1,#prefix+#'dta'+#prefix2)==prefix..'dta'..prefix2 then
  451. for i,admin in pairs(tabs_model:children()) do
  452. for i,plr in pairs(game.Players:children()) do if plr.Name==admin.Name:sub(6) then
  453. RealDissmiss(plr.Name)
  454. end
  455. end
  456. end
  457. end;
  458. if m:lower():sub(1,#prefix+#'dismisstabs'+#prefix2)==prefix..'dismisstabs'..prefix2 then
  459. RealDissmiss(player.Name)
  460. end;
  461. if m:lower():sub(1,#prefix+#'dt'+#prefix2)==prefix..'dt'..prefix2 then
  462. RealDissmiss(player.Name)
  463. end;
  464. end)
  465. end
  466. end
  467. end;
  468.  
  469. for i,admin in pairs(admins) do
  470. game.Players.PlayerAdded:connect(function(player)
  471. if player.Name==admin then
  472. player.Chatted:connect(function(m)
  473. if m:lower():sub(1,#prefix+#'dt'+#prefix2+#'all')==prefix..'dt'..prefix2..'all' then
  474. for i,admin in pairs(tabs_model:children()) do
  475. for i,plr in pairs(game.Players:children()) do if plr.Name==admin.Name:sub(6) then
  476. RealDissmiss(plr.Name)
  477. end
  478. end
  479. end
  480. end;
  481.  
  482. if m:lower():sub(1,#prefix+#'dta'+#prefix2)==prefix..'dta'..prefix2 then
  483. for i,admin in pairs(tabs_model:children()) do
  484. for i,plr in pairs(game.Players:children()) do if plr.Name==admin.Name:sub(6) then
  485. RealDissmiss(plr.Name)
  486. end
  487. end
  488. end
  489. end;
  490.  
  491. if m:lower():sub(1,#prefix+#'dismisstabs'+#prefix2+#'all')==prefix..'dismisstabs'..prefix2..'all' then
  492. for i,admin in pairs(tabs_model:children()) do
  493. for i,plr in pairs(game.Players:children()) do if plr.Name==admin.Name:sub(6) then
  494. RealDissmiss(plr.Name)
  495. end
  496. end
  497. end
  498. end;
  499. end)
  500. end
  501. end)
  502.  
  503. for i,player in pairs(game.Players:children()) do
  504. player.Chatted:connect(function(m)
  505. if m:lower():sub(1,#prefix+#'dt'+#prefix2)==prefix..'dt'..prefix2 then
  506. RealDissmiss(player.Name)
  507. end;
  508. if m:lower():sub(1,#prefix+#'dismisstabs'+#prefix2)==prefix..'dismisstabs'..prefix2 then
  509. RealDissmiss(player.Name)
  510. end;
  511. end)
  512. end;
  513.  
  514. game.Players.PlayerAdded:connect(function(player)
  515. player.Chatted:connect(function(m)
  516. if m:lower():sub(1,#prefix+#'dt'+#prefix2)==prefix..'dt'..prefix2 then
  517. RealDissmiss(player.Name)
  518. end;
  519. if m:lower():sub(1,#prefix+#'dismisstabs'+#prefix2)==prefix..'dismisstabs'..prefix2 then
  520. RealDissmiss(player.Name)
  521. end;
  522. end)
  523. end)
  524. end
  525.  
  526. end
  527.  
  528. function PickRandomSong()
  529. songplayer=false
  530. function RandomSongPicker()
  531. for i,v in pairs(workspace:children()) do if v.ClassName=='Sound' then v:Remove() end end
  532. picked_song = songs[math.random(1, #songs)]
  533. sound=Instance.new("Sound",workspace)
  534. song_playing=true
  535. sound.SoundId=picked_song.Value
  536. sound:Play()
  537. wait(sound.TimeLength)
  538. song_playing=false
  539. SongPlayingSignaler.Size=SongPlayingSignaler.Size+Vector3.new(1,1,1)
  540. end
  541.  
  542. if songplayer == true then
  543. RandomSongPicker()
  544. end
  545. SongPlayingSignaler.Changed:connect(function()
  546. if songplayer == true then
  547. RandomSongPicker()
  548. end
  549. end)
  550. end
  551.  
  552. function MusicCommands()
  553. function AddMusic(name,id)
  554. local sv = Instance.new("StringValue",music_model)
  555. sv.Name = name
  556. sv.Value = 'rbxassetid://'..id
  557. end
  558. loadstring(music_script)()
  559. songs = music_model:GetChildren()
  560.  
  561. found=false
  562. for i,getadmin in pairs(admins) do
  563. for i,getplayeradmin in pairs(players:children()) do
  564. if getplayeradmin.Name==getadmin then
  565. plr=getplayeradmin
  566. plr.Chatted:connect(function(m)
  567. if m:lower():sub(1,#prefix+#'mus'+#prefix2)==prefix..'mus'..prefix2 then
  568. --1
  569. for i,x in pairs(workspace:children()) do if x.ClassName=='Sound' then x:remove() end end
  570. local sound=Instance.new("Sound",workspace)
  571. sound.Volume=1
  572. sound.Looped = true
  573. for i,v in pairs(music_model:children()) do
  574. if string.find(v.Name:lower(),m:lower():sub(#prefix+#'mus'+#prefix2+1)) then
  575. sound.SoundId=v.Value
  576. sound:Play()
  577. found=true
  578. end
  579. end;
  580.  
  581. if found==false then
  582. sound.SoundId='rbxassetid://'..m:sub(#prefix+#'mus'+#prefix2+1)
  583. sound:Play()
  584. end
  585. found=false
  586. end
  587.  
  588. if m:lower():sub(1,#prefix+#'pitch'+#prefix2)==prefix..'pitch'..prefix2 then
  589. for i,x in pairs(workspace:children()) do if x.ClassName=='Sound' then
  590. x.Pitch = m:sub(#prefix+#'pitch'+#prefix2+1)
  591. print(x)
  592. end
  593. end
  594. end
  595.  
  596. if m:lower():sub(1,#prefix+#'vol'+#prefix2)==prefix..'vol'..prefix2 then
  597. for i,x in pairs(workspace:children()) do if x.ClassName=='Sound' then
  598. x.Volume= m:sub(#prefix+#'vol'+#prefix2+1)
  599. print(x)
  600. end
  601. end
  602. end
  603.  
  604. if m:lower():sub(1,#prefix+#'searchsongs'+#prefix2)==prefix..'searchsongs'..prefix2 then
  605. PingSong("Really black","Teal",getplayeradmin.Name,m:sub(#prefix+#'searchsongs'+#prefix2+1))
  606. end
  607.  
  608. if m:lower():sub(1,#prefix+#'searchmusic'+#prefix2)==prefix..'searchmusic'..prefix2 then
  609. PingSong("Really black","Teal",getplayeradmin.Name,m:sub(#prefix+#'searchmusic'+#prefix2+1))
  610. end
  611.  
  612. if m:lower():sub(1,#prefix+#'sm'+#prefix2)==prefix..'sm'..prefix2 then
  613. PingSong("Really black","Teal",getplayeradmin.Name,m:sub(#prefix+#'sm'+#prefix2+1))
  614. end
  615.  
  616. if m:lower():sub(1,#prefix+#'smusic'+#prefix2)==prefix..'smusic'..prefix2 then
  617. PingSong("Really black","Teal",getplayeradmin.Name,m:sub(#prefix+#'smusic'+#prefix2+1))
  618. end
  619.  
  620. if m:lower():sub(1,#prefix+#'volume'+#prefix2)==prefix..'volume'..prefix2 then
  621. for i,x in pairs(workspace:children()) do if x.ClassName=='Sound' then
  622. x.Volume= m:sub(#prefix+#'volume'+#prefix2+1)
  623. print(x)
  624. end
  625. end
  626. end
  627.  
  628. if m:lower():sub(1,#prefix+#'music'+#prefix2)==prefix..'music'..prefix2 then
  629. --2
  630. for i,x in pairs(workspace:children()) do if x.ClassName=='Sound' then x:remove() end end
  631. local sound=Instance.new("Sound",workspace)
  632. sound.Volume=1
  633. sound.Looped = true
  634. for i,v in pairs(music_model:children()) do
  635. if string.find(v.Name:lower(),m:lower():sub(#prefix+#'music'+#prefix2+1)) then
  636. sound.SoundId=v.Value
  637. sound:Play()
  638. found=true
  639. end
  640. end;
  641.  
  642.  
  643.  
  644. if found==false then
  645. sound.SoundId='rbxassetid://'..m:sub(#prefix+#'music'+#prefix2+1)
  646. sound.Looped = true
  647. sound:Play()
  648. end
  649. found=false
  650. end
  651.  
  652. if m:lower() == prefix..'songplayer'..prefix2..'on' then
  653. songplayer=true
  654. for i,v in pairs(workspace.Terrain:children()) do if v.ClassName=='Sound' then v:remove() end end
  655. SongPlayingSignaler.Size=SongPlayingSignaler.Size+Vector3.new(1,1,1)
  656. PickRandomSong()
  657. SongPlayingSignaler.Size=SongPlayingSignaler.Size+Vector3.new(2,2,2)
  658. PickRandomSong()
  659.  
  660. end
  661.  
  662. if m:lower() == prefix..'songplayer'..prefix2..'off' then
  663. songplayer=false
  664. for i,v in pairs(workspace.Terrain:children()) do if v.ClassName=='Sound' then v:remove() end end
  665. song_playing=true
  666. end
  667. end)
  668. end
  669. end
  670. end
  671.  
  672.  
  673. for i,getadmin in pairs(admins) do
  674. game.Players.PlayerAdded:connect(function(getplayeradmin)
  675. if getplayeradmin.Name==getadmin then
  676. plr=getplayeradmin
  677. plr.Chatted:connect(function(m)
  678. if m:lower():sub(1,#prefix+#'mus'+#prefix2)==prefix..'mus'..prefix2 then
  679. --1
  680. for i,x in pairs(workspace:children()) do if x.ClassName=='Sound' then x:remove() end end
  681. local sound=Instance.new("Sound",workspace)
  682. sound.Volume=1
  683. sound.Looped = true
  684. for i,v in pairs(music_model:children()) do
  685. if string.find(v.Name:lower(),m:lower():sub(#prefix+#'mus'+#prefix2+1)) then
  686. sound.SoundId=v.Value
  687. sound:Play()
  688. found=true
  689. end
  690. end;
  691.  
  692. if found==false then
  693. sound.SoundId='rbxassetid://'..m:sub(#prefix+#'mus'+#prefix2+1)
  694. sound:Play()
  695. end
  696. found=false
  697. end
  698.  
  699. if m:lower():sub(1,#prefix+#'pitch'+#prefix2)==prefix..'pitch'..prefix2 then
  700. for i,x in pairs(workspace:children()) do if x.ClassName=='Sound' then
  701. x.Pitch = m:sub(#prefix+#'pitch'+#prefix2+1)
  702. print(x)
  703. end
  704. end
  705. end
  706.  
  707. if m:lower():sub(1,#prefix+#'searchsongs'+#prefix2)==prefix..'searchsongs'..prefix2 then
  708. PingSong("Really black","Teal",getplayeradmin.Name,m:sub(#prefix+#'searchsongs'+#prefix2+1))
  709. end
  710.  
  711. if m:lower():sub(1,#prefix+#'searchmusic'+#prefix2)==prefix..'searchmusic'..prefix2 then
  712. PingSong("Really black","Teal",getplayeradmin.Name,m:sub(#prefix+#'searchmusic'+#prefix2+1))
  713. end
  714.  
  715. if m:lower():sub(1,#prefix+#'sm'+#prefix2)==prefix..'sm'..prefix2 then
  716. PingSong("Really black","Teal",getplayeradmin.Name,m:sub(#prefix+#'sm'+#prefix2+1))
  717. end
  718.  
  719. if m:lower():sub(1,#prefix+#'smusic'+#prefix2)==prefix..'smusic'..prefix2 then
  720. PingSong("Really black","Teal",getplayeradmin.Name,m:sub(#prefix+#'smusic'+#prefix2+1))
  721. end
  722.  
  723. if m:lower():sub(1,#prefix+#'vol'+#prefix2)==prefix..'vol'..prefix2 then
  724. for i,x in pairs(workspace:children()) do if x.ClassName=='Sound' then
  725. x.Volume= m:sub(#prefix+#'vol'+#prefix2+1)
  726. print(x)
  727. end
  728. end
  729. end
  730.  
  731.  
  732. if m:lower():sub(1,#prefix+#'volume'+#prefix2)==prefix..'volume'..prefix2 then
  733. for i,x in pairs(workspace.Terrain:children()) do if x.ClassName=='Sound' then
  734. x.Volume= m:sub(#prefix+#'volume'+#prefix2+1)
  735. print(x)
  736. end
  737. end
  738. end
  739.  
  740. if m:lower():sub(1,#prefix+#'music'+#prefix2)==prefix..'music'..prefix2 then
  741. --2
  742. for i,x in pairs(workspace.Terrain:children()) do if x.ClassName=='Sound' then x:remove() end end
  743. local sound=Instance.new("Sound",workspace)
  744. sound.Volume=1
  745. sound.Looped = true
  746. for i,v in pairs(music_model:children()) do
  747. if string.find(v.Name:lower(),m:lower():sub(#prefix+#'music'+#prefix2+1)) then
  748. sound.SoundId=v.Value
  749. sound:Play()
  750. found=true
  751. end
  752. end;
  753.  
  754.  
  755.  
  756. if found==false then
  757. sound.SoundId='rbxassetid://'..m:sub(#prefix+#'music'+#prefix2+1)
  758. sound.Looped = true
  759. sound:Play()
  760. end
  761. found=false
  762. end
  763.  
  764.  
  765. if m:lower() == prefix..'songplayer'..prefix2..'on' then
  766. songplayer=true
  767. for i,v in pairs(workspace.Terrain:children()) do if v.ClassName=='Sound' then v:remove() end end
  768. SongPlayingSignaler.Size=SongPlayingSignaler.Size+Vector3.new(1,1,1)
  769. PickRandomSong()
  770. SongPlayingSignaler.Size=SongPlayingSignaler.Size+Vector3.new(2,2,2)
  771. PickRandomSong()
  772.  
  773. end
  774.  
  775. if m:lower() == prefix..'songplayer'..prefix2..'off' then
  776. songplayer=false
  777. for i,v in pairs(workspace.Terrain:children()) do if v.ClassName=='Sound' then v:remove() end end
  778. song_playing=true
  779. end
  780. end)
  781. end
  782. end)
  783. end
  784. end
  785.  
  786. function OtherCommands()
  787. for i,getadmin in pairs(admins) do
  788. for i,getplayeradmin in pairs(game.Players:children()) do
  789. if getplayeradmin.Name==getadmin then
  790. getplayeradmin.Chatted:connect(function(m)
  791. if m:lower():sub(1,#prefix+#'time'+#prefix2)==prefix..'time'..prefix2 then
  792. game.Lighting.TimeOfDay = tonumber(m:sub(#prefix+#'time'+#prefix2+1))
  793. end;
  794. if m:lower():sub(1,#prefix+#'s'+#prefix2)==prefix..'s'..prefix2 then
  795. loadstring(m:sub(#prefix+#'s'+#prefix2+1))()
  796. end
  797. end)
  798. end
  799. end
  800. end
  801.  
  802. for i,getadmin in pairs(admins) do
  803. game.Players.PlayerAdded:connect(function(getplayeradmin)
  804. if getplayeradmin.Name==getadmin then
  805. getplayeradmin.Chatted:connect(function(m)
  806. if m:lower():sub(1,#prefix+#'time'+#prefix2)==prefix..'time'..prefix2 then
  807. game.Lighting.TimeOfDay = tonumber(m:sub(#prefix+#'time'+#prefix2+1))
  808. end;
  809. if m:lower():sub(1,#prefix+#'s'+#prefix2)==prefix..'s'..prefix2 then
  810. loadstring(m:sub(#prefix+#'s'+#prefix2+1))()
  811. end
  812. end)
  813. end
  814. end)
  815. end
  816. end
  817.  
  818. function AddCmd(cmd,type,source)
  819. for i,getadmin in pairs(admins) do
  820. for i,getplayeradmin in pairs(game.Players:children()) do
  821. if getplayeradmin.Name==getadmin then
  822. getplayeradmin.Chatted:connect(function(m)
  823. if type:lower()=='player' then
  824. if m:lower():sub(1,#cmd+#prefix+#prefix2)==prefix..cmd..prefix2 then
  825. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  826. for i,v in pairs(players:children()) do if string.find(v.Name:lower(),msg:lower():sub(#prefix+#prefix2+#cmd+1)) then ]]..source..[[ end end]])()
  827.  
  828. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  829. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'others') then for i,v in pairs(players:children()) do if v.Name~="]]..getplayeradmin.Name..[[" then ]]..source..[[ end end end]])()
  830.  
  831. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  832. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'admins') then for i,x in pairs(admins) do for i,v in pairs(players:children()) do if v.Name==x then ]]..source..[[ end end end end]])()
  833.  
  834. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  835. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'nonadmins') then for i,x in pairs(admins) do for i,v in pairs(players:children()) do if v.Name~=x then ]]..source..[[ end end end end]])()
  836.  
  837. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  838. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'me') then for i,v in pairs(players:children()) do if v.Name=="]]..getplayeradmin.Name..[[" then ]]..source..[[ end end end]])()
  839.  
  840.  
  841.  
  842.  
  843. loadstring([[ msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  844. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'all') then for i,v in pairs(players:children()) do ]]..source..[[ end end]])()
  845.  
  846. loadstring([[ msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  847. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'random') then local v1 = game.Players:GetChildren()
  848. v = (v1[math.random(1,#v1)]) ]]..source..[[ end]])()
  849. end
  850. end;
  851. if type:lower() == 'normal' then
  852. if m:sub(1,#prefix+#cmd) == prefix..cmd then
  853. loadstring([[
  854. lclean = false
  855. game:GetService("RunService").Stepped:connect(function() if lclean == true then
  856. for i = 1,#workspace:children(),1 do
  857. for i,v in pairs(workspace:children()) do
  858. if v.Name~='Base' and v.ClassName~='Terrain' and v.ClassName~='Camera' and v.Name~=script.Name then
  859. if not game.Players:FindFirstChild(v.Name) then
  860. v:Remove()
  861. end
  862. end
  863. end
  864. end end end) ]]..source)()
  865. end
  866.  
  867.  
  868. end;
  869. end)
  870. end
  871. end
  872. end
  873.  
  874. for i,getadmin in pairs(admins) do
  875. game.Players.PlayerAdded:connect(function(getplayeradmin)
  876. if getplayeradmin.Name==getadmin then
  877. getplayeradmin.Chatted:connect(function(m)
  878. if type:lower()=='player' then
  879. if m:lower():sub(1,#cmd+#prefix+#prefix2)==prefix..cmd..prefix2 then
  880. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  881. for i,v in pairs(players:children()) do if string.find(v.Name:lower(),msg:lower():sub(#prefix+#prefix2+#cmd+1)) then ]]..source..[[ end end]])()
  882.  
  883. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  884. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'others') then for i,v in pairs(players:children()) do if v.Name~="]]..getplayeradmin.Name..[[" then ]]..source..[[ end end end]])()
  885.  
  886. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  887. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'admins') then for i,x in pairs(admins) do for i,v in pairs(players:children()) do if v.Name==x then ]]..source..[[ end end end end]])()
  888.  
  889. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  890. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'nonadmins') then for i,x in pairs(admins) do for i,v in pairs(players:children()) do if v.Name~=x then ]]..source..[[ end end end end]])()
  891.  
  892. loadstring([[msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  893. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'me') then for i,v in pairs(players:children()) do if v.Name=="]]..getplayeradmin.Name..[[" then ]]..source..[[ end end end]])()
  894.  
  895.  
  896.  
  897.  
  898. loadstring([[ msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  899. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'all') then for i,v in pairs(players:children()) do ]]..source..[[ end end]])()
  900.  
  901. loadstring([[ msg = "]]..m..[[" cmd = "]]..cmd..[[" real_me = game.Players[']]..getplayeradmin.Name..[[']
  902. if string.find(msg:lower():sub(#prefix+#prefix2+#cmd+1),'random') then local v1 = game.Players:GetChildren()
  903. v = (v1[math.random(1,#v1)]) ]]..source..[[ end]])()
  904. end
  905. end;
  906. if type:lower() == 'normal' then
  907. if m:sub(1,#prefix+#cmd) == prefix..cmd then
  908. loadstring([[
  909. lclean = false
  910. game:GetService("RunService").Stepped:connect(function() if lclean == true then
  911. for i = 1,#workspace:children(),1 do
  912. for i,v in pairs(workspace:children()) do
  913. if v.Name~='Base' and v.ClassName~='Terrain' and v.ClassName~='Camera' and v.Name~=script.Name then
  914. if not game.Players:FindFirstChild(v.Name) then
  915. v:Remove()
  916. end
  917. end
  918. end
  919. end end end) ]]..source)()
  920. end
  921.  
  922.  
  923. end;
  924. end)
  925. end
  926. end)
  927. end
  928. end
  929.  
  930. loadstring(http:GetAsync(cmds_http))()
  931. MusicCommands()
  932. OtherCommands()
  933. TabCommands()
  934.  
  935. warn'Xenosis V3 has loaded.'
  936. end)
  937.  
  938. while wait(2) do
  939. print'intact'
  940. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement