Advertisement
Ak47Studioz

tabs8.0

May 31st, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 87.37 KB | None | 0 0
  1. --[[
  2. -1 : banned
  3. 0 : Not ranked
  4. 1 : User
  5. 2 : Overseer
  6. 3 : Mod
  7. 4 : Admin
  8. 5 : Dev
  9. 6 : Mystery
  10.  
  11.  
  12. https://www.dropbox.com/s/7bkvaaton837t91/Nova Sense.txt?raw=1
  13.  
  14. ]]
  15. startuptime=0
  16. ver=1.6
  17. datastores=true
  18. update=false
  19. cid=0
  20. baseranked={ --{name,rank,reason ranked}
  21. {'Ak47Studioz',6,'he is Senpai'}
  22. }
  23. users={}
  24. plrdata={}
  25. me="https://www.dropbox.com/s/7bkvaaton837t91/Nova Sense.txt?raw=1"
  26. banlist={'XSantaIsHackerX','Elok2012'}
  27. music={}
  28. rank={
  29. 'User','Overseer','Mod','Admin','Dev','Senpai'
  30. }
  31. action=''
  32. n=nil
  33. playertimes={}
  34. for i,v in pairs(game:service'Players':players'')do playertimes[v.Name]=tick()-1 end
  35. orig=music
  36. split="-"
  37.  
  38. speed=.002
  39. songrequests={}
  40. skipanim=false
  41. vote={}
  42. vote.y=0
  43. vote.n=0
  44. vote.topic=''
  45. local c={}
  46. c.snd=BrickColor.new'Royal purple'
  47. c.pink=BrickColor.new'Hot pink'
  48. c.black=BrickColor.new'Really black'
  49. c.iw=BrickColor.new'Institutional white'
  50. c.blue=BrickColor.new'Bright blue'
  51. c.white=BrickColor.new'White'
  52. c.purple=BrickColor.new'Royal purple'
  53. c.red=BrickColor.new'Really red'
  54. c.green=BrickColor.new'Lime green'
  55. c.cmdc=BrickColor.new'Deep orange'
  56. defaultcolor=c.white
  57.  
  58. urlf='rbxassetid://'
  59.  
  60. logs={LOG={};CLOG={}}
  61. pri=false
  62. events={}
  63.  
  64.  
  65.  
  66. logs.write=function(str)
  67. str='[nov] '..str
  68. str=str:gsub('\n','\n [nov] ')
  69. table.insert(logs.LOG,str)
  70. print(str)
  71. end
  72. logs.cwrite=function(str)
  73. table.insert(logs.CLOG,str)
  74. if #logs.CLOG>30 then table.remove(logs.CLOG,1)end
  75. end
  76. logs.last=function()
  77. return logs.LOG[#logs.LOG]
  78. end
  79.  
  80. logs.clear=function()
  81. logs.LOG={}
  82. end
  83. bet=''
  84. key="_NOVAINSTANCE"
  85.  
  86. logs.write('Chicken Leg started on version '..tostring(ver))
  87.  
  88. plrs=game:service'Players'
  89.  
  90. colors={'White','Really blue','Really red','New Yeller','Teal','Lime green','Royal purple','Deep orange','Toothpaste', 'Hot pink', 'Really black', 'Institutional white'}
  91. function randin(tblz)
  92. rand='White'
  93. print(#tblz)
  94. local rand=math.random(1,#tblz)
  95. return tblz[rand]
  96. end
  97. wk=workspace
  98. script.Name=tostring(math.random(1,256)*2563343)..'_NovINSTANCE'
  99. tabs={} -- tabs >> player >> tablets
  100. Players=plrs
  101.  
  102. votesent=false
  103.  
  104. list=function(tbl)
  105. local str=''
  106. for i,v in pairs(tbl)do
  107. str=str..tostring(v)
  108. if i~=#tbl then str=str..', 'end
  109. end
  110. return str
  111. end
  112.  
  113. getbet=function()
  114. return bet
  115. end
  116. _match=function(str,spkr)
  117. if str==nil then return{}end
  118. local st=str:lower();
  119. local found={};
  120. if st:sub(0,1)=='%'then--team wildcard
  121. for i,v in pairs(game:service'Teams':GetChildren())do
  122. if (v:IsA'Team')and(v.Name:lower():find(st:sub(2))~=nil) then
  123. for i,p in pairs(plrs:GetPlayers'')do
  124. if p.TeamColor==v.TeamColor then
  125. table.insert(found,p);
  126. end;
  127. end;
  128. break;
  129. end;
  130. end;
  131. elseif st=='*'or st=='all'then
  132. for i,v in pairs(plrs:GetPlayers'')do
  133. table.insert(found,v);
  134. end;
  135. elseif st:sub(1,1)=='#'then
  136. local idgroup=st:sub(2);
  137. pcall(function()
  138. for i,v in pairs(plrs:GetPlayers'')do
  139. if v:IsInGroup(idgroup)then table.insert(found,v);end;
  140. end;
  141. end);
  142. elseif st=='me'then
  143. return {spkr};
  144. elseif st=='others'then
  145. for i,v in pairs(plrs:GetPlayers'')do
  146. if v~=spkr then
  147. table.insert(found,v);
  148. end;
  149. end;
  150. else
  151. for i,v in pairs(plrs:GetPlayers'')do
  152. if v.Name:lower():find(st)~=nil then
  153. table.insert(found,v);
  154. end;
  155. end;
  156. end;
  157. return found;
  158. end
  159.  
  160.  
  161.  
  162.  
  163.  
  164. _plr=function(player,speaker)
  165. if not player then return;end
  166. if type(player)=='string'then
  167. local plrsz=_match(player,speaker)
  168. return plrsz[1]
  169. end;
  170. if player:IsA'Player'then return player;end;
  171. if plrs:FindFirstChild(player)then return _plr(plrs[player]);end;
  172. return;
  173. end
  174.  
  175.  
  176. disabletabs=function()
  177. for i,v in pairs(tabs)do
  178. dmp(i)
  179. end
  180. for i,v in pairs(events)do
  181. v:disconnect()
  182. end
  183. wait(2)
  184. for i,v in pairs(events)do
  185. v:disconnect()
  186. end
  187. enabled=false
  188. logs.write'disabling'
  189.  
  190. end
  191. v3=function(a,b,c)
  192. return Vector3.new(a,b,c)
  193. end
  194.  
  195. _rgb=function(r,g,b)
  196. return Color3.new(r/255,g/255,b/255)
  197. end
  198.  
  199. rcolor=function(num)
  200. local c=rank[num]
  201. if not c then c='White'end
  202. return c
  203. end
  204.  
  205.  
  206. testlocal=plrs.LocalPlayer
  207. if testlocal then datastores=false logs.write'local mode is on, saved functions not available'end
  208.  
  209.  
  210.  
  211. cmds={}
  212. enabled=true
  213.  
  214.  
  215. t={}
  216. t.size=nil
  217. t.trans=0
  218. tabindiv={'dmself'}
  219. t.shape='cube'
  220. t.db_view='PLR'
  221. shapes={
  222. ['cube']=v3(2.1,2.1,2.1),
  223. ['flat']=v3(.2,4,3),
  224. ['mini']=v3(.3,.3,.3),
  225. ['table']=v3(2.1,.3,2.1),
  226. }
  227.  
  228.  
  229. shape=function(s)
  230. t.shape=s
  231. t.size=shapes[t.shape]
  232. end
  233.  
  234. shape('cube')
  235.  
  236. ds={}
  237. ds.s=game:service'DataStoreService':GetDataStore(key)
  238.  
  239.  
  240.  
  241. AGOSND=nil
  242.  
  243. pd={}
  244.  
  245. str={}
  246. str.firstc=function(st)
  247. return st:sub(1,1):upper()..st:sub(2):lower()
  248. end
  249.  
  250.  
  251.  
  252.  
  253. --std lib by badfractions
  254.  
  255. inTable=function(tbl,val)
  256. for i,v in pairs(tbl)do
  257. if v==val then return true end
  258. end
  259. return false
  260. end
  261.  
  262. remTable=function(tbl,val)
  263. for i,v in pairs(tbl)do
  264. if v==val then table.remove(i) end
  265. end
  266. end
  267. formatstr=function(str)
  268. local l=string.len(str)
  269. local orig=''
  270. for i=1,l do
  271. orig=orig..str:sub(i,i)..''
  272. end
  273. return orig
  274. end
  275. merge=function(t1, t2)
  276. for k, v in pairs(t2) do
  277. if (type(v) == "table") and (type(t1[k] or false) == "table") then
  278. merge(t1[k], t2[k])
  279. else
  280. t1[k] = v
  281. end
  282. end
  283. return t1
  284. end
  285.  
  286. --end std lib
  287.  
  288. --player>>{rank,color}
  289.  
  290.  
  291. -- // Nova Sense ranking system - bad \\ --
  292.  
  293. ds.props={'name','rank','reason','wave','color','rot','locked','neon','shape'}
  294.  
  295.  
  296. ds.whole=function()
  297. if not datastores then return end
  298. if not ds.s:GetAsync'users'then
  299. ds.s:SetAsync('users',baseranked)
  300. return ds.s:GetAsync'users'
  301. else
  302. return ds.s:GetAsync'users'
  303. end
  304. end
  305. users=ds.whole()
  306.  
  307.  
  308.  
  309.  
  310. ds.new=function(name,rank,reason)
  311. ranr=rank or 0
  312. reason=reason or 'None'
  313. local newprof={name,rank,reason,false,'White','circlerand',{},false,'cube'}
  314. table.insert(users,newprof)
  315. return newprof
  316. end
  317.  
  318. ds.set=function(plrn,indxe,valyu)
  319.  
  320. local db=ds.get(plrn)
  321. if db==nil then return end
  322. for iww,vww in pairs(ds.props)do
  323. if indxe:lower()==vww:lower()then db[iww]=valyu;end
  324. end
  325. end
  326.  
  327. ds.get=function(plrn,itemxx)
  328. local plrzzz=_plr(plrn) if plrzzz then plrn=plrzzz.Name end
  329. local prof=nil
  330. for iww,vww in pairs(users)do if vww[1]~=nil then if vww[1]==plrn then prof=users[iww]break end;end;end
  331.  
  332. if prof==nil then prof=ds.new(plrn)end
  333. if prof[5]==nil then prof[5]='White';end
  334. if prof[4]==nil then prof[4]=false;end
  335. if prof[6]==nil then prof[6]='circlerand';end
  336. if prof[7]==nil then prof[7]={};end
  337. if prof[8]==nil then prof[8]=false;end
  338. if prof[9]==nil then prof[9]='cube';end
  339. if itemxx==nil then return prof
  340. else
  341. itemxx=itemxx:lower()
  342. for iww,vww in pairs(ds.props)do
  343. if itemxx:lower()==vww:lower()then return prof[iww]end
  344. end
  345. end
  346. end
  347.  
  348. ds.prof=function(plr)
  349. local plrc=_plr(plr)if plrc then plr=plrc.Name end
  350. local proff=nil
  351. for iee,vee in pairs(users)do if vee[1]~=nil then if vee[1]==plr then proff=users[iee]break end;end;end
  352. return proff
  353. end
  354.  
  355. ds.default=function(prof)
  356.  
  357. if not prof then return true end
  358. --print(list(prof))
  359. if #prof~=#ds.props then return true end
  360. if prof[2]==nil then return true end
  361. if prof[2]==0 and prof[4]==false and prof[5]=='White' and prof[6]=='rand'then return true end
  362. return false
  363. end
  364.  
  365. ds.save=function() -- // CALL WHENEVER SAVING DATA
  366. local get={}
  367. for i,v in pairs(users)do
  368. if not ds.default(v)then
  369. table.insert(get,v)
  370. end
  371. end
  372. ds.s:SetAsync('users',get)
  373. end
  374.  
  375. --[[ds.plr=function(plr)
  376. plr=_plr(plr)
  377. local prof=nil
  378. local i=0
  379. if plr==nil then return {}
  380. for i,v in pairs(users)do if v[1]~=nil then if v[1]==plr.Name then prof=users[i]break end;end;end
  381. return prof,i
  382. end]]
  383.  
  384. ds.setrank=function(plr,rank)
  385.  
  386. --local dat,ind=ds.plr(plr)
  387. local der=ds.get(plr)
  388. der[2]=rank
  389.  
  390. end
  391.  
  392. ds.getrank=function(plr)
  393. local plro=_plr(plr)
  394. if not plro then plro=plr else plro=plro.Name end
  395. local d=ds.get(plro,'rank')
  396. if d then return tonumber(d) end
  397. return 0
  398. end
  399.  
  400. for i,v in pairs(ds)do
  401. if not datastores then v=(function()print'Datastores are not enabled'return;end) end
  402. end
  403.  
  404. for i,v in pairs(baseranked)do
  405. ds.setrank(v[1],v[2])
  406. end
  407.  
  408. ps={}
  409. ps.wave=function(plr)
  410. return ds.get(plr,'wave')
  411. end
  412. ps.color=function(plr)
  413. return ds.get(plr,'color')
  414. end
  415. ps.rot=function(plr)
  416. return ds.get(plr,'rot')
  417. end
  418. ps.neon=function(plr)
  419. local dzzzz=ds.get(plr,'neon')
  420. if dzzzz=='true' or dzzzz==true then return true
  421. else return false end
  422. end
  423. ps.shape=function(plr)
  424. return ds.get(plr,'shape')
  425. end
  426. ps.islocked=function(cmdname,plr)
  427. local lc=ds.get(plr,'locked')
  428. for i,v in pairs(lc)do
  429. if v:lower()==cmdname:lower()then return true end
  430. end
  431. end
  432. wait(.2)
  433. ds.save()
  434.  
  435. safe={}
  436. safe.r=function(fn)
  437. pcall(function()fn'';end)
  438. end
  439. for i,v in pairs(plrs:GetPlayers())do
  440. ds.getrank(v.Name)
  441. end
  442.  
  443. setrank=function(plr,num)
  444. plr=_plr(plr)
  445. if not plr then return end
  446. ds.setrank(plr.Name,num)--error here
  447. end
  448. getrank=function(plr)
  449. local d=ds.getrank(plr)
  450. if d then return d else return 0 end
  451. end
  452. m={}
  453. m.ds=ds.s
  454.  
  455. stack={}
  456.  
  457. m.getlib=function()
  458. if not datastores then return music end
  459. return m.ds:GetAsync('music')--{ ['song']={id,genre} }
  460. end
  461.  
  462. m.setlib=function(lib)
  463. music=lib
  464. if not datastores then return end
  465. m.ds:SetAsync('music',lib)
  466. end
  467.  
  468. m.save=function()
  469. m.setlib(music)
  470. end
  471.  
  472. m.curr=nil
  473. m.addsong=function(name,id,genre)
  474. if not datastores then return end
  475. music[name]={id,genre}
  476. m.setlib(music)
  477. end
  478.  
  479. m.play=function(id,sstop,...)
  480. local ex={...}
  481.  
  482. if sstop then
  483. if AGOSND~=nil then
  484. if AGOSND.Parent~=nil then
  485. AGOSND:Stop()
  486. AGOSND:remove()
  487. AGOSND=nil
  488. end
  489.  
  490. end
  491. return
  492. end
  493. m.play(nil,true)
  494. if silentmode then return end
  495. AGOSND=Instance.new'Sound'
  496. AGOSND.Name='AGOSND'
  497. AGOSND.Parent=script
  498. AGOSND.SoundId=urlf..tostring(id)
  499. AGOSND.Volume=ex.VOL or .5
  500. AGOSND.Pitch=ex.PIT or 1
  501. AGOSND.Looped=ex.LOO or true
  502. AGOSND:Play()
  503. m.curr=id
  504. cid=urlf..tostring(id)
  505. end
  506.  
  507. m.stopmusic=function(root,deep)
  508. for i,v in pairs(root:children'')do
  509. if v.Parent then if v:IsA'Sound'then v:Stop()v:remove()end;end
  510. if deep then
  511. m.stopmusic(v,true)
  512. end
  513. end
  514. end
  515.  
  516. m.stopmusico=function(root,deep)
  517. for i,v in pairs(root:children'')do
  518. if v.Parent then if v:IsA'Sound'and v.Name~='AGOSND'then v:Stop()v:remove()end;end
  519. if deep then
  520. m.stopmusic(v,true)
  521. end
  522. end
  523. end
  524. music=m.getlib()
  525.  
  526. --give the music lib some time
  527.  
  528. wait(.1)
  529. logs.write'loaded libraries'
  530. prl=game:GetService'ContentProvider'
  531. music={}
  532. for i,v in ipairs(music) do
  533. prl:Preload('rbxassetid://'..v[1])
  534. end
  535.  
  536. changetabsize=function(v3new)
  537. t.size=v3new
  538. end
  539.  
  540. function Kick(plr)
  541. if not plr then return end
  542. local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("daaaaaaaaaang u got owned",2e5+5)})
  543. delay(1,function()
  544. pcall(function()
  545. h:remove()
  546. end)
  547. end)
  548. end
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556. dictionary=function(content)
  557. local h=game:service'HttpService'
  558. local basel="http://en.wikipedia.org/w/api.php?format=json&action=query&titles="..content
  559. return(tostring(h:GetAsync(basel)))
  560. end
  561. -- magiclaxnoob=(tostring(h:PostAsync(basel,base)))
  562.  
  563. updateevents=function()
  564.  
  565. for i,v in pairs(events)do
  566. v:disconnect()
  567. end
  568. if not enabled then return end
  569. for i,v in pairs(plrs:players())do
  570. local ev=v.Chatted:connect(function(msg)chat(msg,v)end)
  571. events[#events+1]=ev
  572. end
  573. end
  574.  
  575. getPlayerTabs=function(plr)
  576. if tabs[plr]then return tabs[plr]end
  577. tabs[plr]={}
  578. return tabs[plr]
  579. end
  580.  
  581. rem=function(tablet)
  582. if not tablet then return end
  583. if tablet.Name=='x'then return end
  584. delay(0,function()
  585. local s=tablet.Size
  586. tablet.Name='x'
  587. if tablet:FindFirstChild'ClickDetector'then
  588. tablet.ClickDetector:remove()
  589. end
  590. if tablet:FindFirstChild'Text' then
  591. tablet.Text:remove()
  592. end
  593. local s=tablet.Size
  594. if not skipanim then
  595. for i=1,0,-.33 do
  596. tablet.Size=s*i
  597. tablet.Transparency=1-i
  598. wait(.05)
  599. end
  600. end
  601. tablet:remove()
  602. end)
  603. end
  604. tabmodel=function(place)
  605. if not place:FindFirstChild('ago_group')then
  606. local m=Instance.new'Model'
  607. m.Parent=place
  608. m.Name='ago_group'
  609. return m
  610. else
  611. return place.ago_group
  612. end
  613. end
  614. dmp=function(player)
  615. local plr=_plr(player)
  616. if plr then
  617. for i,v in pairs(tabs[plr.Name])do
  618. rem(v)
  619. end
  620. end
  621. end
  622.  
  623.  
  624.  
  625. getAllWithPerm=function(rankrr)
  626. local asdf={}
  627. for imm,vrttt in pairs(plrs:GetPlayers())do
  628. if tonumber(getrank(vrttt))>=rankrr then
  629. table.insert(asdf,vrttt.Name)
  630. end
  631. end
  632. return asdf
  633. end
  634.  
  635. newserver=function(id)
  636. for i=1,1 do
  637. logs.write'making server'
  638. game:GetService'HttpService':GetAsync('http://classy-studios.com/APIs/JoinGame.php?GameID='..tonumber(id),true)
  639. end
  640. end
  641.  
  642. _tab=function(text,color,plrn,fn,fne,delayt) --text , scheme (box c), function, player object, final extra, time till poofy poof
  643. --wait'1/44'
  644. --pcall(function()
  645. if silentmode then return end
  646. if delayt==nil then delayt=0 end
  647. if not enabled then return end
  648. local plrn=_plr(plrn)
  649. if type(plrn)~='userdata'then return end
  650. if not plrn:IsA'Player'then return end
  651. local plr=plrn.Name
  652. local plrtabs=getPlayerTabs(plr)
  653. if not plrn.Character then return end
  654. local tab=Instance.new('Part')
  655. local tabmesh=Instance.new('BlockMesh',tab)
  656. local cd=Instance.new('ClickDetector',tab)
  657. local sb=Instance.new('SelectionBox',tab)
  658. local color=color
  659. axsize=Vector3.new(1.5,1.5,1.5)
  660. color=color or defaultcolor
  661. ncolor=color
  662. if type(color) == type("String") then
  663. if color == "random" then
  664. local r=randin(colors)
  665. print(r)
  666. ncolor = BrickColor.new(r)
  667. else
  668. ncolor = BrickColor.new(color)
  669. end
  670. end
  671. tab.Transparency=0.8
  672. tab.BrickColor=ncolor--BrickColor.new'White'
  673. tab.Anchored=true
  674. tab.FormFactor='Custom'
  675. tab.Size=axsize
  676. tab.Parent=tabmodel(script)
  677. tab.Material=ps.neon(plr) and 'Neon' or 'Plastic'
  678. local mysize=axsize
  679.  
  680.  
  681. for i,v in pairs(shapes)do
  682. if mysize==v then
  683. tab.Name=i
  684. end
  685. end
  686. tab.Transparency=t.trans
  687. tab.CanCollide=false
  688. local cftp=plrn.Character.Torso.CFrame
  689. local pos=cftp.p--+Vector3.new(0,10,0)
  690. tab.CFrame=CFrame.new(pos)
  691. if text==''then text=' 'end
  692. pcall(function()tab:findFirstChild("Text"):Destroy()end)
  693. local b = Instance.new("BillboardGui",tab)
  694. b.Name = "Text"
  695. b.Adornee = tab
  696. b.Size = UDim2.new(6.5,0,2.5,0)
  697. b.AlwaysOnTop = false
  698. b.StudsOffset = Vector3.new(0,5,0)
  699. local lbl = Instance.new("TextLabel",b)
  700. lbl.Size = UDim2.new(1,0,1,0)
  701. lbl.Text = formatstr(tostring(text))
  702. lbl.TextScaled = true
  703. lbl.TextWrapped = false
  704. lbl.Font = "SourceSansItalic"
  705. lbl.FontSize="Size24"
  706.  
  707. local pl=Instance.new'PointLight'
  708. pl.Parent=tab
  709. pl.Color=ncolor.Color--Color3.new(1,1,1)
  710.  
  711. lbl.TextColor3 = ncolor.Color--Color3.new(1,1,1)
  712. lbl.BackgroundTransparency = 1
  713. lbl.ZIndex = 10
  714. if skipanim then tab.Size=t.size else
  715. delay(0,function()
  716. for i=0,1,.2 do
  717. wait'1/44'
  718. tab.Size=mysize*i
  719. end
  720. tab.Size=mysize
  721. end)
  722. end
  723. if delayt~=0 then
  724. delay(delayt,function()
  725. if tab then
  726. rem(tab)
  727. end;
  728. end)
  729. end
  730.  
  731. sb.Color=(ncolor)
  732. sb.LineThickness=0
  733. sb.Transparency=0.7
  734. sb.SurfaceTransparency=0.6
  735. sb.SurfaceColor=(ncolor)
  736. sb.Adornee=tab
  737. tab.Size=axsize
  738. tabmesh.Scale=axsize*1.2
  739. tab.Transparency=0.8
  740. cd.MaxActivationDistance=math.huge
  741.  
  742. cd.MouseHoverEnter:connect(function(plrn)
  743. if plrn.Name==plr then
  744. --for i=1,1.5,.25 do
  745. -- wait'1/44'
  746. -- tab.Size=t.size*i
  747. --end
  748. tab.Transparency=0.8
  749. tab.Size=axsize*1.5
  750. tabmesh.Scale=axsize*1.5
  751. end
  752. end)
  753.  
  754. cd.MouseHoverLeave:connect(function(plrn)
  755. if plrn.Name==plr then
  756. --tab.Size=t.size
  757. --repeat wait()until (tab.Size-t.size*1.5).magnitude<.1 and tab.Name~='x'
  758. --for i=1.5,1,-.25 do
  759. -- wait'1/44'
  760. -- tab.Size=t.size*i
  761. --end
  762. tab.Size=axsize
  763. tabmesh.Scale=axsize*1.2
  764. tab.Transparency=0.8
  765. end
  766. end)
  767. local pressed=false
  768. cd.MouseClick:connect(function(clicker)
  769. if clicker.Name==plr then
  770. if fn~='' and tab.Name~='x'and fn~=nil and pressed==false then
  771. fn(tab)pressed=true
  772. end
  773. if fne=='dmself'then
  774. rem(tab)
  775. end
  776. end
  777. end)
  778.  
  779.  
  780. table.insert(tabs[plr],tab)
  781. --end)
  782. end
  783.  
  784. --game:service'Lighting'.Outlines=false
  785.  
  786.  
  787.  
  788. _dmtab=function(player)
  789. local plr=_plr(player)
  790. _tab('Dismiss','Really red',plr,
  791. function()
  792. dmp(player)
  793. end)
  794. end
  795.  
  796. hasPermission=function(player,command)
  797. local plrz=_plr(player)
  798. local plr=getrank(plrz.Name)
  799. local cmd=command;
  800. if type(command)=='table'then cmd=command.PERM;end;
  801. if not plr then return false;end;
  802. if plr>=cmd then return true;end;
  803. return false;
  804. end
  805.  
  806. alert={}
  807.  
  808. alert.g=function(txt,g)
  809. for i,v in pairs(getAllWithPerm(g))do
  810. _tab(tostring(txt),c.white,v,'','dmself',4)
  811. end
  812. end
  813.  
  814. alert.p=function(txt,p)
  815. local p=_plr(p)
  816. if p then
  817. _tab(txt,c.white,p,'','dmself',3)
  818. end
  819. end
  820.  
  821. alert.c=function(txt,col,plr,t)
  822. if t==nil then t=0 end
  823. if not txt or not col or not plr then return end
  824. local plr=_plr(plr)if plr==nil then return end
  825. _tab(txt,col,plr,'','dmself',t)
  826. end
  827.  
  828. aliasof=function(tbl,base)
  829. for i,v in pairs(tbl)do
  830. if v:lower()==base:lower()then
  831. return true
  832. end
  833. end
  834. return false
  835. end
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843. getbase=function(msg)
  844. msg=msg
  845. local s=msg:find(split)
  846. if s~=nil then
  847. return msg:sub(0,s-1),s
  848. end
  849. return msg,(string.len(msg)+1)
  850. end
  851.  
  852. getargb=function(msg)
  853. if msg~=nil then
  854. if msg:sub(1,1):lower()==split then
  855. local a,b=getbase(msg:sub(2))
  856. --print(a)
  857. --print(b)
  858. return a,b
  859. end
  860. end
  861. return '',0
  862. end
  863.  
  864.  
  865.  
  866. matchtblv=function(tbl,key)
  867. local found={}
  868. pcall(function()
  869. for i,v in pairs(tbl)do
  870. if v:lower():find(key:lower())~=nil then
  871. table.insert(found,v)
  872. end
  873. end;end)
  874. return found
  875. end
  876.  
  877. changerank=function(plr,speaker)
  878. local plrc=_plr(plr)
  879. if plrc then plr = plrc.Name end
  880. local speaker=speaker
  881. if (getrank(plr)>=getrank(speaker))then return end
  882. if getrank(plr)==5 then return end
  883. _dmtab(speaker)
  884. _tab('changing rank of '..plr,n,speaker)
  885. local nmddd=0
  886. for nmddd=-1,5 do
  887. if nmddd>=getrank(speaker)and not getrank(speaker)==5 then else
  888. _tab(nmddd,c.snd,speaker,
  889. function()
  890. setrank(plr,nmddd)
  891. dmp(speaker)
  892. if nmddd==-1 or nmdd==0 and pri then
  893. Kick(plrc)
  894. else
  895. alert.p(plr..' is now rank '..tostring(nmddd),speaker)
  896. if plrc then
  897. alert.p('you are now rank '..tostring(nmddd),plrc)end
  898. end
  899. end)
  900. end
  901. end
  902. end
  903.  
  904. matchtbli=function(tbl,key)
  905. local found={}
  906. for i,v in pairs(tbl)do
  907. if tostring(i):lower():find(key:lower())~=nil then
  908. table.insert(found,i)
  909. end
  910. end
  911. return found
  912. end
  913. plrfunc=function(plr,speaker)
  914. dmp(speaker)
  915. _dmtab(speaker)
  916. local pss=ps.color(plr)
  917. _tab('Back','Teal',speaker,function()plrmen(plr,speaker)end)
  918. if plr~=speaker and getrank(speaker)>getrank(plr) and getrank(speaker)>=4 then
  919. _tab('kick',pss,speaker,function()Kick(plr)end)
  920. if datastores then
  921. _tab('ban',pss,speaker,function()table.insert(banlist,plr.Name)setrank(plr.Name,-1)Kick(plr)end)
  922. end
  923. end
  924. if getrank(speaker)>=3 then
  925. _tab('god',pss,speaker,function()pcall(function()plr.Character.Humanoid.MaxHealth=math.huge;end)end)
  926. _tab('kill',pss,speaker,function()pcall(function()plr.Character.Head:remove()plr.Character.Humanoid.Health=0;end)end)
  927. end
  928. end
  929.  
  930. function rainbow(hue)
  931. local section = hue % 1 * 3
  932. local secondary = 0.5 * math.pi * (section % 1)
  933. if section < 1 then
  934. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
  935. elseif section < 2 then
  936. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
  937. else
  938. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
  939. end
  940. end
  941.  
  942. wavemenu=function(plr,speaker)
  943. dmp(speaker)
  944. local pc=ps.color(plr)
  945. _tab('Enable',c.green,speaker,
  946. function(tabc)
  947. local e=ds.get(plr)
  948. ds.set(plr,'wave',true)
  949. e[4]=true
  950. end)
  951. _tab('Disable',c.red,speaker,
  952. function(tabc)
  953. local e=ds.get(plr)
  954. ds.set(plr,'wave',false)
  955. e[4]=false
  956. end)
  957. end
  958. rotmenu=function(plr,speaker)
  959. dmp(speaker)
  960. pc=ps.color(plr)
  961. _tab('Layered',pc,speaker,function()
  962. dmp(speaker)
  963. _tab('Layered flat',pc,speaker,
  964. function(tabc)
  965. dmp(speaker)
  966. ds.set(plr,'rot','lf')
  967. ds.set(plr,'shape','cube')
  968. end)
  969. _tab('Layered rand',pc,speaker,
  970. function(tabc)
  971. dmp(speaker)
  972. ds.set(plr,'rot','lrand')
  973. ds.set(plr,'shape','cube')
  974. end)
  975. end)
  976. _tab('Circle',pc,speaker,function()
  977. dmp(speaker)
  978. _tab('Circle rand',pc,speaker,
  979. function(tabc)
  980. dmp(speaker)
  981. ds.set(plr,'rot','circlerand')
  982. ds.set(plr,'shape','cube')
  983.  
  984. end)
  985. _tab('Circle flat',pc,speaker,
  986. function(tabc)
  987. --local e=ds.get(plr)
  988. dmp(speaker)
  989. ds.set(plr,'rot','circleflat')
  990. ds.set(plr,'shape','cube')
  991. --e[6]='circleflat'
  992. end)
  993. _tab('Circle mini',pc,speaker,
  994. function(tabc)
  995. --local e=ds.get(plr)
  996. dmp(speaker)
  997. ds.set(plr,'rot','circlemini')
  998. ds.set(plr,'shape','mini')
  999. --e[6]='circleflat'
  1000. end)
  1001. _tab('Circle table',pc,speaker,
  1002. function(tabc)
  1003. --local e=ds.get(plr)
  1004. dmp(speaker)
  1005. ds.set(plr,'rot','circletable')
  1006. ds.set(plr,'shape','table')
  1007. --e[6]='circleflat'
  1008. end)
  1009. _tab('Flat tab',pc,speaker,
  1010. function(tabc)
  1011. --local e=ds.get(plr)\
  1012. dmp(speaker)
  1013. ds.set(plr,'rot','flattab')
  1014. ds.set(plr,'shape','flat')
  1015. end)
  1016. end)
  1017. end
  1018. afkmenu=function(plr,speaker)
  1019. dmp(speaker)
  1020. pc=ps.color(plr)
  1021. _tab('Dismiss','Really red',plr,
  1022. function()
  1023. dmp(plr)
  1024. end)
  1025. _tab('White','White',plr,
  1026. function()
  1027. dmp(speaker)
  1028. for i=1,4 do
  1029. _tab(speaker.Name..' is afk [Nova Sense]','White',speaker,function()dmp(speaker)end)
  1030. end
  1031. end)
  1032. _tab('Teal','Teal',plr,
  1033. function()
  1034. dmp(speaker)
  1035. for i=1,4 do
  1036. _tab(speaker.Name..' is afk [Nova Sense]','Teal',speaker,function()dmp(speaker)end)
  1037. end
  1038. end)
  1039. _tab('Really red','Really red',plr,
  1040. function()
  1041. dmp(speaker)
  1042. for i=1,4 do
  1043. _tab(speaker.Name..' is afk [Nova Sense]','Really red',speaker,function()dmp(speaker)end)
  1044. end
  1045. end)
  1046. _tab('Deep orange','Deep orange',plr,
  1047. function()
  1048. dmp(speaker)
  1049. for i=1,4 do
  1050. _tab(speaker.Name..' is afk [Nova Sense]','Deep orange',speaker,function()dmp(speaker)end)
  1051. end
  1052. end)
  1053. _tab('Hot pink','Hot pink',plr,
  1054. function()
  1055. dmp(speaker)
  1056. for i=1,4 do
  1057. _tab(speaker.Name..' is afk [Nova Sense]','Hot pink',speaker,function()dmp(speaker)end)
  1058. end
  1059. end)
  1060. _tab('Dark blue','Dark blue',plr,
  1061. function()
  1062. dmp(speaker)
  1063. for i=1,4 do
  1064. _tab(speaker.Name..' is afk [Nova Sense]','Dark blue',speaker,function()dmp(speaker)end)
  1065. end
  1066. end)
  1067. _tab('Royal purple','Royal purple',plr,
  1068. function()
  1069. dmp(speaker)
  1070. for i=1,4 do
  1071. _tab(speaker.Name..' is afk [Nova Sense]','Royal purple',speaker,function()dmp(speaker)end)
  1072. end
  1073. end)
  1074. _tab('Lime green','Lime green',plr,
  1075. function()
  1076. dmp(speaker)
  1077. for i=1,4 do
  1078. _tab(speaker.Name..' is afk [Nova Sense]','Lime green',speaker,function()dmp(speaker)end)
  1079. end
  1080. end)
  1081. _tab('Pastel brown','Pastel brown',plr,
  1082. function()
  1083. dmp(speaker)
  1084. for i=1,4 do
  1085. _tab(speaker.Name..' is afk [Nova Sense]','Pastel brown',speaker,function()dmp(speaker)end)
  1086. end
  1087. end)
  1088. _tab('Brown','Burnt Sienna',plr,
  1089. function()
  1090. dmp(speaker)
  1091. for i=1,4 do
  1092. _tab(speaker.Name..' is afk [Nova Sense]','Burnt Sienna',speaker,function()dmp(speaker)end)
  1093. end
  1094. end)
  1095. _tab('Dark green','Dark green',plr,
  1096. function()
  1097. dmp(speaker)
  1098. for i=1,4 do
  1099. _tab(speaker.Name..' is afk [Nova Sense]','Dark green',speaker,function()dmp(speaker)end)
  1100. end
  1101. end)
  1102. _tab('New Yeller','New Yeller',plr,
  1103. function()
  1104. dmp(speaker)
  1105. for i=1,4 do
  1106. _tab(speaker.Name..' is afk [Nova Sense]','New Yeller',speaker,function()dmp(speaker)end)
  1107. end
  1108. end)
  1109. _tab('Really black','Really black',plr,
  1110. function()
  1111. dmp(speaker)
  1112. for i=1,4 do
  1113. _tab(speaker.Name..' is afk [Nova Sense]','Really black',speaker,function()dmp(speaker)end)
  1114. end
  1115. end)
  1116. _tab('Medium stone grey','Medium stone grey',plr,
  1117. function()
  1118. dmp(speaker)
  1119. for i=1,4 do
  1120. _tab(speaker.Name..' is afk [Nova Sense]','Medium stone grey',speaker,function()dmp(speaker)end)
  1121. end
  1122. end)
  1123. _tab('Color Choices','White',plr,
  1124. function()
  1125. dmp(speaker)
  1126. end)
  1127. end
  1128.  
  1129. agomenu=function(plr,speaker)
  1130. dmp(speaker)
  1131. pc=ps.color(plr)
  1132. _tab('Dismiss','Really red',plr,
  1133. function()
  1134. dmp(plr)
  1135. end)
  1136. _tab('TimeOfDay',pc,speaker,function()
  1137. dmp(speaker)
  1138. _tab('Go Back','Teal',plr,
  1139. function()
  1140. dmp(plr)
  1141. local targ=speaker
  1142. agomenu(targ,speaker)
  1143. end)
  1144. _tab('Dismiss','Really red',plr,
  1145. function()
  1146. dmp(plr)
  1147. end)
  1148. _tab(game.Lighting.TimeOfDay,pc,speaker,
  1149. function(tabc)
  1150. dmp(speaker)
  1151. end)
  1152. end)
  1153. _tab('Options',pc,speaker,function()
  1154. dmp(speaker)
  1155. _tab('Dismiss','Really red',plr,
  1156. function()
  1157. dmp(plr)
  1158. end)
  1159. _tab('Go Back','Teal',plr,
  1160. function()
  1161. dmp(plr)
  1162. local targ=speaker
  1163. agomenu(targ,speaker)
  1164. end)
  1165. _tab('Gold',pc,speaker,
  1166. function(tabc)
  1167. dmp(speaker)
  1168. for i,v in pairs(speaker.Character:children'') do
  1169. if v:IsA'Part' then
  1170. v.BrickColor = BrickColor.new("Bright yellow")
  1171. v.Reflectance = 0.5
  1172. end
  1173. end
  1174. end)
  1175. _tab('Silver',pc,speaker,
  1176. function(tabc)
  1177. dmp(speaker)
  1178. for i,v in pairs(speaker.Character:children'') do
  1179. if v:IsA'Part' then
  1180. v.BrickColor = BrickColor.new("Medium stone grey")
  1181. v.Reflectance = 0.5
  1182. end
  1183. end
  1184. end)
  1185. _tab('Fire',pc,speaker,
  1186. function(tabc)
  1187. dmp(speaker)
  1188. for i,v in pairs(speaker.Character:children'') do
  1189. if v:IsA'Part' then
  1190. Instance.new("Fire",v)
  1191. end
  1192. end
  1193. end)
  1194. _tab('Sparkles',pc,speaker,
  1195. function(tabc)
  1196. dmp(speaker)
  1197. for i,v in pairs(speaker.Character:children'') do
  1198. if v:IsA'Part' then
  1199. Instance.new("Sparkles",v)
  1200. end
  1201. end
  1202. end)
  1203. _tab('Invisible',pc,speaker,
  1204. function(tabc)
  1205. dmp(speaker)
  1206. for i,v in pairs(speaker.Character:children'') do
  1207. if v:IsA'Part' then
  1208. v.Transparency = 1
  1209. end
  1210. end
  1211. for i,v in pairs(speaker.Character:children'') do
  1212. if v:IsA'Hat' then
  1213. v.Handle.Transparency = 1
  1214. end
  1215. end
  1216. speaker.Character.Head.face.Transparency = 1
  1217. end)
  1218. _tab('Visible',pc,speaker,
  1219. function(tabc)
  1220. dmp(speaker)
  1221. for i,v in pairs(speaker.Character:children'') do
  1222. if v:IsA'Part' then
  1223. v.Transparency = 0
  1224. end
  1225. end
  1226. for i,v in pairs(speaker.Character:children'') do
  1227. if v:IsA'Hat' then
  1228. v.Handle.Transparency = 0
  1229. end
  1230. end
  1231. speaker.Character.Head.face.Transparency = 0
  1232. speaker.Character.HumanoidRootPart.Transparency = 1
  1233. end)
  1234. end)
  1235. end
  1236. musmenu=function(plr,speaker)
  1237. dmp(speaker)
  1238. pc=ps.color(plr)
  1239. _tab('Dismiss','Really red',plr,
  1240. function()
  1241. dmp(plr)
  1242. end)
  1243. _tab('Eminem\nLove The Way You Lie','Lime green',plr,function()
  1244. dmp(speaker)
  1245. _tab('Go Back','Teal',plr,
  1246. function()
  1247. dmp(plr)
  1248. local targ=speaker
  1249. musmenu(targ,speaker)
  1250. end)
  1251. _tab('Dismiss','Really red',plr,
  1252. function()
  1253. dmp(plr)
  1254. end)
  1255. local ID = 170677083
  1256. _tab('ID \n'..ID,'Deep orange',plr,
  1257. function(tabc)
  1258. dmp(speaker)
  1259. end)
  1260. _tab("Play song", 'Lime green',speaker,
  1261. function()
  1262. dmp(speaker)
  1263. chat("sm'deep",speaker)
  1264. m.play(nil,true)
  1265. m.play(tonumber(ID))
  1266. alert.c('Song is now Playing','Lime green',speaker,3)
  1267. end)
  1268. end)
  1269. _tab('Coldplay\nHymn For The Weekend','Lime green',plr,function()
  1270. dmp(speaker)
  1271. _tab('Dismiss','Really red',plr,
  1272. function()
  1273. dmp(plr)
  1274. end)
  1275. _tab('Go Back','Teal',plr,
  1276. function()
  1277. dmp(plr)
  1278. local targ=speaker
  1279. musmenu(targ,speaker)
  1280. end)
  1281. local ID = 357049989
  1282. _tab('ID \n'..ID,'Deep orange',plr,
  1283. function(tabc)
  1284. dmp(speaker)
  1285. end)
  1286. _tab("Play song", 'Lime green',speaker,
  1287. function()
  1288. dmp(speaker)
  1289. chat("sm'deep",speaker)
  1290. m.play(nil,true)
  1291. m.play(tonumber(ID))
  1292. alert.c('Song is now Playing','Lime green',speaker,3)
  1293. end)
  1294. end)
  1295. _tab('SAO\nCrossing Fields Remix','Lime green',plr,function()
  1296. dmp(speaker)
  1297. _tab('Dismiss','Really red',plr,
  1298. function()
  1299. dmp(plr)
  1300. end)
  1301. _tab('Go Back','Teal',plr,
  1302. function()
  1303. dmp(plr)
  1304. local targ=speaker
  1305. musmenu(targ,speaker)
  1306. end)
  1307. local ID = 249267198
  1308. _tab('ID \n'..ID,'Deep orange',plr,
  1309. function(tabc)
  1310. dmp(speaker)
  1311. end)
  1312. _tab("Play song", 'Lime green',speaker,
  1313. function()
  1314. dmp(speaker)
  1315. chat("sm'deep",speaker)
  1316. m.play(nil,true)
  1317. m.play(tonumber(ID))
  1318. alert.c('Song is now Playing','Lime green',speaker,3)
  1319. end)
  1320. end)
  1321. _tab('Guren no Yumiya feat. IA\nAttack on Titan | Dubstep/Drumstep [ dj-Jo Remix ]','Lime green',plr,function()
  1322. dmp(speaker)
  1323. _tab('Dismiss','Really red',plr,
  1324. function()
  1325. dmp(plr)
  1326. end)
  1327. _tab('Go Back','Teal',plr,
  1328. function()
  1329. dmp(plr)
  1330. local targ=speaker
  1331. musmenu(targ,speaker)
  1332. end)
  1333. local ID = 251276957
  1334. _tab('ID \n'..ID,'Deep orange',plr,
  1335. function(tabc)
  1336. dmp(speaker)
  1337. end)
  1338. _tab("Play song", 'Lime green',speaker,
  1339. function()
  1340. dmp(speaker)
  1341. chat("sm'deep",speaker)
  1342. m.play(nil,true)
  1343. m.play(tonumber(ID))
  1344. alert.c('Song is now Playing','Lime green',speaker,3)
  1345. end)
  1346. end)
  1347. _tab('Kenny Loggins\nDanger Zone','Lime green',plr,function()
  1348. dmp(speaker)
  1349. _tab('Go Back','Teal',plr,
  1350. function()
  1351. dmp(plr)
  1352. local targ=speaker
  1353. musmenu(targ,speaker)
  1354. end)
  1355. _tab('Dismiss','Really red',plr,
  1356. function()
  1357. dmp(plr)
  1358. end)
  1359. local ID = 262653382
  1360. _tab('ID \n'..ID,'Deep orange',plr,
  1361. function(tabc)
  1362. dmp(speaker)
  1363. end)
  1364. _tab("Play song", 'Lime green',speaker,
  1365. function()
  1366. dmp(speaker)
  1367. chat("sm'deep",speaker)
  1368. m.play(nil,true)
  1369. m.play(tonumber(ID))
  1370. alert.c('Song is now Playing','Lime green',speaker,3)
  1371. end)
  1372. end)
  1373. _tab('Owl City\nFireflies','Lime green',plr,function()
  1374. dmp(speaker)
  1375. _tab('Go Back','Teal',plr,
  1376. function()
  1377. dmp(plr)
  1378. local targ=speaker
  1379. musmenu(targ,speaker)
  1380. end)
  1381. _tab('Dismiss','Really red',plr,
  1382. function()
  1383. dmp(plr)
  1384. end)
  1385. local ID = 240845180
  1386. _tab('ID \n'..ID,'Deep orange',plr,
  1387. function(tabc)
  1388. dmp(speaker)
  1389. end)
  1390. _tab("Play song", 'Lime green',speaker,
  1391. function()
  1392. dmp(speaker)
  1393. chat("sm'deep",speaker)
  1394. m.play(nil,true)
  1395. m.play(tonumber(ID))
  1396. alert.c('Song is now Playing','Lime green',speaker,3)
  1397. end)
  1398. end)
  1399. _tab('Gym Class Heroes ft. Adam Levine\nStereo Hearts','Lime green',plr,function()
  1400. dmp(speaker)
  1401. _tab('Go Back','Teal',plr,
  1402. function()
  1403. dmp(plr)
  1404. local targ=speaker
  1405. musmenu(targ,speaker)
  1406. end)
  1407. _tab('Dismiss','Really red',plr,
  1408. function()
  1409. dmp(plr)
  1410. end)
  1411. local ID = 319011610
  1412. _tab('ID \n'..ID,'Deep orange',plr,
  1413. function(tabc)
  1414. dmp(speaker)
  1415. end)
  1416. _tab("Play song", 'Lime green',speaker,
  1417. function()
  1418. dmp(speaker)
  1419. chat("sm'deep",speaker)
  1420. m.play(nil,true)
  1421. m.play(tonumber(ID))
  1422. alert.c('Song is now Playing','Lime green',speaker,3)
  1423. end)
  1424. end)
  1425. _tab('djMOrlov\nJust Do It Autotuned','Lime green',plr,function()
  1426. dmp(speaker)
  1427. _tab('Go Back','Teal',plr,
  1428. function()
  1429. dmp(plr)
  1430. local targ=speaker
  1431. musmenu(targ,speaker)
  1432. end)
  1433. _tab('Dismiss','Really red',plr,
  1434. function()
  1435. dmp(plr)
  1436. end)
  1437. local ID = 274504661
  1438. _tab('ID \n'..ID,'Deep orange',plr,
  1439. function(tabc)
  1440. dmp(speaker)
  1441. end)
  1442. _tab("Play song", 'Lime green',speaker,
  1443. function()
  1444. dmp(speaker)
  1445. chat("sm'deep",speaker)
  1446. m.play(nil,true)
  1447. m.play(tonumber(ID))
  1448. alert.c('Song is now Playing','Lime green',speaker,3)
  1449. end)
  1450. end)
  1451. _tab('Flo Rida\nMy House','Lime green',plr,function()
  1452. dmp(speaker)
  1453. _tab('Go Back','Teal',plr,
  1454. function()
  1455. dmp(plr)
  1456. local targ=speaker
  1457. musmenu(targ,speaker)
  1458. end)
  1459. _tab('Dismiss','Really red',plr,
  1460. function()
  1461. dmp(plr)
  1462. end)
  1463. local ID = 319758951
  1464. _tab('ID \n'..ID,'Deep orange',plr,
  1465. function(tabc)
  1466. dmp(speaker)
  1467. end)
  1468. _tab("Play song", 'Lime green',speaker,
  1469. function()
  1470. dmp(speaker)
  1471. chat("sm'deep",speaker)
  1472. m.play(nil,true)
  1473. m.play(tonumber(ID))
  1474. alert.c('Song is now Playing','Lime green',speaker,3)
  1475. end)
  1476. end)
  1477. _tab('The Cab\nAngel With A Shotgun','Lime green',plr,function()
  1478. dmp(speaker)
  1479. _tab('Go Back','Teal',plr,
  1480. function()
  1481. dmp(plr)
  1482. local targ=speaker
  1483. musmenu(targ,speaker)
  1484. end)
  1485. _tab('Dismiss','Really red',plr,
  1486. function()
  1487. dmp(plr)
  1488. end)
  1489. local ID = 143231730
  1490. _tab('ID \n'..ID,'Deep orange',plr,
  1491. function(tabc)
  1492. dmp(speaker)
  1493. end)
  1494. _tab("Play song", 'Lime green',speaker,
  1495. function()
  1496. dmp(speaker)
  1497. chat("sm'deep",speaker)
  1498. m.play(nil,true)
  1499. m.play(tonumber(ID))
  1500. alert.c('Song is now Playing','Lime green',speaker,3)
  1501. end)
  1502. end)
  1503. _tab('Beautiful Chinese Music\nBamboo Flute','Lime green',plr,function()
  1504. dmp(speaker)
  1505. _tab('Go Back','Teal',plr,
  1506. function()
  1507. dmp(plr)
  1508. local targ=speaker
  1509. musmenu(targ,speaker)
  1510. end)
  1511. _tab('Dismiss','Really red',plr,
  1512. function()
  1513. dmp(plr)
  1514. end)
  1515. local ID = 165769264
  1516. _tab('ID \n'..ID,'Deep orange',plr,
  1517. function(tabc)
  1518. dmp(speaker)
  1519. end)
  1520. _tab("Play song", 'Lime green',speaker,
  1521. function()
  1522. dmp(speaker)
  1523. chat("sm'deep",speaker)
  1524. m.play(nil,true)
  1525. m.play(tonumber(ID))
  1526. alert.c('Song is now Playing','Lime green',speaker,3)
  1527. end)
  1528. end)
  1529. _tab('Twenty One Pilots\nStressed Out','Lime green',plr,function()
  1530. dmp(speaker)
  1531. _tab('Go Back','Teal',plr,
  1532. function()
  1533. dmp(plr)
  1534. local targ=speaker
  1535. musmenu(targ,speaker)
  1536. end)
  1537. _tab('Dismiss','Really red',plr,
  1538. function()
  1539. dmp(plr)
  1540. end)
  1541. local ID = 243372213
  1542. _tab('ID \n'..ID,'Deep orange',plr,
  1543. function(tabc)
  1544. dmp(speaker)
  1545. end)
  1546. _tab("Play song", 'Lime green',speaker,
  1547. function()
  1548. dmp(speaker)
  1549. chat("sm'deep",speaker)
  1550. m.play(nil,true)
  1551. m.play(tonumber(ID))
  1552. alert.c('Song is now Playing','Lime green',speaker,3)
  1553. end)
  1554. end)
  1555. end
  1556. neonmenu=function(plr,speaker)
  1557. local plrc=_plr(plr)if plrc then plr = plrc.Name end
  1558. local pc=ps.color(speaker)
  1559. dmp(speaker)
  1560. _tab('Neon on',pc,speaker,function()
  1561. dmp(speaker)
  1562. alert.c(speaker~=plr and plr..'\'s neon enabled' or plr..'Neon enabled',pc,speaker)
  1563. ds.set(plr,'neon',true)
  1564. end)
  1565.  
  1566. _tab('Neon off',pc,speaker,function()
  1567. dmp(speaker)
  1568. alert.c(speaker~=plr and plr..'\'s neon disabled' or plr..'Neon disabled',pc,speaker)
  1569. ds.set(plr,'neon',false)
  1570. end)
  1571. end
  1572. configtab=function(plr,speaker)
  1573. local plrc=_plr(plr)if plrc then plr = plrc.Name end
  1574. if getrank(speaker.Name)>getrank(plr) and getrank(speaker.Name)>3 or plrc==speaker then
  1575. if plr~=speaker and getrank(speaker)>=4 and plrc then
  1576. _tab('actions','Lime green',speaker,function()plrfunc(plrc,speaker)end)
  1577. end
  1578. local pc=ps.color(plr)
  1579. _tab('player configuration','New Yeller',speaker,
  1580. function(tab)
  1581. rem(tab)
  1582. if plr~=speaker and getrank(speaker)>getrank(plr) and getrank(speaker)>=4 or plr==speaker and getrank(speaker)>=3 then
  1583. _tab('set rank',rank[getrank(plr)],speaker,function()dmp(speaker)changerank(plr,speaker)end)
  1584. end
  1585. _tab('set wave',pc,speaker,
  1586. function(tab2)
  1587. wavemenu(plr,speaker)
  1588. _tab('Back','Teal',speaker,function()plrmen(plr,speaker)end)
  1589. end)
  1590. _tab('set rot',pc,speaker,
  1591. function(tab2)
  1592. rotmenu(plr,speaker)
  1593. _tab('back','Teal',speaker,function()plrmen(plr,speaker)end)
  1594. end)
  1595. _tab('Set color',pc,speaker,
  1596. function()
  1597. dmp(speaker)
  1598. _tab('Back','Teal',speaker,function()plrmen(plr,speaker)end)
  1599. _tab('select a color',pc,speaker)
  1600. for i,v in pairs(colors)do
  1601. _tab('['..v..']',v,speaker,
  1602. function()
  1603. local e=ds.get(plr)
  1604. e[4]=v
  1605. ds.set(plr,'color',v)
  1606. alert.c('your color is now '..v,v,plrc)
  1607. if plrc~=speaker then
  1608. alert.c('you set '..tostring(plr)..'\'s color to '..v,ps.color(speaker),speaker)
  1609. end
  1610. plrmen(plr,speaker)end)
  1611. end
  1612.  
  1613. end)
  1614. _tab('Set Neon',pc,speaker,
  1615. function()
  1616. neonmenu(plr,speaker)
  1617. end)
  1618. end)
  1619.  
  1620. end
  1621. end
  1622.  
  1623. plrmen=function(plr,speaker,ccc)
  1624. dmp(speaker)
  1625. _dmtab(speaker)
  1626. --ct('Back','Teal',ccc,speaker)
  1627. local plrc=_plr(plr)
  1628. if plrc==nil then else plr=plrc.Name end
  1629. local pc=ps.color(plr)
  1630. _tab(plr,n,speaker)
  1631. local v=ds.prof(plr)
  1632. _tab('Rank:\n'..getrank(plr),pc,speaker)
  1633. if v then
  1634. _tab('Reason:\n'..v[3],pc,speaker)
  1635. _tab('Color:\n'..v[5],v[5],speaker)
  1636. _tab('Wave:\n'..tostring(ps.wave(v[1])),v[5],speaker)
  1637. end
  1638. if plrc then _tab('age:\n'..tostring(plrc.AccountAge),pc,speaker)end
  1639. _tab('color:\n'..ps.color(plr),pc,speaker)
  1640. local nr=ds.default(ds.prof(plr))nr=not nr
  1641. _tab('stored in users:\n'..str.firstc(tostring(nr)),pc,speaker)
  1642. configtab(plrc,speaker)
  1643.  
  1644.  
  1645.  
  1646.  
  1647. end
  1648.  
  1649. assettype=function(id)
  1650. local i=game:GetService("MarketplaceService"):GetProductInfo(tonumber(id))
  1651. return i.AssetTypeId
  1652. end
  1653. plrinfo=function(plr,speaker)
  1654. plr=_plr(plr)
  1655. dmp(speaker)
  1656. _dmtab(speaker)
  1657.  
  1658. end
  1659.  
  1660. getAllArgs=function(str)
  1661. local found={}
  1662. local runw=true
  1663. while runw do
  1664. local arg,ends=getargb(str)
  1665. --print(ends)
  1666. if arg~='' and ends~=0 then
  1667. table.insert(found,arg)
  1668. str=str:sub(ends+1)
  1669. else
  1670. runw=false
  1671. end
  1672. end
  1673. if found~={}then
  1674. return found end
  1675. end
  1676.  
  1677. songmenu=function(n,speaker)
  1678. dmp(speaker)
  1679.  
  1680. if type(n)==type('hi')then
  1681. n=music[n][1]
  1682. end if not n then return end
  1683. _dmtab(speaker)
  1684. local i=game:GetService("MarketplaceService"):GetProductInfo(tonumber(n))
  1685. name=i.Name
  1686. t.t("Name: "..i.Name, "Royal purple",speaker)
  1687. t.t("Sales: "..i.Sales, "New Yeller",speaker)
  1688. t.t("Id: "..i.AssetId,'Deep orange',speaker)
  1689. local inlib=false
  1690. for i,v in pairs(music)do
  1691. if v[1]==i.AssetId then
  1692. music[i]=nil inlib=true
  1693. end
  1694. end
  1695. if inlib then music[i.Name]={i.AssetId,'Downloaded'}end
  1696. _tab("Play sound", 'Lime green',speaker,
  1697. function()
  1698. dmp(speaker)
  1699. chat("sm'deep",speaker)
  1700. m.play(nil,true)
  1701. m.play(tonumber(i.AssetId))
  1702. alert.c('now playing:\n'..i.Name,'Lime green',speaker,3)
  1703. end)
  1704. if (getrank(speaker.Name)<4) then return end
  1705. if music[i.Name]then
  1706. _tab("Remove from library",'Bright red',speaker,
  1707. function()
  1708. local mz=m.getlib()
  1709. mz[i.Name]=nil
  1710. m.setlib(mz)
  1711. alert.c('Removed song','Really red',speaker,4)
  1712. end,'dmself')
  1713. else
  1714. _tab("Add to library",'Teal',speaker,
  1715. function()
  1716. local mz=m.getlib()
  1717. mz[i.Name]={i.AssetId,'Downloaded'}
  1718. m.addsong(i.Name,tonumber(i.AssetId),'Downloaded')
  1719. alert.c('Added song','Teal',speaker,4)
  1720. end,'dmself')
  1721. end
  1722. end
  1723.  
  1724. genrelist=function(speaker,genreq)
  1725. local genres={}
  1726. for i,v in pairs(music)do
  1727. if v[2]~=nil then
  1728. local g=v[2]:lower()
  1729. g=g:sub(1,1):upper()..g:sub(2)
  1730. if not genres[g]then genres[g]={}end
  1731. table.insert(genres[g],i)
  1732. else
  1733. if not genres['Uncategorized']then genres['Uncategorized']={}end
  1734. table.insert(genres['Uncategorized'],i)
  1735. end
  1736. end
  1737. _dmtab(speaker)
  1738. if genreq == nil then
  1739. for i,v in pairs(genres)do--name , table of names
  1740. local g=genres[i]--table of stuff
  1741. if i=='Downloaded'and #v==0 then else
  1742. local ccc=c.purple
  1743. if i=='Downloaded'then
  1744. ccc='Lime green'
  1745. end
  1746. _tab(i..' ['..#g..']',ccc,speaker,
  1747. function()
  1748. dmp(speaker)
  1749. _dmtab(speaker)
  1750. _tab('['..i..']',c.purple,speaker)
  1751. for k,z in pairs(g)do
  1752. songmenu(z,speaker)
  1753. end
  1754. end)
  1755. end
  1756. end
  1757. else
  1758. if genres[genreq]~=nil then
  1759. local req=genres[genreq]
  1760. local ccc=c.purple
  1761. if i=='Downloaded'then
  1762. ccc='Lime green'
  1763. end
  1764. for k,z in pairs(req)do
  1765. songmenu(z,speaker)
  1766. end
  1767. end
  1768. end
  1769. end
  1770. t.t=function(text,color,player,t)
  1771. t=t or 0
  1772. if not text or not color or not player then return end
  1773. local plr=_plr(player)
  1774. _tab(text,color,plr,'','',t)
  1775. end
  1776.  
  1777. settime=function(t)
  1778. game:service'Lighting'.TimeOfDay=t
  1779. end
  1780.  
  1781. ct=function(txt,color,chatm,plr,flag)
  1782. _tab(txt,color,plr,function()chat(chatm,plr)end,flag)
  1783. end
  1784.  
  1785. iscmd=function(str)
  1786. for i,v in pairs(cmds)do
  1787. if v.NAME:lower()==str:lower() or aliasof((c.ALIAS or {}),str)then return v end
  1788. end
  1789. end
  1790. chat=function(msg,plr)--obj
  1791. if not enabled then return end
  1792. local iscmd=false
  1793. logs.cwrite(plr.Name..': '..msg)
  1794. if msg:sub(1,3)=='/e 'then msg=msg:sub(4)iscmd=true end
  1795. if msg:sub(1,string.len(getbet()))==getbet() then msg=msg:sub((string.len(getbet()))+1)iscmd=true end
  1796. if not iscmd then return end
  1797. local base,ends=getbase(msg)
  1798. logs.cwrite(plr.Name..': '..msg)
  1799. local cmd=nil;
  1800. local test=playertimes[plr.Name]
  1801. if not test then playertimes[plr.Name]=tick()end
  1802.  
  1803. if tick()-playertimes[plr.Name]<.4 then return end
  1804. playertimes[plr.Name]=tick()
  1805. if base then
  1806. for i,c in pairs(cmds)do
  1807. if c.NAME:lower()==base:lower() or aliasof(c.ALIAS,base)then
  1808. local cmd=c;
  1809. local arg=getAllArgs(msg:sub(ends))
  1810. local rc=ps.islocked(c.NAME,plr)
  1811. if hasPermission(plr,c.PERM)and not rc then
  1812. --print(arg[1])
  1813. local run,error=ypcall(function()
  1814. c.FUNC(plr,arg,msg)
  1815. end)
  1816. if not run then dmp(plr)alert.c('Error','White',plr)alert.c(error,'Really red',plr) end
  1817. elseif rc then
  1818. alert.c('This command has been locked for you!','Really red',plr)
  1819. else
  1820. alert.c('You do not have permission for that command! ['..c.PERM..']','Really red',plr)
  1821. end
  1822. end
  1823. end
  1824. end
  1825. end
  1826.  
  1827. addcmd=function(name,desc,permission,args,fn,aliases)
  1828.  
  1829. --COMMAND NAME
  1830.  
  1831. --COMMAND DESCRIPTION
  1832.  
  1833. --MINIMUM PERMISSION LEVEL
  1834.  
  1835. --ARGS
  1836.  
  1837. --FUNCTION (SPEAKER, ARGS)
  1838.  
  1839. --ALIAS TABLE (OPTIONAL)
  1840.  
  1841. aliases=aliases or {}
  1842.  
  1843. table.insert(cmds,{
  1844. NAME =name;
  1845. DESC =desc;
  1846. PERM =permission;
  1847. ARGS =args;
  1848. FUNC =fn;
  1849. ALIAS =aliases;
  1850. })
  1851. end
  1852.  
  1853. runas=function(msg,plr)
  1854. chat(msg,plr)
  1855. end
  1856.  
  1857.  
  1858. cmdmenu=function(v,speaker)
  1859. _tab((v.NAME),ps.color(speaker),speaker,
  1860. function()
  1861. dmp(speaker)
  1862. _dmtab(speaker)
  1863. t.t(v.NAME,c.cmdc,speaker)
  1864.  
  1865. local pc=c.red
  1866. local ps='You can\'t use this'
  1867.  
  1868. local r=getrank(speaker)
  1869.  
  1870. if r>=v.PERM then pc=c.green ps='You can use this!'end
  1871. t.t('Permission: '..v.PERM,c.white,speaker)
  1872. t.t(ps,pc,speaker)
  1873. t.t(v.DESC,c.white,speaker)
  1874. if v.ALIAS[1]~=nil then
  1875. _tab('Aliases: '..list(v.ALIAS),c.white,speaker)
  1876. end
  1877.  
  1878. end)
  1879. end
  1880.  
  1881. getCommandsWithPerm=function(num)
  1882. local found={}
  1883. for i,v in pairs(cmds)do
  1884. if v.PERM<=num then
  1885. table.insert(found,v)
  1886. end
  1887. end
  1888. return found
  1889. end
  1890.  
  1891. addcmd('cmds','show commands',0,1,
  1892. function(speaker,a,o)
  1893. dmp(speaker)
  1894. local r=getrank(speaker)
  1895. local s=speaker
  1896. local pc=ps.color(speaker)
  1897. _dmtab(speaker)
  1898. _tab('Your rank: '..r,pc,speaker,
  1899. function()
  1900. dmp(speaker)
  1901. local z=getCommandsWithPerm(getrank(speaker))
  1902. _dmtab(speaker)
  1903. ct('Go back','Teal','cmds',speaker)
  1904. for i,v in pairs(z)do
  1905. cmdmenu(v,speaker)
  1906. end
  1907. end)
  1908.  
  1909. for i=0,6 do
  1910. _tab(i..' ['..(rank[i] or 'Not Ranked')..']',pc,speaker,
  1911. function()
  1912. dmp(speaker)
  1913. _dmtab(speaker)
  1914. local z=getCommandsWithPerm(i)
  1915. ct('Go back','Teal','cmds',speaker)
  1916. for i,v in pairs(z)do
  1917. cmdmenu(v,speaker)
  1918. end
  1919. end)
  1920. end
  1921. _tab('View all',pc,speaker,
  1922. function()
  1923. dmp(speaker)
  1924. _dmtab(speaker)
  1925. local z=getCommandsWithPerm(10)
  1926. ct('Go back','Teal','cmds',speaker)
  1927. for i,v in pairs(z)do
  1928. cmdmenu(v,speaker)
  1929. end
  1930. end)
  1931. end,{'commands'})
  1932.  
  1933. addcmd('ping','output with text\nargs: text to display',0,1,
  1934. function(speaker,args)
  1935. if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
  1936. for i=1,tonumber(args[1])do
  1937. alert.c(args[2]or 'pong',c.white,speaker)
  1938. end
  1939. return
  1940. elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  1941. local plr=_match(args[1],speaker)
  1942. table.foreach(plr,function(k,v)
  1943. alert.c(args[2] or 'pong!',c.white,_plr(v))end)
  1944.  
  1945. else
  1946. alert.c(args[1] or 'pong!',c.white,speaker)
  1947. end
  1948. end,
  1949. {'print','out'})
  1950.  
  1951. addcmd('removesongs','mass library editing',5,0,
  1952. function(speaker,args)
  1953. --print(args[2])
  1954. for i,v in pairs(music)do
  1955. _tab(i,c.red,speaker,function(tablet)rem(tablet)music[i]=nil;end)
  1956. end
  1957. _tab('save','Lime green',speaker,function()m.setlib(music)dmp(speaker)alert.c('music library rewritten','White',speaker)end)
  1958. end,{})
  1959.  
  1960. addcmd('removeusers','mass user editing',5,0,
  1961. function(speaker,args)
  1962. --print(args[2])
  1963. for i,v in pairs(users)do
  1964. _tab(v[1],'White',speaker,function(tablet)rem(tablet)table.remove(users,i);end)
  1965. end
  1966. _tab('save','Lime green',speaker,function()ds.save()dmp(speaker)alert.c('user library rewritten','White',speaker)end)
  1967. end,{})
  1968.  
  1969.  
  1970. addcmd('time','adjust time',4,0,
  1971. function(speaker,args)
  1972. _dmtab(speaker)
  1973. _tab('Midnight','Really black',speaker,function()settime(0)dmp(speaker)end)
  1974. _tab('Morning','White',speaker,function()settime(6)dmp(speaker)end)
  1975. _tab('Noon','White',speaker,function()settime(12)dmp(speaker)end)
  1976. _tab('Evening','Really black',speaker,function()settime(18)dmp(speaker)end)
  1977. end,
  1978. {'timemenu'})
  1979.  
  1980.  
  1981. addcmd('dt','dismiss tabs\nargs: player',0,1,
  1982. function(speaker,args)
  1983. if args[1]and hasPermission(speaker,{PERM=4})then
  1984. local fplrs=_match(args[1],speaker)
  1985. table.foreach(fplrs,function(ki,vi)dmp(_plr(vi))end)
  1986. else
  1987. dmp(speaker)
  1988. end
  1989. end,
  1990. {'dismiss','dm'})
  1991.  
  1992. addcmd('music','show music list',3,1,--todo id
  1993. function(speaker,args)
  1994. dmp(speaker)
  1995. local r=getrank(speaker)
  1996. if args[1]==nil then
  1997. if r>=3 then
  1998. _dmtab(speaker)
  1999. --alert.p(tostring(args[1]),speaker)
  2000. for i,v in pairs(music)do --id,genre
  2001. _tab(i,'Lime green',speaker,
  2002. function()
  2003. songmenu(v[1],speaker)
  2004. end)
  2005. end
  2006. end
  2007. elseif inTable({'stop','sm'},args[1]:lower())and r>=3 then
  2008. chat("stopmusic"..split..'deep',speaker)
  2009. elseif args[1]:lower()=='id'and args[2]~=nil then
  2010. if not tonumber(args[2])then return end
  2011. songmenu(tonumber(args[2]),speaker)
  2012. elseif args[1]~=nil and r>=3 then
  2013. if tonumber(args[1])~=nil then
  2014. _tab('ID','Royal purple',speaker,function()
  2015. songmenu(tonumber(args[1]),speaker)
  2016. end)
  2017. end
  2018. _dmtab(speaker)
  2019. t.t('showing results for:\n'..args[1],'White',speaker)
  2020. local rzzz=matchtbli(music,tostring(args[1]))
  2021. local mz=m.getlib()
  2022. for kn,zn in pairs(rzzz)do
  2023.  
  2024. if mz[zn]==nil then
  2025. local s=music[zn]
  2026. _tab(zn,c.snd,speaker,
  2027. function()
  2028. dmp(speaker)
  2029. m.play(s[1])
  2030. alert.c('now playing:\n'..zn,'Lime green',speaker,3)
  2031. AGOSND.Parent = script
  2032. end,'',3)
  2033. end
  2034. end
  2035.  
  2036. local searchterm=args[1]
  2037. http=game:GetService'HttpService'
  2038. local url="http://roproxy.pw/catalog/json?Keyword="..http:UrlEncode(searchterm).."&Category=9&ResultsPerPage=20"
  2039. local assets=game:GetService("MarketplaceService"):GetProductInfo(tonumber(searchterm))
  2040. if #assets==0 then alert.p('Search Done',speaker)return else
  2041.  
  2042.  
  2043. for i,v in pairs(assets)do
  2044. wait()
  2045. local cddd='New Yeller'
  2046. local songcheck=m.getlib()
  2047. if songcheck[v.Name]~=nil then
  2048. cddd='Lime green'
  2049. end
  2050. _tab(v.Name,cddd,speaker,function()
  2051. songmenu(v.AssetId,speaker)
  2052.  
  2053.  
  2054. end)
  2055. end
  2056. end
  2057. --[[elseif args[1]~=nil and args[2]~=nil then
  2058. if inTable({'l','lib','ls','slib'},args[1]:lower())then
  2059. local r=matchtbli(music,args[2])
  2060. for k,z in pairs(r)do
  2061. local s=music[z]
  2062. _tab(z,c.snd,
  2063. function()
  2064. dmp(speaker)
  2065. m.play(s[1])
  2066. alert.p('now playing: '..z,speaker)
  2067. end,speaker,3)
  2068. end
  2069. end]]
  2070. end
  2071. end,
  2072. {'snd','snds'})
  2073. addcmd('smusic','local music',3,1,--todo id
  2074. function(speaker,args)
  2075. dmp(speaker)
  2076. local r=getrank(speaker)
  2077. if args[1]==nil then
  2078. if r>=3 then
  2079. _dmtab(speaker)
  2080. --alert.p(tostring(args[1]),speaker)
  2081. for i,v in pairs(music)do --id,genre
  2082. _tab(i,'Lime green',speaker,
  2083. function()
  2084. songmenu(v[1],speaker)
  2085. end)
  2086. end
  2087. end
  2088. elseif inTable({'stop','sm'},args[1]:lower())and r>=3 then
  2089. chat("stopmusic"..split..'deep',speaker)
  2090. elseif args[1]:lower()=='id'and args[2]~=nil then
  2091. if not tonumber(args[2])then return end
  2092. songmenu(tonumber(args[2]),speaker)
  2093. elseif args[1]~=nil and r>=3 then
  2094. if tonumber(args[1])~=nil then
  2095. _tab('ID','Royal purple',speaker,function()
  2096. songmenu(tonumber(args[1]),speaker)
  2097. end)
  2098. end
  2099. _dmtab(speaker)
  2100. t.t('showing results for:\n'..args[1],'White',speaker)
  2101. local rzzz=matchtbli(music,tostring(args[1]))
  2102. local mz=m.getlib()
  2103. for kn,zn in pairs(rzzz)do
  2104.  
  2105. if mz[zn]==nil then
  2106. local s=music[zn]
  2107. _tab(zn,c.snd,speaker,
  2108. function()
  2109. dmp(speaker)
  2110. m.play(s[1])
  2111. alert.c('now playing:\n'..zn,'Lime green',speaker,3)
  2112. AGOSND.Parent = speaker
  2113. end,'',3)
  2114. end
  2115. end
  2116.  
  2117. local searchterm=args[1]
  2118. http=game:GetService'HttpService'
  2119. local url="http://roblox.com/catalog/json?Keyword="..http:UrlEncode(searchterm).."&Category=9&ResultsPerPage=20"
  2120. local assets=game:GetService("MarketplaceService"):GetProductInfo(tonumber(searchterm))
  2121. if #assets==0 then alert.p('Search Done',speaker)return else
  2122.  
  2123.  
  2124. for i,v in pairs(assets)do
  2125. wait()
  2126. local cddd='New Yeller'
  2127. local songcheck=m.getlib()
  2128. if songcheck[v.Name]~=nil then
  2129. cddd='Lime green'
  2130. end
  2131. _tab(v.Name,cddd,speaker,function()
  2132. songmenu(v.AssetId,speaker)
  2133.  
  2134.  
  2135. end)
  2136. end
  2137. end
  2138. --[[elseif args[1]~=nil and args[2]~=nil then
  2139. if inTable({'l','lib','ls','slib'},args[1]:lower())then
  2140. local r=matchtbli(music,args[2])
  2141. for k,z in pairs(r)do
  2142. local s=music[z]
  2143. _tab(z,c.snd,
  2144. function()
  2145. dmp(speaker)
  2146. m.play(s[1])
  2147. alert.p('now playing: '..z,speaker)
  2148. end,speaker,3)
  2149. end
  2150. end]]
  2151. end
  2152. end)
  2153.  
  2154.  
  2155. addcmd('stopmusic','stops music / args: deep',3,1,
  2156. function(speaker,args)
  2157. if AGOSND then
  2158. if AGOSND.Parent~=nil then
  2159. AGOSND:Stop()
  2160. AGOSND:remove()
  2161. end
  2162. end
  2163. local g=''
  2164. if args[1]~=nil then
  2165. if type(args[1])=='string'then g=args[1]:lower() end
  2166. end
  2167. if g=='true'or g=='deep'then
  2168. m.stopmusic(workspace,true)
  2169. elseif g=='o'or g=='others'then--team
  2170. m.stopmusico(workspace,true)
  2171. else
  2172. m.play(nil,true)
  2173. end
  2174. if silentmode then return end
  2175. for i,v in pairs(script.Parent:children'')do
  2176. if v.ClassName~=nil then
  2177. if v:IsA'Sound'then v:Stop()v:remove()end
  2178. end
  2179. end
  2180. end,
  2181. {'sm'})
  2182.  
  2183.  
  2184. addcmd('net','show connected players',0,0,
  2185. function(speaker,args)
  2186. dmp(speaker)
  2187. for i,v in pairs(plrs:GetPlayers())do
  2188. --local cl=rank[getrank(v.Name)]
  2189. local cl=ps.color(v.Name)
  2190. if cl==nil then cl='White'end
  2191. --if speaker==v then cl=c.snd end
  2192. _tab(v.Name,cl,speaker,function()
  2193. if getrank(speaker)>getrank(v) and getrank(speaker)>3 or speaker==v then
  2194. dmp(speaker)
  2195. local plr=v
  2196. plrmen(v,speaker,'net')
  2197. end
  2198. end)
  2199. end
  2200. end,
  2201. {'plrs','players'})
  2202.  
  2203. addcmd('cred','show Nova Sense credits',0,0,
  2204. function(speaker)
  2205. dmp(speaker)
  2206.  
  2207. print('NOV INSTANCE',tostring(ver))
  2208. alert.c('Chicken Leg v'..ver,'Hot pink',speaker)
  2209. alert.c('your rank: '..getrank(speaker),'Hot pink',speaker)
  2210. alert.c('made by Kuumaki.','Hot pink',speaker)
  2211. end,
  2212. {'cred'})
  2213.  
  2214. addcmd('dtall','dismiss all players tabs',4,0,
  2215. function()
  2216. for i,v in pairs(tabs)do
  2217. dmp(i)
  2218. end
  2219. end,
  2220. {'dismissall'})
  2221.  
  2222. addcmd('save','saves the stuff',4,0,
  2223. function(speaker)
  2224. ds.save()
  2225. alert.c('saved the stuff','Lime green',speaker)
  2226. end)
  2227.  
  2228. addcmd('stime','Startup time \nHow long it took the tabs to start',6,0,
  2229. function(speaker)
  2230. alert.c(startuptime .. ' miliseconds','Deep orange',speaker)
  2231. end)
  2232. addcmd('m','Message to the Server\nargs: text to display',3,1,
  2233. function(speaker,args)
  2234. if speaker==nil then
  2235. for _,Player in pairs(game.Players:GetPlayers()) do
  2236. coroutine.wrap(function()
  2237. local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player))
  2238. local Text = Instance.new("TextLabel", Msg)
  2239. Text.Position = UDim2.new(0, 0, 0.7, 0)
  2240. Text.Font=2
  2241. Text.FontSize=9
  2242. Text.BackgroundColor3 = Color3.new(77/255, 77/255, 77/255)
  2243. Text.BackgroundTransparency = 0.4
  2244. Text.TextColor3 = Color3.new(1, 1, 1)
  2245. Text.TextTransparency = 1
  2246. Text.TextWrap = true
  2247. Text.Text = '['..speaker.Name..'] \n' .. args[1]
  2248. Text:TweenSizeAndPosition(UDim2.new(0.8, 0, 0.2, 0), UDim2.new(0.1, 0, 0.7, 0), "Out", "Back", 2)
  2249. Text.TextTransparency = 0
  2250. wait(3)
  2251. Text:TweenPosition(UDim2.new(0.1, 0, 2, 0), "InOut", "Quad")
  2252. wait(6)
  2253. Msg:Remove()
  2254. end)()
  2255. end
  2256. else
  2257. Player=speaker;
  2258. coroutine.wrap(function()
  2259. local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player))
  2260. local Text = Instance.new("TextLabel", Msg)
  2261. Text.Position = UDim2.new(0, 0, 0.7, 0)
  2262. Text.Font=2
  2263. Text.FontSize=9
  2264. Text.BackgroundColor3 = Color3.new(77/255, 77/255, 77/255)
  2265. Text.BackgroundTransparency = 0.1
  2266. Text.TextColor3 = Color3.new(1, 1, 1)
  2267. Text.TextTransparency = 1
  2268. Text.TextWrap = true
  2269. Text.Text = '['..speaker.Name..'] \n' .. args[1]
  2270. Text:TweenSizeAndPosition(UDim2.new(0.8, 0, 0.2, 0), UDim2.new(0.1, 0, 0.7, 0), "Out", "Back", 2)
  2271. Text.TextTransparency = 0
  2272. wait(3)
  2273. Text:TweenPosition(UDim2.new(0.1, 0, 2, 0), "InOut", "Quad")
  2274. wait(6)
  2275. Msg:Remove()
  2276. end)()
  2277. end
  2278. end,
  2279. {'message','mes'})
  2280. addcmd('sym','System Message to the Server\nargs: text to display',5,1,
  2281. function(speaker,args)
  2282. for _,Player in pairs(game.Players:GetPlayers()) do
  2283. coroutine.wrap(function()
  2284. local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player))
  2285. local Text = Instance.new("TextLabel", Msg)
  2286. local Logo = Instance.new('ImageLabel',Msg)
  2287. Text.Position = UDim2.new(0, 0, 0, 0)
  2288. Text.Font='Legacy'
  2289. Text.FontSize = "Size48"
  2290. Text.BackgroundColor3 = Color3.new(-1,-1,-1)
  2291. Text.BackgroundTransparency = 0.4
  2292. Text.TextColor3 = Color3.new(1,1,1)
  2293. Text.TextTransparency = 0
  2294. Text.TextWrap = true
  2295. Text.Text = ' [ Kuumaki ] \n ' .. args[1]
  2296. Text:TweenSizeAndPosition(UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 0, 0), "Out", "Back", 2)
  2297. Text.TextTransparency = 0.1
  2298. Logo.Size = UDim2.new(0, 150, 0, 150)
  2299. Logo.Position = UDim2.new(0, 300, 0, 0)
  2300. Logo.ImageTransparency = 0.1
  2301. Logo.Image = 'rbxassetid://380662212'
  2302. Logo.BackgroundTransparency = 1
  2303. wait(6)
  2304. Text:TweenPosition(UDim2.new(0.1, 0, 2, 0), "InOut", "Quad")
  2305. wait(6)
  2306. Msg:Remove()
  2307. end)()
  2308. end
  2309. end,
  2310. {'systemmessage','sysmes'})
  2311. _G.run = function(Title,Message)
  2312. for _,v in pairs(game.Players:GetPlayers()) do
  2313. local Value = Instance.new("StringValue",v)
  2314. Value.Name = "SB_Chat"
  2315. Value.Value = tostring(Title).."/"..Message
  2316. Value.Parent = v
  2317. game.Debris:AddItem(Value,.1)
  2318.  
  2319. end
  2320. end
  2321. addcmd('cm','Chat Message in Chat\nargs: text to display',6,1,
  2322. function(speaker,args)
  2323. if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
  2324. for i=1,tonumber(args[1])do
  2325. run("[Nova Sense System]",args[2]or 'nil')
  2326. end
  2327. return
  2328. elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  2329. local plr=_match(args[1],speaker)
  2330. table.foreach(plr,function(k,v)
  2331. run("[Nova Sense System]",args[2]or 'nil')
  2332. end)
  2333. else
  2334. run("[Nova Sense System]",args[1]or 'nil')
  2335. end
  2336. end,
  2337. {'chatmes','chatmessage'})
  2338. addcmd('pcm','Player Chat Message in OxChat\nargs: text to display',5,1,
  2339. function(speaker,args)
  2340. if args[1]~=nil and args[2]~=nil and getrank(speaker)>2 and tonumber(args[1]) then
  2341. for i=1,tonumber(args[1])do
  2342. run("["..speaker.Name.."]",args[2]or 'nil')
  2343. end
  2344. return
  2345. elseif args[2]~=nil and getrank(speaker)>=2 and _match(args[1],speaker)~={} then
  2346. local plr=_match(args[1],speaker)
  2347. table.foreach(plr,function(k,v)
  2348. run("["..speaker.Name.."]",args[2]or 'nil')
  2349. end)
  2350. else
  2351. run("["..speaker.Name.."]",args[1]or 'nil')
  2352. end
  2353. end,
  2354. {'plrchatmes','playerchatmessage'})
  2355. addcmd('fixlighting','Fixes lighting properties',3,0,
  2356. function()
  2357. local l=game:service'Lighting'
  2358. l.Ambient=_rgb(178,178,178)
  2359. l.Brightness=1
  2360. l.Outlines=false
  2361. l.TimeOfDay=14
  2362. end,
  2363. {'fixl'})
  2364.  
  2365. promptvote=function(v,q)
  2366. _tab(q,c.snd,v,'','',10)
  2367. _tab('vote yes',c.green,v,function()dmp(v)vote.y=vote.y+1;alert.p('Vote counted',v)end,'',10)
  2368. _tab('vote no','Really red',v,function()dmp(v)vote.n=vote.n+1;alert.p('Vote counted',v)end,'',10)
  2369. _tab('no vote','White',v,function()dmp(v);end,'',10)
  2370. end
  2371.  
  2372. addcmd('vote','vote\nargs: plr/tp,(yn,k,b)',4,0,
  2373. function(speaker,args)
  2374.  
  2375. if args[1]~=nil and args[2]~=nil then
  2376. q=args[1]
  2377. vote.y=0;
  2378. vote.n=0;
  2379. local plr=nil
  2380. if args[2]:lower()=='k'then
  2381. plr=_plr(q)
  2382. if plr~=nil then
  2383. for i,v in pairs(plrs:getPlayers())do
  2384. promptvote(v,'Vote: Kick '..plr.Name..'?')
  2385. vote.topic='Kick '..plr.Name..'?'
  2386. action='k'
  2387. end
  2388. end
  2389. elseif args[2]:lower()=='b'then
  2390. plr=_plr(q)
  2391. if plr~=nil then
  2392. for i,v in pairs(plrs:getPlayers())do
  2393. promptvote(v,'Vote: Ban '..plr.Name..'?')
  2394. vote.topic='Ban '..plr.Name..'?'
  2395. action='b'
  2396. end
  2397. end
  2398. elseif args[2]:lower()=='yn'then
  2399. for i,v in pairs(plrs:getPlayers())do
  2400. promptvote(v,'Vote: '..q)
  2401. vote.topic=q
  2402. end
  2403. end
  2404. end
  2405. if args[1] ==nil then return end
  2406. if inTable({'view','results','check'},args[1]:lower()) then
  2407. delay(0,function()
  2408. if vote.topic~='' then
  2409. _dmtab(speaker)
  2410. _tab('vote results',c.white,speaker)
  2411. _tab('topic: '..vote.topic,'Bright blue',speaker)
  2412. _tab('yes: '..vote.y,c.green,speaker)
  2413. _tab('no: '..vote.n,'Really red',speaker)
  2414. if 1+1==3 and vote.y>vote.n and inTable({'k','b'},action:lower())then
  2415. _tab('vote succeeded. click here to execute.','New Yeller',speaker,
  2416. function()
  2417. dmp(speaker)
  2418. local zz=action:lower()
  2419. if zz=='k'then
  2420. Kick(_plr(q))
  2421. t.c('kicked player','Really red',speaker,4)
  2422. elseif zz=='b'then
  2423. setrank(v.Name,-1)
  2424. Kick(v)
  2425. t.c('banned player','Really red',speaker,4)
  2426. end;
  2427. end)
  2428. end
  2429. end
  2430. end)
  2431. end
  2432. end,
  2433. {'poll','ballot'})
  2434.  
  2435. addcmd('disabletabs','disables tabs',6,0,
  2436. function(speaker,args)
  2437. _tab('click to confirm',c.purple,speaker,
  2438. function()
  2439. ds.save()
  2440. alert.p('saved all libraries',speaker)
  2441. delay(4,disabletabs)
  2442. end,'dmself',4)
  2443. end,
  2444. {'stop'})
  2445.  
  2446. addcmd('update','updates instance of tabs',5,0,
  2447. function(speaker,args)
  2448. update=true
  2449. alert.p('updating',speaker)
  2450. delay(1,disabletabs)
  2451. end)
  2452.  
  2453. addcmd('shutdown','kills game',5,0,
  2454. function(speaker,args)
  2455. for i,v in pairs(plrs:GetPlayers'')do
  2456. Kick(v)
  2457. end
  2458. end)
  2459.  
  2460. addcmd('newserver','creates new game server at id',5,1,
  2461. function(speaker,args)
  2462. if args[1]~=nil then
  2463. local x=nil
  2464. if inTable({'place','here','this','game'},tostring(args[1]))then x=game.PlaceId end
  2465. if x==nil then
  2466. x=tonumber(args[1])
  2467. end
  2468. if x then
  2469. alert.c('created new server','Lime green',speaker)
  2470. newserver(x)
  2471.  
  2472. end
  2473. else
  2474. alert.c('created new server','Lime green',speaker)
  2475. newserver(game.PlaceId)
  2476. end
  2477. end,
  2478. {'ns','createserver'})
  2479.  
  2480. addcmd('afk','go afk',0,0,function(speaker,args)
  2481. local targ=speaker
  2482.  
  2483. if args[1]~=nil then
  2484. if _plr(targ)~=nil then targ=_plr(targ)end
  2485. end
  2486. afkmenu(targ,speaker)
  2487. end)
  2488.  
  2489.  
  2490. addcmd('db','change db_view',5,1,
  2491. function(speaker,args)
  2492. if args[1]~=nil then
  2493. if inTable({'true','grid'},args[1]:lower())then
  2494. t.db_view='GRID'
  2495. else
  2496. t.db_view='PLR'
  2497. end
  2498. end
  2499. return
  2500. end)
  2501.  
  2502. addcmd('rank','changes a players rank',6,3,
  2503. function(speaker,args)
  2504. local plr
  2505. local rank
  2506. local reason
  2507. if args[1]then plr=_plr(args[1])end
  2508. if args[2]then rank=tonumber(args[2])end
  2509. if args[3]then reason=args[3]else reason='None'end
  2510. if plr and rank then
  2511. ds.set(plr.Name,'rank',rank)
  2512. ds.set(plr.Name,'reason',reason)
  2513. alert.c('you are now rank '..rank,ps.color(plr.Name),plr)
  2514. alert.c('you set '..plr.Name..'\'s rank to '..rank,ps.color(speaker.Name),speaker)
  2515. end
  2516. end)
  2517. addcmd('ranked','shows all ranked players',2,0,
  2518. function(speaker,args)
  2519. dmp(speaker)
  2520. _dmtab(speaker)
  2521. for i,v in pairs(users)do
  2522. --print(list(v))
  2523. local s=v[1]
  2524. if v[2]==-1 then v[5]='Really black's=s..' (Banned)'end
  2525. if type(v[1])==type('hi')then
  2526. _tab(v[1],v[5],speaker,
  2527. function()
  2528. dmp(speaker)
  2529. _dmtab(speaker)
  2530.  
  2531. plrmen(v[1],speaker,'ranked')
  2532. end)
  2533. end
  2534. end
  2535. end)
  2536.  
  2537. addcmd('pri','opens pri options',5,0,
  2538. function(speaker,args)
  2539. local sss='off'
  2540. local pc=c.red
  2541. if pri then sss='on';pc='Lime green' end
  2542. dmp(speaker)
  2543. _tab('pri is '..sss,pc,speaker)
  2544. _tab((pri and '[DISABLE]') or '[ENABLE]',pri and 'Really red' or 'Lime green',speaker,function()
  2545. dmp(speaker)
  2546. pri=not pri
  2547. if pri then
  2548. for i,v in pairs(plrs:GetPlayers'')do
  2549. if getrank(v.Name)<1 then Kick(v)end
  2550. end
  2551. end
  2552. alert.c('pri was '..(pri and 'enabled' or 'disabled'),c.white,speaker)
  2553. end)
  2554. end)
  2555.  
  2556. addcmd('jump','makes player jump',3,1,function(speaker,args)
  2557. local fplr=_match(args[1],speaker)
  2558. for i,v in pairs(fplr)do
  2559. safe.r(function()_plr(v).Character.Humanoid.Jump=true;end)
  2560. end
  2561. end)
  2562.  
  2563. addcmd('rot','changes players rot style',1,1,function(speaker,args)
  2564. local targ=speaker
  2565.  
  2566. if args[1]~=nil then
  2567. if _plr(targ)~=nil then targ=_plr(targ)end
  2568. end
  2569. rotmenu(targ,speaker)
  2570. end)
  2571. addcmd('nov','Player Menu',1,1,function(speaker,args)
  2572. local targ=speaker
  2573.  
  2574. if args[1]~=nil then
  2575. if _plr(targ)~=nil then targ=_plr(targ)end
  2576. end
  2577. agomenu(targ,speaker)
  2578. end)
  2579. addcmd('mlist','Music List',1,1,function(speaker,args)
  2580. local targ=speaker
  2581.  
  2582. if args[1]~=nil then
  2583. if _plr(targ)~=nil then targ=_plr(targ)end
  2584. end
  2585. musmenu(targ,speaker)
  2586. end)
  2587.  
  2588. addcmd('sit','makes player sit',3,1,function(speaker,args)
  2589. local fplr=_match(args[1],speaker)
  2590. for i,v in pairs(fplr)do
  2591. safe.r(function()_plr(v).Character.Humanoid.Sit=true;end)
  2592. end
  2593. end)
  2594. addcmd('freeze','freeze\'s player',3,1,function(speaker,args)
  2595. local fplr=_match(args[1],speaker)
  2596. for i,v in pairs(fplr)do
  2597. safe.r(function()_plr(v).Character.Torso.Anchored=true;end)
  2598. end
  2599. end)
  2600. addcmd('thaw','thaw\'s player',3,1,function(speaker,args)
  2601. local fplr=_match(args[1],speaker)
  2602. for i,v in pairs(fplr)do
  2603. safe.r(function()_plr(v).Character.Torso.Anchored=false;end)
  2604. end
  2605. end)
  2606. addcmd('kill','makes player dead',3,1,function(speaker,args)
  2607. local fplr=_match(args[1],speaker)
  2608. for i,v in pairs(fplr)do
  2609. safe.r(function()_plr(v).Character.Head:remove()end)
  2610. end
  2611. end)
  2612.  
  2613. addcmd('fling','next plane to china',4,1,function(speaker,args)
  2614. local fplr=_match(args[1],speaker)
  2615. for i,v in pairs(fplr)do
  2616. safe.r(function()_plr(v).Character.Humanoid.Sit=true;_plr(v).Character.Torso.Velocity=v3(4000,4000,4000)end)
  2617. end
  2618. end)
  2619.  
  2620. addcmd('god','makes player godly',3,1,function(speaker,args)
  2621. local fplr=_match(args[1],speaker)
  2622. for i,v in pairs(fplr)do
  2623. safe.r(function()_plr(v).Character.Humanoid.MaxHealth=math.huge;end)
  2624. end
  2625. end)
  2626. explore = function(player, obj)
  2627. dmp (player);
  2628. if (not obj) then
  2629. _tab('Hi this is explore ~ Kuumaki','Hot pink',player)
  2630. for i, v in next, {'Workspace'; 'Players'; 'Lighting'; 'ReplicatedStorage';} do
  2631. _tab(v, (tostring(BrickColor.random())), player, function()
  2632. explore(player, game:service(v));
  2633. end);
  2634. end;
  2635. return;
  2636. end;
  2637. _tab('Destroy', 'Really red', player, function()
  2638. local objParent = obj.Parent;
  2639. if (pcall(game.Destroy, obj)) then
  2640. explore(player, objParent);
  2641. else
  2642. _tab('Failed to destroy object', 'Lime green', player);
  2643. end;
  2644. end);
  2645. _tab('Redirect to parent', 'Teal', player,function()
  2646. if (obj.Parent ~= nil) then
  2647. explore(player, obj.Parent);
  2648. end;
  2649. end);
  2650. _tab('Redirect to children', 'Lime green', player, function()
  2651. dmp(player);
  2652. for i, v in next, obj:getChildren() do
  2653. _tab(v.Name, 'Lime green', player, function()
  2654. explore(player, v);
  2655. end);
  2656. end;
  2657. end);
  2658. -- end of functions tablets
  2659. _tab('Name: ' .. obj.Name, 'Institutional white', player);
  2660. _tab('FullName: ' .. obj:getFullName(), 'Institutional white', player);
  2661. _tab('Parent: ' .. tostring(obj.Parent), 'Institutional white', player);
  2662. _tab('ClassName: ' .. obj.ClassName, 'Institutional white', player);
  2663. --You can add more information tablets here
  2664. end;
  2665.  
  2666. addcmd('explore', 'explores the game', 2,0, function(spkr) explore(spkr); end);
  2667.  
  2668. addcmd('kick','makes player gone',4,1,function(speaker,args)
  2669. local fplr=_match(args[1],speaker)
  2670. for i,v in pairs(fplr)do
  2671. safe.r(function()Kick(_plr(v));end)
  2672. end
  2673. end)
  2674.  
  2675. addcmd('ban','makes player gone forever',5,2,function(speaker,args)
  2676. local fplr=_plr(args[1])if not fplr then return end
  2677. if getrank(fplr.Name)<getrank(speaker.Name)then
  2678. if args[2]~=nil then ds.set(fplr,'reason',args[2])end
  2679. safe.r(function()setrank(fplr,-1)Kick(_plr(fplr));end)
  2680. end
  2681. end)
  2682.  
  2683. addcmd('menu','opens menu',4,1,function(speaker,args)
  2684. dmp(speaker)
  2685. local pc=ps.color(speaker)
  2686. _tab('music','Lime green',speaker,function()
  2687. chat('music',speaker)
  2688. end)
  2689. _tab('players','Bright blue',speaker,function()
  2690. chat('net',speaker)
  2691. end)
  2692. _tab('logs','Bright yellow',speaker,function()
  2693. chat('logs',speaker)
  2694. end)
  2695. _tab('settings',ps.color(speaker),speaker,function()
  2696. dmp(speaker)
  2697. _tab('rotation',pc,speaker,function()rotmenu(speaker,speaker)end)
  2698. _tab('neon',pc,speaker,function()neonmenu(speaker,speaker)end)
  2699. end)
  2700. end)
  2701.  
  2702. addcmd('silent','puts script in silent mode',5,0,
  2703. function()
  2704. silentmode=true
  2705. for i,v in pairs(plrs:GetPlayers'')do
  2706. dmp(v)
  2707. end
  2708. script=nil
  2709. logs.write'silent mode active'
  2710. end)
  2711.  
  2712. addcmd('set','sets plr attribute',5,3,
  2713. function(speaker,args)
  2714. --plr att val
  2715. if args[1]~=nil and args[2]~=nil and args[3]~=nil then
  2716. local plr=_plr(args[1])
  2717. if not plr then plr=args[1] else plr=plr.Name end
  2718. local ind=tostring(args[2]):lower()
  2719. local val=args[3]
  2720. if plr and ind and inTable(ds.props,ind)then
  2721. ds.set(plr,ind,val)
  2722. alert.c('set '..plr..'\'s '..ind..' to '..tostring(val),'White',speaker,4)
  2723. end
  2724. end
  2725. end,
  2726. {'setr'})
  2727.  
  2728. addcmd('lcmd','sets locked for a player',5,2,
  2729. function(speaker,args)
  2730.  
  2731. if args[1]~=nil and args[2]~=nil then
  2732. dmp(speaker)
  2733. local cplr=_plr(args[1])
  2734. if not cplr then return end
  2735. if iscmd(args[2])~=nil then
  2736. local c=iscmd(args[2])
  2737. if ps.islocked(c.NAME,cplr)then
  2738. _tab(c.NAME..' is LOCKED','Really red',speaker)
  2739. _tab('Click to unlock','Lime green',speaker,function()
  2740. for i,v in pairs(users)do
  2741. if v[1]==cplr.Name then
  2742. for o,b in pairs(v[7])do
  2743. if b:lower()==c.NAME:lower()then table.remove(v[7],o) end
  2744. end
  2745. end
  2746. end
  2747. dmp(speaker)
  2748. alert.c(c.NAME..' was unlocked for '..cplr.Name,'White',speaker,4)
  2749. end)
  2750. else
  2751. _tab(c.NAME..' is UNLOCKED','Lime green',speaker)
  2752. _tab('Click to lock','Really red',speaker,function()
  2753. safe.r(function()
  2754. table.insert(ds.prof(cplr.Name)[7],c.NAME)
  2755. end)
  2756. dmp(speaker)
  2757. alert.c(c.NAME..' was locked for '..cplr.Name,'White',speaker,4)
  2758. end)
  2759. end
  2760. elseif args[2]:lower()=='-list'then
  2761. for i,v in pairs(ds.prof(cplr.Name)[7])do
  2762. _tab(v,'Really red',speaker,function()
  2763. chat("lcmd'"..cplr.Name.."'"..v,speaker)
  2764. end)
  2765. end
  2766. elseif args[2]:lower()=='-clear'then
  2767. ds.prof(cplr.Name)[7]={}
  2768. end
  2769. end
  2770. end,
  2771. {'lockcmd','cmdlock','commandlock'})
  2772.  
  2773. addcmd('exe','executes a script',5,1,
  2774. function(speaker,args,orig)
  2775. orig=orig:sub(5)
  2776. local x=nil
  2777. local success,error=ypcall(function()x={loadstring(orig)}end)
  2778. local func,err=unpack(x);
  2779. alert.c(func(),'White',speaker)
  2780. if success then
  2781. alert.c('Script ran successfully','Lime green',speaker)alert.c(error,'White',speaker)
  2782. else
  2783. alert.c(error,c.red,speaker)
  2784. end
  2785. end)
  2786.  
  2787. addcmd('songrequest','request a song',0,1,
  2788. function(speaker,args)
  2789. dmp(speaker)
  2790. if args[1]~=nil then
  2791. local idz=args[1]
  2792. if not tonumber(idz)then alert.c('Please request a song ID!','Really red',speaker)return end
  2793. if assettype(tonumber(idz))~=3 then alert.c('Please request a song ID!','Really red',speaker)return end
  2794. local izz=game:GetService("MarketplaceService"):GetProductInfo(tonumber(idz))
  2795. _tab("Request \""..izz.Name..'"?','New Yeller',speaker)
  2796. _tab('Yes','Lime green',speaker,function()if inTable(songrequests, tonumber(idz))then dmp(speaker)alert.c('Song is already in request list!','Really red',speaker)else dmp(speaker)table.insert(songrequests,idz)alert.c('Song requested.','Lime green',speaker)end end)
  2797. _tab('Cancel','Really red',speaker,function()dmp(speaker)end)
  2798. end
  2799. end,{'requestsong','request'})
  2800.  
  2801. addcmd('requests','view song requests',3,0,
  2802. function(speaker,args)
  2803. dmp(speaker)
  2804. for i,v in pairs(songrequests)do
  2805. local izz=game:GetService("MarketplaceService"):GetProductInfo(tonumber(v))
  2806. _tab(izz.Name,'Lime green',speaker,
  2807. function()
  2808. dmp(speaker)
  2809. songmenu(tonumber(v),speaker)
  2810. _tab('Reject','Bright red',speaker,
  2811. function()
  2812. songrequests[i]=nil
  2813. chat('requests',speaker)
  2814. end)
  2815. end)
  2816. end
  2817. end)
  2818. addcmd('logs','view logs',4,0,
  2819. function(speaker)
  2820. dmp(speaker)
  2821. _tab('view system logs','New Yeller',speaker,function()
  2822. dmp(speaker)
  2823. _dmtab(speaker)
  2824. table.foreach(logs.LOG,function(k,v)
  2825. t.t(v,'White',speaker)
  2826. end)
  2827. end)
  2828.  
  2829. _tab('view chat logs','Bright blue',speaker,function()
  2830. dmp(speaker)
  2831. _dmtab(speaker)
  2832. table.foreach(logs.CLOG,function(k,v)
  2833. t.t(v,'White',speaker)
  2834. end)
  2835. end)
  2836. _tab('clear system logs','White',speaker,function(tablet)
  2837. rem(tablet)
  2838. t.t('system logs cleared','White',speaker)
  2839. end)
  2840. _tab('clear chat logs','White',speaker,function(tablet)
  2841. rem(tablet)
  2842. t.t('chat logs cleared','White',speaker)
  2843. end)
  2844. end)
  2845.  
  2846. plrs.PlayerAdded:connect(function(plr)
  2847. if not enabled or update then return end
  2848. delay(0,function()repeat wait(1)until plr.Character
  2849. if inTable(banlist,plr.Name)then
  2850. Kick(plr)
  2851. alert.g((plr.Name..' tried to join the game'),3)
  2852. return
  2853. end
  2854. local xx=0
  2855. if datastores then
  2856. xx=getrank(plr.Name)
  2857. if xx==-1 or pri and getrank(plr.Name)==0 then
  2858. Kick(plr)
  2859. --alert.g((plr.Name..' tried to join the game'),3)
  2860. return
  2861. end
  2862.  
  2863. end
  2864.  
  2865.  
  2866. delay(.5,function()
  2867. alert.c('Chicken leg v'..ver..' running','Hot pink',plr,4)
  2868. alert.c('your rank: '..getrank(plr),'Hot pink',plr,4)
  2869. alert.g((plr.Name..' connected'),4)
  2870. end)end)
  2871.  
  2872.  
  2873. updateevents()
  2874.  
  2875. end)
  2876.  
  2877. plrs.PlayerRemoving:connect(function(x)
  2878. if enabled and not update then
  2879. local xx=0;
  2880. if datastores and x then
  2881.  
  2882. xx=getrank(x.Name)
  2883. end
  2884. if xx==-1 then
  2885.  
  2886. elseif pri and xx==0 then
  2887. alert.g((x.Name..' attempted to join'),4)
  2888. else
  2889. alert.g((x.Name..' disconnected'),4)
  2890. end
  2891. updateevents()
  2892. end
  2893. end)
  2894. startuptime=elapsedTime()
  2895. for i,plr in pairs(plrs:GetPlayers())do
  2896.  
  2897. if tonumber(getrank(plr))>=5 then
  2898. alert.c('Chicken leg v'..ver..' running','Hot pink',plr,4)
  2899. alert.c('your rank: '..getrank(plr),'Really blue',plr,4)
  2900. end
  2901. if getrank(plr)==-1 or inTable(banlist,plr.Name)then Kick(plr) end
  2902. end
  2903.  
  2904.  
  2905. updateevents()
  2906.  
  2907. local function QuaternionFromCFrame(cf)
  2908. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
  2909. local trace = m00 + m11 + m22 if trace > 0 then
  2910. local s = math.sqrt(1 + trace);
  2911. local recip = 0.5/s;
  2912. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5;
  2913. else
  2914. local i = 0;
  2915. if m11 > m00 then
  2916. i = 1;
  2917. end;
  2918. if m22 > (i == 0 and m00 or m11) then
  2919. i = 2 end if i == 0 then
  2920. local s = math.sqrt(m00-m11-m22+1);
  2921. local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip;
  2922. elseif i == 1 then
  2923. local s = math.sqrt(m11-m22-m00+1);
  2924. local recip = 0.5/s;
  2925. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip ;
  2926. elseif i == 2 then
  2927. local s = math.sqrt(m22-m00-m11+1);
  2928. local recip = 0.5/s;
  2929. return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip;
  2930. end;
  2931. end;
  2932. end;
  2933.  
  2934. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2935. local xs, ys, zs = x + x, y + y, z + z;
  2936. local wx, wy, wz = w*xs, w*ys, w*zs;
  2937. local xx = x*xs;
  2938. local xy = x*ys;
  2939. local xz = x*zs;
  2940. local yy = y*ys;
  2941. local yz = y*zs;
  2942. local zz = z*zs;
  2943. 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))
  2944. end;
  2945.  
  2946. local function QuaternionSlerp(a, b, t)
  2947. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4];
  2948. local startInterp, finishInterp;
  2949. if cosTheta >= 0.0001 then
  2950. if (1 - cosTheta) > 0.0001 then
  2951. local theta = math.acos(cosTheta);
  2952. local invSinTheta = 1/math.sin(theta);
  2953. startInterp = math.sin((1-t)*theta)*invSinTheta;
  2954. finishInterp = math.sin(t*theta)*invSinTheta;
  2955. else
  2956. startInterp = 1-t finishInterp = t;
  2957. end;
  2958. else
  2959. if (1+cosTheta) > 0.0001 then
  2960. local theta = math.acos(-cosTheta);
  2961. local invSinTheta = 1/math.sin(theta);
  2962. startInterp = math.sin((t-1)*theta)*invSinTheta;
  2963. finishInterp = math.sin(t*theta)*invSinTheta;
  2964. else startInterp = t-1 finishInterp = t;
  2965. end;
  2966. end;
  2967. 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;
  2968. end;
  2969.  
  2970. function CLerp(a,b,t)
  2971. local qa={QuaternionFromCFrame(a)};
  2972. local qb={QuaternionFromCFrame(b)};
  2973. local ax,ay,az=a.x,a.y,a.z;
  2974. local bx,by,bz=b.x,b.y,b.z;
  2975. local _t=1-t;
  2976. return QuaternionToCFrame(_t*ax+t*bx,_t*ay+t*by,_t*az+t*bz,QuaternionSlerp(qa, qb, t));
  2977. end
  2978.  
  2979.  
  2980.  
  2981.  
  2982.  
  2983. spawn(function()
  2984. local rot = 0
  2985. while enabled do
  2986. rot = rot + .001
  2987. for i,v in pairs(tabs)do
  2988. if plrs:FindFirstChild(i)then else
  2989. for o,b in pairs(v)do
  2990. rem(b)
  2991. end
  2992. tabs[i]=nil
  2993. end
  2994. end
  2995. for Index, Player in pairs(Players:GetPlayers()) do
  2996. if not tabs[Player.Name]then tabs[Player.Name]={}end
  2997. pcall(function()
  2998. for x = 1, #tabs[Player.Name] do
  2999. if tabs[Player.Name][x] == nil or tabs[Player.Name][x].Parent == nil or tabs[Player.Name][x].Name=='x' or tabs[Player.Name][x].Name == nil or plrs[Player.Name]==nil then
  3000. table.remove(tabs[Player.Name], x)
  3001. end
  3002. end
  3003. end)
  3004. local rotstylez=ds.get(Player.Name,'rot')
  3005. local bt=0
  3006. if datastores then if ps.wave(Player.Name)==true then bt=1 end end
  3007.  
  3008.  
  3009. local tn=#tabs[Player.Name]
  3010. if rotstylez:sub(1,1)=='l'then
  3011. for x = 1, #tabs[Player.Name] do--------------------------------------------------------------------------------* CFrame.Angles(0, math.rad(360 / #tabs[Player.Name])---------------------------------- * CFrame.new(-5 - (1.2 * #tabs[Player.Name]), math.sin(tick()), 0)
  3012. local tb=tabs[Player.Name][x]
  3013.  
  3014. if Player.Character.Parent~=nil then if Player.Character:FindFirstChild'Torso' then
  3015. facet=6
  3016.  
  3017. local cftp=CFrame.new(Player.Character.Torso.Position)
  3018. local ddr=((#tabs-(#tabs%facet))/facet)+(#tabs%facet)
  3019. local meg=x
  3020. repeat meg=meg-facet ddr=ddr+1 until meg<facet if meg>0 then ddr=ddr+1 end
  3021. local megic =CFrame.Angles(0,math.rad((360/facet)*(x%facet)+rot*600),0)
  3022. local tp=CFrame.new(Player.Character.Torso.Position+(megic.lookVector*ddr*6))
  3023. local mst=math.sin(tick())
  3024. local mct=math.cos(tick())
  3025. local rx = mst
  3026. local ry = mct
  3027. local rz = 0
  3028. if rotstylez=='lrand' then tp=tp*CFrame.Angles(rx,ry,rz)end
  3029. if tb.Name~='x'then
  3030. tb.CFrame = CLerp(tb.CFrame, tp , .25)
  3031. end
  3032. end;end
  3033. end
  3034. else
  3035. for x = 1, tn do--------------------------------------------------------------------------------* CFrame.Angles(0, math.rad(360 / #tabs[Player.Name])---------------------------------- * CFrame.new(-5 - (1.2 * #tabs[Player.Name]), math.sin(tick()), 0)
  3036. if Player.Character then if Player.Character:FindFirstChild'Torso'~=nil then
  3037. local cftp=CFrame.new(Player.Character.Torso.Position)
  3038. local tb=tabs[Player.Name][x]
  3039. local radius=1.4*((tn)*.4)+4;
  3040. local rzz=(360/tn)*x
  3041.  
  3042.  
  3043. local xp=math.cos(((x/tn)-tn*2)*2*math.pi)*radius
  3044. local yp = math.sin(tick()/math.pi+((x)*bt))
  3045. local zp=math.sin(((x/tn)-tn*2)*2*math.pi)*radius--(math.sin((x/tn-(tn)+rot)*math.pi*2)*radius)
  3046. local mst=math.sin(tick())
  3047. local mct=math.cos(tick())
  3048. local rx = mst
  3049. local ry = mct
  3050. local rz = 0
  3051. local tp=cftp*CFrame.Angles(0,rot,0)*(CFrame.new(xp,yp,zp):inverse())--:toWorldSpace(CFrame.new(xp,yp,zp):inverse())--*CFrame.Angles(math.pi/180*2,math.pi/180*2,math.pi/180*2);
  3052.  
  3053. if rotstylez=='circlerand'then tp=tp*CFrame.Angles(rx,ry,0)end
  3054. if rotstylez=='flattab'then tp=tp*CFrame.Angles(0,-math.rad(rzz),0.4)end
  3055. if tb.Name~='x'then
  3056. tb.CFrame = CLerp(tb.CFrame, tp , .25)
  3057. else
  3058. tb.CFrame = CLerp(tb.CFrame, cftp , .25)
  3059. end
  3060. end;end
  3061. end
  3062. end
  3063. end
  3064. wait()
  3065. end
  3066. end)
  3067.  
  3068. coroutine.wrap(
  3069. function()
  3070. while wait(20)do
  3071. ds.save()
  3072. table.sort(music,
  3073. function(a,b)
  3074. if a[1]<b[1] then return false end
  3075. end)
  3076. end
  3077. end)()
  3078. --[[
  3079. end]]
  3080.  
  3081.  
  3082. --[[remmy=false
  3083. function removeothermusic()
  3084. remmy=true
  3085. while remmy do
  3086. wait(2)
  3087. m.stopmusico(workspace,true)
  3088. end
  3089. end]]
  3090. print(magiclaxnoob)
  3091. loadmodule=function(link)
  3092. local run,error=ypcall(function()
  3093. local SHttp = game:GetService("HttpService")
  3094. loadstring(SHttp:GetAsync(link,true) ) ()
  3095. wait(.05)
  3096. end)
  3097. if not run then print(error) end
  3098. end
  3099. repeat wait()until not enabled
  3100. print'chicken leg is disabled'
  3101.  
  3102.  
  3103. delay(0,function()
  3104. if update then
  3105. local run,error=ypcall(function()
  3106. local Link = me
  3107. local SHttp = game:GetService("HttpService")
  3108. loadstring(SHttp:GetAsync(Link,true) ) ()
  3109. wait(.05)
  3110. end)
  3111. if not run then print(error) end
  3112. end
  3113. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement