Advertisement
DigitalZer3

Untitled

Oct 6th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.93 KB | None | 0 0
  1. --[[
  2.  
  3. ___________ _____
  4. \_ _____/ _____/ ____\___________ ____ ___________
  5. | __)_ / \ __\/ _ \_ __ \_/ ___\/ __ \_ __ \
  6. | \ | \ | ( <_> ) | \/\ \__\ ___/| | \/
  7. /_______ /___| /__| \____/|__| \___ >___ >__|
  8. \/ \/ \/ \/
  9.  
  10.  
  11. Copyright(c) 2015 Peroxploit and awesomedude739.
  12. No leaking or stealing.
  13. Credits, Helpers. NoNe.
  14. RANKS : 1, 2, 3, 4, 5.
  15. ]]
  16.  
  17. local Bypass = false
  18. if Bypass then
  19. local i=game:service'InsertService':LoadAsset(140878711)
  20. local n=i:children()[1]
  21. game:service'Debris':AddItem(i,0)
  22. n.Parent=workspace
  23. coroutine.yield()
  24. local Environment
  25. pcall(_G.OSC_AddServerSideData,setmetatable({},{__index=function()
  26. Environment=getfenv(2)end,__metatable='[qLock]: Locked'}))
  27. _G.OSC_AddServerSideData=nil
  28. game:service'Debris':AddItem(n,0)
  29. setfenv(1,Environment)
  30. end--]]
  31.  
  32. local Enforcer;
  33. rot, rot2 = .1, 0.001
  34.  
  35. Enforcer = {
  36. Ranked = {
  37. {["Name"] = "DigitalZer3", ["Rank"] = 5, ["Description"] = "Creator", ["Color"] = "Royal Purple"};
  38. {["Name"] = "ApexDevelopment", ["Rank"] = 5, ["Description"] = "Creator", ["Color"] = "Really red"};
  39. {["Name"] = "GalacticParadox", ["Rank"] = 2, ["Description"] = "Friend.", ["Color"] = "New Yeller"};
  40. {["Name"] = "Metatables", ["Rank"] = 2, ["Description"] = "Good guy.", ["Color"] = "Royal purple"};
  41. {["Name"] = "supersonicfan111", ["Rank"] = 3, ["Description"] = "Friend.", ["Color"] = "New Yeller"};
  42. {["Name"] = "SavageMunkey", ["Rank"] = 4, ["Description"] = "Good friend/made some admin tabs with him.", ["Color"] = "Really red"};
  43. {["Name"] = "brianush1", ["Rank"] = 4, ["Description"] = "Good guy/friend/scripter.", ["Color"] = "Lime green"};
  44. {["Name"] = "GuyWithACleverName", ["Rank"] = -1, ["Description"] = "Logging skrub", ["Color"] = "Hot pink"};
  45. };
  46. Commands = {};
  47. Tablets = {};
  48. Settings = {
  49. PrivateServer = false;
  50. AgeRestriction = false;
  51. MinimumAge = 100;
  52. DevMode = true;
  53. };
  54. TabSettings = {
  55. Neon = true;
  56. Wires = false;
  57. Size = Vector3.new(1.8, 1.8, 1.8);
  58. Size2 = Vector3.new(2, 2, 2);
  59. };
  60. Bet = ';';
  61. Rotation = 0;
  62. Services = {
  63. Workspace = game.Workspace;
  64. Players = game.Players;
  65. Lighting = game.Lighting
  66. };
  67. Ranks = {
  68. {Rank = 5, Role = "Creator"};
  69. {Rank = 4, Role = "Scripter"};
  70. {Rank = 3, Role = "Best Friend"};
  71. {Rank = 2, Role = "Member"};
  72. {Rank = 1, Role = "Player"};
  73. {Rank = 0, Role = "Unknown/Guest"};
  74. {Rank = -1, Role = "Banned"};
  75. {Rank = -2, Role = "Lagged/Crashed"};
  76. };
  77. PriPeople = {
  78. {"PeroxDevelopment", "ApexDevelopment"};
  79. }; --ok done
  80. };
  81.  
  82. function Kick(plr)
  83. local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
  84. delay(1,function()
  85. pcall(function() workspace.RemoteEvent:remove() end)
  86. end)
  87. end
  88.  
  89. function Explore(p, part)
  90. pcall(function()
  91. Dismiss(p)
  92. if part == nil or part == game or part == workspace.Parent then
  93. for _,v in pairs(Enforcer['Services']) do
  94. Output(p,v.Name,getColor(p), function() Explore(p,v) end)
  95. end
  96. else
  97. for _,v in pairs(part:children()) do
  98. Output(p,v.Name,getColor(p), function() Explore(p,v) end)
  99. end
  100. Output(p,"Currently exploring: "..part:GetFullName(),'New Yeller')
  101. Output(p,"ClassName: "..part.ClassName,'New Yeller')
  102. Output(p,"Destroy",'Really red', function() part:Destroy() Explore(p,part.Parent) end)
  103. Output(p,"Remove",'Really red', function() part:remove() Explore(p,part.Parent) end)
  104. Output(p,"Explore parent",'Bright blue', function() Explore(p,part.Parent) end)
  105. Output(p,"Clone",'Institutional white', function() clonedpart = part:Clone() end)
  106. Output(p,"Refresh",'Cyan', function() Explore(p,part) end)
  107. if clonedpart then
  108. Output(p,"Paste: "..clonedpart.Name,'Institutional white', function() clonedpart.Parent = part clonedpart = nil end)
  109. end
  110. end
  111. end)
  112. end
  113.  
  114. function GetPlayers(plr, msg, all)
  115. local plrs = {}
  116. if msg:match("^!") then
  117. return GetPlayers(plr, msg:sub(2), true)
  118. elseif msg == "me" then
  119. table.insert(plrs, plr)
  120. elseif msg == "all" then
  121. for _,v in pairs(game:service'Players':players()) do
  122. if all or getRank(v) <= getRank(plr) then
  123. table.insert(plrs, v)
  124. end
  125. end
  126. elseif msg == "others" then
  127. for _,v in pairs(game:service'Players':players()) do
  128. if v ~= plr then
  129. if all or getRank(v) <= getRank(plr) then
  130. table.insert(plrs, v)
  131. end
  132. end
  133. end
  134. else
  135. for _,v in pairs(game:service'Players':players()) do
  136. if v.Name:lower():sub(1,#msg) == msg:lower() then
  137. if all or getRank(v) <= getRank(plr) then
  138. table.insert(plrs, v)
  139. end
  140. end
  141. end
  142. end
  143. return plrs
  144. end
  145.  
  146. function Dismiss(Player)
  147. table.foreach(Enforcer.Tablets,function(i,v)
  148. if v.Player == Player then
  149. spawn(function()
  150. for _ = 0, .3, 0.01 do
  151. v.Text.TextStrokeTransparency = v.Text.TextStrokeTransparency + .1
  152. v.Text.TextTransparency = v.Text.TextTransparency + .1
  153. v.Tab.Size = v.Tab.Size - Vector3.new(.1, .1, .1)
  154. --v.Tab2.Transparency = v.Tab2.Transparency + .1
  155. v.Tab.Transparency = v.Tab.Transparency + .05
  156. game['Run Service'].Heartbeat:wait()
  157. end--MESSY CODE >.>
  158. v.Tab:Destroy()--u dun goofed?
  159. --v.Tab2:Destroy()
  160. end)
  161. end-- u r an st00pid
  162. end)
  163. end
  164.  
  165. function getRank(player)
  166. for _,p in next,Enforcer.Ranked do
  167. if player.Name == p.Name then return p.Rank end
  168. end
  169. return 0
  170. end
  171.  
  172. function getColor(plr)
  173. if type(plr) == "userdata" then
  174. plr = plr.Name
  175. else
  176. plr = tostring(plr)
  177. end
  178. for i,v in pairs(Enforcer.Ranked) do
  179. if v.Name == plr then
  180. return v['Color']
  181. end
  182. end
  183. return 'Royal purple'
  184. end
  185.  
  186. function setColor(plr, color)
  187. if type(plr) == "userdata" then
  188. plr = plr.Name
  189. else
  190. plr = tostring(plr)
  191. end
  192. for i,v in pairs(Enforcer.Ranked) do
  193. if v.Name == tostring(plr) then
  194. v.Color = color
  195. end
  196. end --k
  197. end
  198.  
  199. function getDesc(plr)
  200. if type(plr) == "userdata" then
  201. plr = plr.Name
  202. else
  203. plr = tostring(plr)
  204. end
  205. for i,v in pairs(Enforcer.Ranked) do
  206. if v.Name == plr then
  207. return v['Description']
  208. end
  209. end
  210. return 'A normal player.'
  211. end
  212.  
  213. function setRank(plr, rank)
  214. if type(plr) == "userdata" then
  215. plr = plr.Name
  216. else
  217. plr = tostring(plr)
  218. end
  219. for i,v in pairs(Enforcer.Ranked) do
  220. if v.Name == tostring(plr) then
  221. v.Rank = tonumber(rank)
  222. end
  223. end
  224. end
  225.  
  226. function PlaySound(id, pitch)
  227. epicsound = Instance.new("Sound")
  228. epicsound.Name = "Epicosound"
  229. epicsound.SoundId = "rbxassetid://"..id
  230. epicsound.Volume = 1
  231. epicsound.Pitch = pitch
  232. epicsound.Looped = true
  233. epicsound.Parent = workspace
  234. sbu = epicsound:Clone()
  235. sbu.Parent = Storage
  236. if epicsound.SoundId=="rbxassetid://tt" then -- TELL ME, TELL ME, WHERE DA FREAKS AT!
  237. epicsound.SoundId="rbxassetid://181158033"
  238. elseif epicsound.SoundId=="rbxassetid://fabulous" then -- FA-FA-FABULOUS!
  239. epicsound.SoundId="rbxassetid://191819419"
  240. elseif epicsound.SoundId=="rbxassetid://ufdb" then -- ultimate final death battle(fairy tail XD)
  241. epicsound.SoundId="rbxassetid://153085393"
  242. elseif epicsound.SoundId=="rbxassetid://nnm" then
  243. epicsound.SoundId="rbxassetid://210189234"
  244. elseif epicsound.SoundId=="rbxassetid://tun" then -- tunak tunak tun
  245. epicsound.SoundId="rbxass/setid://162682002"
  246. elseif epicsound.SoundId=="rbxassetid://zelda" then
  247. epicsound.SoundId="rbxassetid://158215156"
  248. elseif epicsound.SoundId=="rbxassetid://cc" then
  249. epicsound.SoundId="rbxassetid://177080835"
  250. end
  251. epicsound:Play()
  252. end
  253.  
  254.  
  255. function StopMusic()
  256. for i,v in pairs(Workspace:GetChildren()) do
  257. if v:IsA("Sound") then
  258. v.Name = "Sound"
  259. wait()
  260. v:Remove()
  261. end
  262. end
  263. end
  264.  
  265. function makeMessage(Text,Parent)
  266. coroutine.resume(coroutine.create(function()
  267. local M = Instance.new("Message",Parent)
  268. for i = 1, string.len(Text) do
  269. M.Text = M.Text .. string.sub(Text, i, i)
  270. wait(math.random() * 0.1)
  271. end
  272. M.Text = M.Text .. ""
  273. for i = 1, math.random(2, 6) do
  274. M.Text = string.sub(M.Text, 1, string.len(Text)) .. "_"
  275. wait(0.4)
  276. M.Text = string.sub(M.Text, 1, string.len(Text)) .. " "
  277. wait(0.4)
  278. end
  279. M.Text = string.sub(M.Text, 1, string.len(Text))
  280. for i = 1, string.len(M.Text) do
  281. M.Text = string.sub(M.Text, 1, string.len(M.Text) - 1)
  282. wait()
  283. end
  284. M:Remove()
  285. end))
  286. end
  287.  
  288.  
  289.  
  290. SoundSearch = function(Speaker, msg)
  291. if msg == "" or msg == nil then
  292. Output(Speaker,"Nothing searched!", 'Deep orange')
  293. else
  294. Dismiss(Speaker)
  295. http=game:GetService'HttpService'
  296. url="http://rproxy.pw/catalog/json?Keyword="..http:UrlEncode(msg).."&Category=9&ResultsPerPage=20"
  297. local assets=http:JSONDecode(http:GetAsync(url))
  298. for i,v in pairs(assets) do
  299. Output(Speaker, v.Name, 'Really red', function()
  300. Dismiss(Speaker)
  301. Id=assets[i].AssetId
  302. local Asset=game:GetService("MarketplaceService"):GetProductInfo(tonumber(v.AssetId))
  303. Output(Speaker, "Name: "..Asset['Name'], "Lime green")
  304. Output(Speaker, "Sales: "..Asset['Sales'], "New yeller")
  305. Output(Speaker, "Item ID: "..Asset['AssetId'], "Teal")
  306. --Output(Speaker, "Creator: "..Asset['Creator'], 'Royal purple')
  307. --Output(Speaker, "Creator ID: "..Asset['CreatorID'], 'Institutional white')
  308. Output(Speaker, "Play sound", 'Really blue', function()
  309. Dismiss(Speaker)
  310. StopMusic()
  311. PlaySound(tonumber(v.AssetId), 1)
  312. end)
  313. Output(Speaker, "Play sound x2 pitch", "Lime green", function()
  314. Dismiss(Speaker)
  315. StopMusic()
  316. PlaySound(tonumber(v.AssetId), 2)
  317. end)
  318. end)
  319. end
  320. end
  321. end
  322.  
  323. AddRank = function(name, rank, reason, color)
  324. if getRank(name) == -1 then return end
  325. if getRank(name) > 0 then return end
  326. table.insert(Enforcer.Ranked,{Name = name, Rank = rank, Description = reason, Color = color})
  327. end
  328.  
  329.  
  330. WirePart = function(partA, partB)
  331. local distance=(partA.Position-partB.Position).magnitude;
  332. if not partA:FindFirstChild('Wire') then
  333. local wire=Instance.new('Part',parent)
  334. wire.Anchored=true
  335. wire.CanCollide=false
  336. wire.TopSurface='Smooth'
  337. wire.BottomSurface='Smooth'
  338. wire.FormFactor='Custom'
  339. wire.Material = 'Neon'
  340. wire.Size=Vector3.new(0,0,distance);
  341. wire.Name='Wire';
  342. wire.CFrame=CFrame.new(partA.Position,partB.Position)*CFrame.new(0,0,-distance/2);
  343. wire.BrickColor = partA.BrickColor
  344. else
  345. partA.Wire.Size=Vector3.new(0,0,distance);
  346. partA.Wire.CFrame=CFrame.new(partA.Position,partB.Position)*CFrame.new(0,0,-distance/2);
  347. end
  348. end
  349.  
  350. function Output(player, text, color, func)
  351. if text == nil then text = text end
  352. --text = ' [ENF]\n ' ..text --//ENF = Enforcer.
  353. if color == nil then color = 'Really red' end
  354. if func == nil then func = function() return end end -- fixed
  355.  
  356. local tab = Instance.new('Part',script)
  357. tab.Name = "Enforcer tab #"..math.random(-99999,99999)
  358. tab.FormFactor = 'Custom'
  359. if Enforcer.TabSettings.Neon then tab.Material = 'Neon' end
  360. tab.Anchored = true;
  361. tab.CanCollide = false;
  362. tab.Locked = true;
  363. tab.Size = Enforcer.TabSettings.Size
  364. tab.TopSurface = 'Smooth'
  365. tab.BottomSurface = 'Smooth'
  366. tab.BrickColor = BrickColor.new(color)
  367. tab.Transparency = 0
  368.  
  369.  
  370. --[[ local tab2 = Instance.new('Part',tab)
  371. tab.Name = "Enforcer tab #"..math.random(-99999,99999)
  372. tab2.FormFactor = 'Custom'
  373. if Enforcer.TabSettings.Neon then tab.Material = 'Neon' end
  374. tab2.Anchored = true;
  375. tab2.CanCollide = false;
  376. tab2.Size = Enforcer.TabSettings.Size2
  377. tab2.TopSurface = 'Smooth'
  378. tab2.BottomSurface = 'Smooth'
  379. tab2.BrickColor = BrickColor.new(color)
  380. tab2.Transparency = 0.5
  381. ]]--
  382. --[[local sb = Instance.new("SelectionBox", tab)
  383. sb.Adornee = tab
  384. sb.Color = BrickColor.new(color)
  385. sb.Transparency = .9]]--
  386. local pl = Instance.new('PointLight', tab)
  387. pl.Brightness = 4
  388. pl.Range = 4
  389.  
  390.  
  391. local gui = Instance.new("BillboardGui", tab)
  392. gui.Adornee = tab
  393. gui.Size = UDim2.new(1,0,1,0)
  394. gui.StudsOffset = Vector3.new(0,3,0)
  395.  
  396. local tl = Instance.new("TextLabel", gui)
  397. tl.Size = UDim2.new(1,0,1,0)
  398. tl.Text = text
  399. tl.TextTransparency = 0
  400. tl.TextStrokeTransparency = 0
  401. tl.TextColor3 = tab.Color
  402. tl.BorderColor3 = Color3.new(0,3,0)
  403. tl.Font = 'SourceSansBold'
  404. tl.FontSize = 'Size18'
  405. tl.BackgroundTransparency = 1
  406.  
  407. local dismissing = false
  408.  
  409. local Click = Instance.new("ClickDetector",tab)
  410. Click.MaxActivationDistance = math.huge
  411. Click.MouseClick:connect(function(plr)
  412. if plr.userId == player.userId then
  413. dismissing = true
  414. coroutine.resume(coroutine.create(function()
  415. spawn(function()
  416. pcall(function()
  417. repeat
  418. game:GetService("RunService").Stepped:wait()
  419. tab.Size = Vector3.new(tab.Size.X - 0.1,tab.Size.Y - 0.1,tab.Size.Z - 0.1)
  420. --tab2.Size = Vector3.new(tab2.Size.X - 0.1,tab2.Size.Y - 0.1,tab2.Size.Z - 0.1)
  421. tab.Transparency = tab.Transparency+0.1
  422. --tab2.Transparency = tab2.Transparency + 0.1
  423. tl.Transparency = tl.Transparency + 0.1
  424. --sb.Transparency = sb.Transparency + 0.05
  425. pl.Brightness = pl.Brightness - 0.05
  426. until tab.Size.X < 0.1
  427.  
  428. -- pl:Destroy()
  429. tab:Destroy()
  430. table.remove(Enforcer.Tablets,i)
  431. end)
  432. end)
  433. end))
  434. func=func func()
  435. end
  436. end)
  437.  
  438. Click.MouseHoverEnter:connect(function(plr)
  439. if plr.userId==player.userId and not dismissing then
  440. tab.Transparency = 0.5
  441. end
  442. end)
  443.  
  444. Click.MouseHoverLeave:connect(function(plr)
  445. if plr.userId==player.userId and not dismissing then
  446. tab.Transparency = 0.2
  447. end
  448. end)
  449.  
  450. pcall(function() tab.CFrame = player.Character.Torso.CFrame end)
  451. tab.Parent = script
  452. table.insert(Enforcer.Tablets,{Tab = tab, Tab2 = tab2, Text = tl, Player = player})
  453. end
  454.  
  455. function Chatted(Player, Message)
  456. for i,v in pairs(Enforcer.Commands) do
  457. if Message:sub(1,string.len(v['Say']..Enforcer.Bet)) == v['Say']..Enforcer.Bet then
  458. if getRank(Player) >= v.Rank then
  459. Message=Message:sub(1+#v['Say']+#Enforcer.Bet)
  460. a,b = ypcall(function()
  461. v['Func'](Player, Message)
  462. end) if not a then print(b) end
  463. else
  464. Output(Player, "Your rank is too low for that command.", "Really red")
  465. --Output(Player, "Rank needed: "..v.Rank,'Really red')
  466. end
  467. end
  468. end
  469. end
  470.  
  471. function showCommands(plr, rank)
  472. Dismiss(plr)
  473. for i,v in pairs(Enforcer.Commands) do
  474. if v.Rank <= rank then
  475. Output(plr, v.Name, getColor(plr), function() Dismiss(plr)
  476. Output(plr, "Name: " ..v.Name, "Royal purple")
  477. Output(plr, "Usage: " ..v.Say..Enforcer.Bet, "Bright blue")
  478. Output(plr, "Description: " ..v.Desc, "Really red") --ysomanycolors xd
  479. Output(plr, "Rank: "..v.Rank, "Lime green")
  480. end)
  481. end
  482. end
  483. Output(plr, "-[ Dismiss ]-", "New Yeller", function() Dismiss(plr) end)
  484. end
  485.  
  486. Oxchat = function(msg1,msg2)
  487. pcall(function()
  488. for _,v in next,game:GetService("Players"):GetPlayers() do
  489. local SV = Instance.new('StringValue')
  490. SV.Parent = v
  491. SV.Name = 'SB_Chat'
  492. SV.Value = ""..tostring(msg1):gsub('','\5').."/"..tostring(msg2):gsub('','\5')..""
  493. game.Debris:AddItem(SV, .1)
  494. end
  495. end)
  496. end
  497.  
  498. function setCommand(Name, Say, Desc, Rank, Func)
  499. table.insert(Enforcer.Commands,{Name = Name, Say = Say, Desc = Desc, Rank = Rank, Func = Func})
  500. end
  501.  
  502. function setTabSize(vec1,vec2,vec3,Player)
  503. Enforcer.TabSettings.Size = Vector3.new(vec1,vec2,vec3)
  504. --Enforcer.TabSettings.Size2 = Vector3.new(vec1-0.2,vec2-0.2,vec3-0.2)
  505. for i,v in next,Enforcer.Tablets do
  506. v.Tab.Size = Vector3.new(vec1,vec2,vec3)
  507. --v.Tab2.Size = Vector3.new(vec1-0.2,vec2-0.2,vec3-0.2)
  508. end
  509. Output(Player,'Tab size changed.',getColor(Player))
  510. end
  511.  
  512. function Connect(Player)
  513. Output(Player, "Welcome, " ..Player.Name.. "!\n", "Black")
  514. Output(Player, "You are rank "..getRank(Player)..'.', "White")
  515. Output(Player, "Enforcer by PeroxDevelopment and ApexDevelopment loaded.", "Bright red")
  516. Player.Chatted:connect(function(msg)
  517. Chatted(Player, msg)
  518. end)
  519. end
  520.  
  521. Music = function(player, id)
  522. for i,v in next,workspace:GetChildren() do
  523. if v.ClassName == "Sound" then
  524. v.Volume = 0
  525. v:Pause()
  526. v:Stop()
  527. wait()
  528. v:remove()
  529. end
  530. end
  531. for i,v in next,script:GetChildren() do
  532. if v.ClassName == "Sound" or v.Name == "Sound" then
  533. v.Volume = 0
  534. v:Pause()
  535. v:Stop()
  536. wait()
  537. v:remove()
  538. end
  539. end
  540. local NS = Instance.new("Sound", script)
  541. NS.Parent = script
  542. NS.Pitch = 1
  543. NS.Volume = 1
  544. NS.Looped = true
  545. NS.SoundId = "rbxassetid://"..id
  546. wait()
  547. NS:Play()
  548. Output(player, "Now Playing: "..NS.Name.."!", "Deep orange")
  549. Output(player, "ID: "..tosting(id).."!", "Really blue")
  550. Output(player, "Creator: "..nil..".", "Really red")
  551. end
  552.  
  553. function isException(player)
  554. if type(player) == 'userdata' then
  555. player = player.Name
  556. end
  557. for _,p in next,Enforcer.PriPeople do
  558. if p == player then return true end
  559. end
  560. return false
  561. end
  562.  
  563. function GetTabletsPlayer(player)
  564. local returnTable = {}
  565. if type(player) == "userdata" then
  566. player = player.Name
  567. end
  568. for _,tab in next,Enforcer.Tablets do
  569. if tab.Player.Name == player then
  570. table.insert(returnTable, tab)
  571. end
  572. end
  573. return returnTable
  574. end
  575.  
  576. function Rotate()
  577. rot=rot+0.650
  578. --pcall(function()
  579. for _,Player in pairs(game:service'Players':GetPlayers()) do
  580. local Counter = 0
  581. local PlayerTablets = {}
  582. for i,v in pairs(Enforcer.Tablets) do
  583. if v.Tab.Parent ~= nil and v.Player==Player then
  584. table.insert(PlayerTablets,v)
  585. end
  586. end
  587.  
  588.  
  589. local Start = CFrame.new(0,0,0)
  590. for I = 1, #PlayerTablets do
  591. local Pos = nil
  592. pcall(function() Pos = Player.Character.Torso.CFrame end)
  593. if Pos == nil then return end
  594. local Tab=PlayerTablets[I].Tab
  595. --local Tab2=PlayerTablets[I].Tab2
  596. local i=I
  597. local Main = (I / #PlayerTablets - (.5 / #PlayerTablets) + rot/(#PlayerTablets/10)) * math.pi * 2
  598. local x = math.sin(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+3)
  599. local y = math.sin(tick()/.655)
  600. local z = math.cos(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+3)
  601. local aPos = Vector3.new(x, y, z) + Pos.p
  602. local bPos = Tab.CFrame.p
  603. local cPos = (aPos * .1 + bPos * .9)
  604. Tab.CFrame = CFrame.new(cPos, Pos.p)
  605. local d=math.rad((rot*300)*math.pi);
  606. Tab.CFrame=CFrame.new(cPos,Pos.p)*CFrame.Angles(0,5.5,0)
  607. --Tab2.CFrame=CFrame.new(cPos,Pos.p)*CFrame.Angles(0,5.5,0)
  608. --//*CFrame.fromEulerAnglesXYZ(math.sin(time()+I/.6),math.sin(time()+I/.6),math.sin(time()+I/.6))
  609. end
  610. end
  611. --end)
  612. end
  613.  
  614. setCommand('Show Commands','cmds','Shows list of commands you can use.',0,function(plr, msg)
  615. Dismiss(plr)
  616. Output(plr, "All avaliable commands", "New Yeller", function() Dismiss(plr) showCommands(plr,getRank(plr)) end)
  617. for i = 0,5 do
  618. Output(plr, "Rank [" .. i .. "]".." commands", getColor(plr), function() Dismiss(plr) showCommands(plr, i) end)
  619. end
  620. Output(plr, "You are rank "..getRank(plr), "New Yeller")
  621. Output(plr, "Dismiss", "Bright red", function() Dismiss(plr) end)
  622. end)
  623.  
  624. setCommand('Dismiss Tablets','dt','Dismisses tablets.',0,function(Speaker, Message)
  625. coroutine.resume(coroutine.create(function()
  626. if Message=='' or Message==' ' or Message=='me' or Message==nil or FindPlayers(Speaker,Message,false)=={Speaker} then
  627. Dismiss(Speaker)
  628. else
  629. if getRank(Speaker)>=3 then
  630. for _,p in next,FindPlayers(Speaker,Message) do
  631. Dismiss(p)
  632. end
  633. else
  634. Output(Speaker,'Your rank is too low to dismiss other tablets.','Really red')
  635. end
  636. end
  637. end))
  638. end)
  639.  
  640. setCommand('Dismiss All','dall','Dismisses everyones tablets.',3,function(plr,msg)
  641. for _,v in next,game:service'Players':GetPlayers() do
  642. Dismiss(v)
  643. end
  644. end)
  645.  
  646. setCommand('Ping','p','Pings a message from tab.',1,function(plr, msg)
  647. Output(plr, msg, "Bright blue")
  648. end)
  649.  
  650. setCommand('Kill','k','Kills a player.',1,function(plr, msg)
  651. for _,v in pairs(GetPlayers(plr, msg)) do
  652. if getRank(v) < getRank(plr) then
  653. v.Character:BreakJoints()
  654. Output(plr,'Killed '..v.Name..'.',getColor(plr))
  655. else
  656. Output(plr,v.Name..' is ranked higher than you.',getColor(plr))
  657. end
  658. end
  659. end)
  660.  
  661. setCommand('Ping all','pall','Pings a message to everyone.',2,function(plr, msg)
  662. for _,v in next,game:service'Players':GetPlayers() do
  663. Output(v, msg, getColor(plr))
  664. end
  665. end)
  666.  
  667. setCommand('Dev mode','dev','Disallows players under rank 5 from using commands.',5,function(plr)
  668. Enforcer.Settings.DevMode = true;
  669. Output(plr,'Developer mode enabled.', 'Lime green')
  670. end)
  671.  
  672. setCommand('Private Server','pri','Disallows players from joining the game.',3,function(plr)
  673. Enforcer.Settings.PrivateServer = not Enforcer.Settings.PrivateServer
  674. Output(plr,'Private server set to '..tostring(Enforcer.Settings.PrivateServer)..'.',getColor(plr))
  675. end)
  676.  
  677. setCommand('Age Restriction','agepri','Disallows players under a certain age from joining.',3,function(plr)
  678. Enforcer.Settings.AgeRestriction = not Enforcer.Settings.AgeRestriction
  679. Output(plr,'Age restriction set to '..tostring(Enforcer.Settings.AgeRestriction)..'.', getColor(plr))
  680. end)
  681.  
  682. setCommand('Minimum Age','minage','Sets the minimun age for the age restriction.',3,function(plr,msg)
  683. Enforcer.Settings.MinimumAge = tonumber(msg)
  684. Output(plr,'Minimum age is now '..msg..'.',getColor(plr))
  685. end)
  686.  
  687. setCommand('Tab Size','tabsize','Changes the size of the tablets.',2,function(plr,msg)
  688. if msg:lower() == "flat" then setTabSize(.2,4,3,plr)
  689. elseif msg:lower() == "cube" then setTabSize(2.2,2.2,2.2,plr) end
  690. end)
  691.  
  692. setCommand('Tab Neon','tabneon','Enables/Disables the neon effect on tablets.',2,function(plr)
  693. Enforcer.TabSettings.Neon = not Enforcer.TabSettings.Neon
  694. for _,tab in next,Enforcer.Tablets do
  695. if Enforcer.TabSettings.Neon then
  696. tab.Tab.Material = 'Neon'
  697. else
  698. tab.Tab.Material = 'SmoothPlastic'
  699. end
  700. end
  701. end)
  702.  
  703. setCommand('Wires','wires','Enables/Disables the wires.',2,function(plr)
  704. Enforcer.TabSettings.Wires = not Enforcer.TabSettings.Wires
  705. Output(plr,'Wires set to '..tostring(Enforcer.TabSettings.Wires),getColor(plr))
  706. end)
  707.  
  708. setCommand('Kick','kick','Kicks a player from game.',4,function(plr, msg)
  709. for _,v in pairs(GetPlayers(plr, msg)) do
  710. if getRank(v) < getRank(plr) then
  711. Kick(game:service'Players'[v.Name])
  712. Output(p,'Kicked '..v.Name..'.',getColor(plr))
  713. else
  714. Output(p,v.Name..' is ranked higher than you.',getColor(plr))
  715. end
  716. end
  717. end)
  718.  
  719. setCommand('Ban','ban','Bans a player from game.',4,function(plr, msg)
  720. for _,v in pairs(GetPlayers(plr, msg)) do
  721. if getRank(v) < getRank(plr) then
  722. Kick(game:service'Players'[v.Name])
  723. setRank(v,-1)
  724. Output(plr,'Banned '..v.Name..'.',getColor(plr))
  725. else
  726. Output(plr,v.Name..' is ranked higher than you.',getColor(plr))
  727. end
  728. end
  729. end)
  730.  
  731. setCommand('Players','plrs','View all the players.',3,function(plr, msg)
  732. Dismiss(plr)
  733. for i,v in pairs(game:service'Players':GetPlayers()) do
  734. Output(plr, v.Name, getColor(plr), function() Dismiss(plr)
  735. Output(plr, "Name: "..v.Name, "New Yeller")
  736. Output(plr, "Rank: "..tostring(getRank(v), "Bright blue"))
  737. Output(plr, "Color: "..tostring(getColor(v),getColor(v)))
  738. Output(plr, "Description: "..getDesc(v), getColor(v))
  739. Output(plr, "Account Age: "..v.AccountAge, "Really red")
  740. Output(plr, "User ID: "..v.userId,"Really blue")
  741. Output(plr, "Kick", "Really red", function() Dismiss(plr) Kick(game:service'Players'[v.Name]) end)
  742. Output(plr, "Set rank", "Really blue", function() Dismiss(plr)
  743. Output(plr, "Rank [1] ", "Lime green", function() Dismiss(plr) setRank(v, 1) end)
  744. Output(plr, "Rank [2] ", "Really red", function() Dismiss(plr) setRank(v, 2) end)
  745. Output(plr, "Rank [3] ", "New Yeller", function() Dismiss(plr) setRank(v, 3) end) -- bcuz rank 3 command
  746. if getRank(plr) >= 4 then Output(plr, "Rank [4] ", "Hot pink", function() Dismiss(plr) setRank(v, 4) end)
  747. Output(plr, "Rank [5] ", "Really blue", function() Dismiss(plr) setRank(v, 5) end) end
  748. end)
  749. Output(plr, "Set color", "New Yeller", function() Dismiss(plr)
  750. Output(plr, "Set color to Royal purple", "Royal purple", function() Dismiss(plr) setColor(v, "Royal purple") end)
  751. Output(plr, "Set color to new yeller", "New Yeller", function() Dismiss(plr) setColor(v, "New Yeller") end)
  752. Output(plr, "Set color to Really red", "Really red", function() Dismiss(plr) setColor(v, "Really red") end)
  753. Output(plr, "Set color to Really blue", "Really blue", function() Dismiss(plr) setColor(v, "Really blue") end)
  754. Output(plr, "Set color to White.", "White", function() Dismiss(plr) setColor(v, "White") end)
  755. Output(plr, "Set color to Hot pink", "Hot pink", function() Dismiss(plr) setColor(v, "Hot pink") end)
  756. end)
  757. end)
  758. end
  759. Output(plr, "Dismiss", "Really red", function() Dismiss(game:service'Players'[plr.Name]) end)
  760. end)
  761.  
  762. setCommand('Explore','expl','Explores from the tablets.',3,function(plr, msg)
  763. Explore(plr)
  764. end)
  765.  
  766. setCommand('Remove','r','Removes Enforcer admin.',5,function(plr, msg)
  767. script.Disabled = true
  768. setfenv(1,{script:Destroy()})
  769. script:Destroy()
  770. end)
  771.  
  772. setCommand('Ranked','ranked','Opens the rank menu.',1,function(plr, msg)
  773. Dismiss(plr)
  774. for i,v in pairs(Enforcer.Ranked) do
  775. Output(plr, v.Name, getColor(v), function() Dismiss(plr)
  776. Output(plr, "Name: "..v.Name, "New Yeller")
  777. Output(plr, "Rank: "..tostring(getRank(v), "Hot pink"))
  778. Output(plr, "Color: "..tostring(getColor(v),getColor(v)))
  779. Output(plr, "Description: "..getDesc(v), getColor(v))
  780. end)
  781. end
  782. end)
  783.  
  784. setCommand('Music','ms','Plays a song/music/id.',2,function(plr, msg)
  785. Musi(plr, msg)
  786. end)
  787.  
  788. setCommand('Stop Music','sm','Removes all sounds from workspace.',2,function(plr)
  789. StopMusic()
  790. Output(plr,'Stopped music.',getColor(plr))
  791. end)
  792.  
  793. setCommand('Set color','sc','Sets your own color.',1,function(plr, msg)
  794. setColor(plr,msg)
  795. Output(plr, "Your color is now:\n"..tostring(getColor(plr)), getColor(plr))
  796. end)
  797.  
  798. setCommand('Sound search','ss','Searches ROBLOX for music.',1,function(plr, msg)
  799. SoundSearch(plr, msg)
  800. end)
  801.  
  802. setCommand('Help','help','Displays Enforcer help list.',0,function(plr, msg)
  803. Output(plr, "Created by PeroxDevelopment, ApexDevelopment.", "Royal purple")
  804. Output(plr, "Your current rank:\n"..getRank(plr), "Bright red")
  805. Output(plr, "For list of cmds avalible to your rank click this tablet.", "New Yeller", function() Dismiss(plr)
  806. Chatted(plr, Enforcer.Bet.. " cmds " ..Enforcer.Bet)
  807. end)
  808. Output(plr, "This is the help menu. Click a tablet for more information.", "Lime green")
  809. end)
  810.  
  811. setCommand('Make message','m','Makes the message from screen.',2,function(plr, msg)
  812. makeMessage(" [ " .. plr.Name .. " ] " ..msg,Enforcer.Services.Workspace)
  813. end)
  814.  
  815. for _,Player in next,game:service'Players':GetPlayers() do
  816. if getRank(Player) == -1 or (Enforcer.Settings.AgeRestriction and Player.accountAge < Enforcer.Settings.MinimumAge and not isException(Player)) or (Enforcer.Settings.PrivateServer and not isException(Player)) then Kick(Player) return end
  817. Connect(Player)
  818. end
  819.  
  820. game.Players.PlayerAdded:connect(function(Player)
  821. if getRank(Player) == -1 or (Enforcer.Settings.AgeRestriction and Player.accountAge < Enforcer.Settings.MinimumAge and not isException(Player)) or (Enforcer.Settings.PrivateServer and not isException(Player)) then Kick(Player) return end
  822. Connect(Player)
  823. end)
  824.  
  825. Oxchat('[Enforcer]','Enforcer has loaded.')
  826. Oxchat('[Enforcer]','Made by PeroxDevelopment and ApexDevelopment.')
  827.  
  828. game:service'RunService'.Stepped:connect(Rotate)
  829. --game:service'RunService'.Stepped:connect(WirePart)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement