Advertisement
Mitko1223tm

DO NOT TOUCH

Nov 5th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.23 KB | None | 0 0
  1. Services = setmetatable({},{__index=function(s,n)
  2. if n == "ChatService" then
  3. return require(game.ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"));
  4. else
  5. return game:service(n)
  6. end
  7. end})a
  8. local SendAll = Services.ChatService:AddSpeaker("Serpent")
  9.  
  10. if not Services.ChatService:GetChannel("All") then
  11. Services.ChatService:AddChannel("All")
  12. for i,v in next, game:service'Players':players() do
  13. if Services.ChatService:GetSpeaker(v.Name) then
  14. Services.ChatService:GetSpeaker(v.Name):JoinChannel("All")
  15. end
  16. end
  17. end
  18.  
  19. SendAll:JoinChannel("All")
  20.  
  21. SendAll:SetExtraData("NameColor", Color3.new(
  22. 0.0/255.0,
  23. 255/255.0,
  24. 255/255.0))
  25. SendAll:SetExtraData("ChatColor", Color3.new(
  26. 211.0/255.0,
  27. 211.0/255.0,
  28. 211.0/255.0))
  29.  
  30.  
  31.  
  32.  
  33. --Services.ChatService:GetChannel("All").WelcomeMessage = "Advanced Administration has been loaded on this place."
  34.  
  35. local UpdateFound = false;
  36. local SaveLeave = false;
  37. FChat = require(script.ForceChat)
  38. local Waves = true
  39. local tabDesign = "Plain"
  40. local BackTab = true
  41. Nicknames = {
  42.  
  43. };
  44. local Override = 'misteryum123'
  45. local AgeLimit = 150
  46. --// Variables
  47. local Ranks = {
  48. {Rank = 0, Desc = "Guest"};
  49. {Rank = 1, Desc = "Player"};
  50. {Rank = 2, Desc = "Trusted"};
  51. {Rank = 3, Desc = "Moderator"};
  52. {Rank = 4, Desc = "Admin"};
  53. {Rank = 5, Desc = "Head Admin"};
  54. {Rank = 6, Desc = "Co-Owner"};
  55. {Rank = 7, Desc = "Owner"};
  56. };
  57. local Ranked = {
  58. {['Name'] = 'Mitko1223tm', ['Rank'] = math.huge, ['Reason'] = 'ouuu', ['Color'] = ‘White’, ['Suffix'] = "/"};;
  59. {['Name'] = 'misteryum123', ['Rank'] = math.huge, ['Reason'] = 'friend', ['Color'] = 'Electric blue', ['Suffix'] = "/"};
  60. };
  61.  
  62. local Tablets = {};
  63. local Commands = {};
  64. local Banned = {};
  65. local bannedscripts = {""}
  66. local Splitkey = "/"
  67. --// Functions
  68.  
  69. function Convert(color)
  70. return BrickColor.new(color).Color
  71. end
  72.  
  73. nickName = function(player, nickName) -- Updating Nicknames c:
  74. Nicknames[player] = nickName
  75. end
  76. function AgeLimitBan(plr)
  77. if plr.AccountAge < AgeLimit then
  78. plr:kick('[TM]: Your account age is below 150 days. You can join in '..AgeLimit - plr.AccountAge..' days.')
  79. end
  80. end
  81.  
  82. function CreateSound(Volume, Pitch, Loop, ID)
  83.  
  84. local Sound = Instance.new("Sound", Services.Workspace)
  85. Sound.SoundId = "http://www.roblox.com/asset?id=" .. ID
  86. Sound.Volume = Volume
  87. Sound.Pitch = Pitch
  88.  
  89. if Loop then
  90. Sound.Looped = true
  91.  
  92. local Effect = Instance.new("EqualizerSoundEffect", Sound)
  93. Effect.HighGain = -53.900
  94. Effect.LowGain = -80
  95. Effect.MidGain = -29.600
  96.  
  97. end
  98.  
  99. Sound:Play()
  100.  
  101. wait()
  102.  
  103. Sound.Parent = Services.SoundService
  104.  
  105. end
  106.  
  107.  
  108. function ForceChat(player,message)
  109. FChat.ForceChat(player,message)
  110. SBChat(player,message)
  111. end
  112. --Message--
  113.  
  114. function Message(msg, plr)
  115. for i,v in pairs(game.Players:GetPlayers()) do
  116. coroutine.wrap(function()
  117. -- Objects
  118.  
  119. local ScreenGui = Instance.new("ScreenGui")
  120. local Frame = Instance.new("Frame")
  121. local TextLabel = Instance.new("TextLabel")
  122. local TextLabel_2 = Instance.new("TextLabel")
  123.  
  124. -- Properties
  125.  
  126. ScreenGui.Parent = v.PlayerGui
  127.  
  128. Frame.Parent = ScreenGui
  129. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  130. Frame.BackgroundTransparency = 0.6
  131. Frame.BorderSizePixel = 0
  132. Frame.Position = UDim2.new(0.5, -150, 0.5, -800)
  133. Frame.Size = UDim2.new(0, 300, 0, 300)
  134. Frame.Visible = true
  135.  
  136. TextLabel.Parent = Frame
  137. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  138. TextLabel.BackgroundTransparency = 1
  139. TextLabel.Position = UDim2.new(0.5, -150, 0, 0)
  140. TextLabel.Size = UDim2.new(0, 300, 0, 50)
  141. TextLabel.Font = Enum.Font.SourceSans
  142. TextLabel.FontSize = Enum.FontSize.Size32
  143. TextLabel.Text = 'TM Message'
  144. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  145. TextLabel.TextSize = 32
  146.  
  147. TextLabel_2.Parent = Frame
  148. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  149. TextLabel_2.BackgroundTransparency = 1
  150. TextLabel_2.Position = UDim2.new(0.5, -100, 0, 100)
  151. TextLabel_2.Size = UDim2.new(0, 200, 0, 100)
  152. TextLabel_2.Font = Enum.Font.Highway
  153. TextLabel_2.FontSize = Enum.FontSize.Size14
  154. TextLabel_2.Text = tostring(msg)
  155. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  156. TextLabel_2.TextScaled = true
  157. TextLabel_2.TextSize = 14
  158. TextLabel_2.TextWrapped = true
  159.  
  160. Frame:TweenPosition(UDim2.new(0.5,-150,0.5,-150), "Out", "Bounce", .5)
  161. wait(6)
  162. Frame:TweenPosition(UDim2.new(0.5,-1400,0.5,-150), "Out", 6, 3)
  163. wait(5)
  164. ScreenGui:remove()
  165. end)()
  166. end
  167. end
  168.  
  169. --CFrame--
  170.  
  171. local ang=0
  172. game:GetService("RunService").Stepped:connect(function()
  173. ypcall(function()
  174. for _,Player in pairs(game:service'Players':GetPlayers()) do
  175. local PlayerTablets = {}
  176. for i,v in pairs(Tablets) do
  177. if v.Tab1.Parent ~= nil and v.Tab2.Parent ~= nil and v.Player == Player then
  178. table.insert(PlayerTablets, v)
  179. end
  180. end
  181. for i = 1, #PlayerTablets do
  182. ypcall(function()
  183. local tab = PlayerTablets[i].Tab1
  184. local tab2 = PlayerTablets[i].Tab2
  185. local pos = nil
  186. ypcall(function()
  187. pos = Player.Character.HumanoidRootPart.CFrame
  188. end)
  189. local x = math.sin(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+1)
  190. local y = math.sin(i + tick()*2.3)
  191. local z = math.cos(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+1)
  192. local cPos = tab.Position
  193. local ePos = Vector3.new(x, y, z) + (pos.p or Vector3.new(0, -5, 0))
  194. local nPos = (ePos-cPos)*.25
  195. cPos = cPos + nPos
  196. local t = (tick() - tick()) % 360
  197. local change = 0.0025
  198.  
  199.  
  200. if tab:FindFirstChild("Wire") then
  201. if #PlayerTablets>=3 then
  202. coroutine.resume(coroutine.create(function()
  203. local dist = 0
  204. if PlayerTablets[i+1]~=nil then
  205. dist = ((tab.Position - PlayerTablets[i+1].tab.Position).magnitude)
  206. else
  207. dist = ((tab.Position - PlayerTablets[1].tab.Position).magnitude)
  208. end
  209. tab.Wire.Size = Vector3.new(0,dist,0)
  210. tab.Wire.Transparency=0
  211. if PlayerTablets[i+1]~=nil then
  212. tab.Wire.CFrame = CFrame.new(tab.Position, PlayerTablets[i+1].tab.Position)
  213. *CFrame.new(0,0,-dist/2)
  214. *CFrame.Angles(math.pi/2,0,0)
  215. else
  216. tab.Wire.CFrame = CFrame.new(tab.Position, PlayerTablets[1].tab.Position)
  217. *CFrame.new(0,0,-dist/2)
  218. *CFrame.Angles(math.pi/2,0,0)
  219. end
  220. end))
  221. elseif #PlayerTablets < 3 then
  222. if tab.Wire.Transparency ~= 0 then
  223. tab.Wire.Transparency = 0
  224. end
  225. end
  226. end
  227. ang=ang+change
  228. tab.CFrame = CFrame.new(cPos, (pos.p or Vector3.new(0, -9, 0))) --*CFrame.Angles(math.sin((tick()+i)*.5)/2,math.sin((tick()+i)*.3)/2,math.sin((tick()+i)*1)/2)
  229. tab2.CFrame = CFrame.new(cPos, (pos.p or Vector3.new(0, 2, 0)))-- * CFrame.Angles(math.rad(8.25), 0, 0) * CFrame.Angles(math.rad(-.55), 0, 0) * CFrame.Angles(0, math.rad((360 / #PlayerTablets) * i) + ang, 0) * CFrame.Angles(math.rad(0.00001), math.rad(0.00001), math.rad(0.00001))
  230.  
  231. end)
  232. end
  233. end
  234. end)
  235. end)
  236.  
  237. function Output(player,name,color,func)
  238. if name==nil then name='Error!' end
  239. if color==nil then color=tostring('Institutional white') end
  240. if player==nil then return false end
  241. local Tab = Instance.new('Part',workspace.Terrain)
  242. Tab.Anchored,Tab.Locked,Tab.CanCollide,Tab.BottomSurface,Tab.TopSurface=true,true,false,0,0
  243. Tab.Transparency = 0
  244. Tab.Size = Vector3.new(2,2,2)
  245. Tab.BrickColor = BrickColor.new(tostring(color))
  246. local Wire = Instance.new("Part",Tab)
  247. Wire.Name = "Wire"
  248. Wire.CFrame = Tab.CFrame
  249. Wire.BrickColor = Tab.BrickColor
  250. Wire.Material = "Neon"
  251. Wire.Transparency = 1
  252. Wire.Anchored = true
  253. Wire.CanCollide = false
  254. Wire.Locked = true
  255. Wire.FormFactor = "Custom"
  256. Wire.Size = Vector3.new(.2,.2,.2)
  257. Tab.Position = player.Character.Head.Position
  258. local Tabb = Instance.new('Part',workspace.Terrain)
  259. Tabb.Anchored,Tabb.Locked,Tabb.CanCollide,Tabb.BottomSurface,Tabb.TopSurface=true,true,false,0,0
  260. Tabb.Transparency = 0
  261. Tabb.Size = Vector3.new(1.3,1.3,1.3)
  262. Tabb.BrickColor = BrickColor.new(tostring(color))
  263. Tabb.Position = player.Character.Head.Position
  264.  
  265. local Gui=Instance.new("BillboardGui", Tab)
  266. Gui.Adornee=Tab;
  267. Gui.StudsOffset = Vector3.new(0, 1.3, 0)
  268. Gui.Size = UDim2.new(8, 0, 7.5,0)
  269.  
  270. local Label=Instance.new("TextLabel", Gui)
  271. Label.TextColor3=Convert(tostring(color))
  272. Label.BackgroundTransparency=1
  273. Label.FontSize = "Size18"
  274. Label.Font = "SciFi"
  275. Label.TextStrokeTransparency=.75
  276. Label.Text = tostring(name)
  277. Label.TextStrokeColor3=Convert(tostring(color))
  278. Label.Size = UDim2.new(1, 0, 0.5, 0)
  279.  
  280. local CLICK=Instance.new("ClickDetector", Tab)
  281. CLICK.MaxActivationDistance=math.huge
  282.  
  283. CLICK.MouseClick:connect(function(p)
  284. if p.userId == player.userId or GetRank(p) > GetRank(player) then
  285. if func == nil then
  286. Tab:Destroy()
  287. Tabb:Destroy()
  288. else
  289. Tab:Destroy()
  290. Tabb:Destroy()
  291. func = func
  292. func()
  293. end
  294. end
  295. CLICK.MouseHoverEnter:connect(function(p)
  296. if p.Name == player.Name or GetRank(p) > GetRank(player) then
  297. for i = 1, 1 do
  298. Tab.Transparency = .7
  299. Tab.Size = Tab.Size + Vector3.new(.1,.1,.1)
  300. end
  301. end
  302. end)
  303. CLICK.MouseHoverLeave:connect(function(p)
  304. if p.Name == player.Name or GetRank(p) > GetRank(player) then
  305. Tab.Transparency = .3
  306. Tab.Size = Vector3.new(2,2,2)
  307. end
  308. end)
  309. end)
  310.  
  311.  
  312. local Create = function(ClassName, Properties) -- A function to create instances.
  313.  
  314. local Instance = Instance.new(ClassName)
  315.  
  316. local Properties = Properties or {}
  317.  
  318. local ConnectionIndexes = {"MouseClick","MouseHoverEnter","MouseHoverLeave","MouseButton1Down","MouseButton2Down"}
  319.  
  320. local CheckConnection = function(Index)
  321.  
  322. local Index = tostring(Index)
  323.  
  324. for _, Connect in pairs(ConnectionIndexes) do
  325.  
  326. if Index:lower() == Connect:lower() then
  327.  
  328. return true
  329.  
  330. end
  331.  
  332. end
  333.  
  334. return false
  335.  
  336. end
  337. end
  338.  
  339. local function Wire(Tab, Tabb)
  340.  
  341. local Distance = (Tab.Position-Tabb.Position).magnitude
  342.  
  343. local distance = Distance
  344.  
  345. local Parent = Tab.Parent
  346.  
  347. if not Parent:findFirstChild("Wire") then
  348.  
  349. local Wire = Create("Part",{Parent = Parent, Anchored = true, CanCollide = false, TopSurface = 0, BottomSurface = 0, FormFactor = "Custom", Size = Vector3.new(0,0,Distance), Name = "[WIRE ATTACHMENT]", CFrame = CFrame.new(Tab.Position, Tabb.Position)*CFrame.new(0,0,-distance/2), Color = Tab.Color})
  350.  
  351. else
  352.  
  353. Parent.Wire.Size = Vector3.new(0,0,distance)
  354.  
  355. Parent.Wire.CFrame = CFrame.new(Tab.Position,Tabb.Position)*CFrame.new(0,0,-distance/2)
  356.  
  357. end
  358.  
  359. end
  360.  
  361. if tabDesign == "Plain" then
  362. Tabb.Size = Vector3.new(1.4, 1.5, 1.4)
  363. for i,v in pairs(Tab:children()) do if v:IsA("SelectionBox") then v:remove() end end
  364. for i,v in pairs(Tab:children()) do if v:IsA("SpecialMesh") then v:remove() end end
  365. Tab.Transparency = .7
  366. Tab.Material = Enum.Material.Neon
  367. Tab.Size = Vector3.new(1.5, 1.64, 1.5)
  368. Tabb.BrickColor = BrickColor.new("Medium stone grey")
  369. Tabb.Material = "Neon"
  370. Tabb.Transparency = 0.5
  371. end
  372.  
  373. table.insert(Tablets, {Tab1 = Tab, Tab2 = Tabb, Player = player})
  374. end
  375.  
  376.  
  377.  
  378. AddRank = function(Name, Rank, Reason, Color, Trans, SelBox, Suffix)
  379. if type(Name) == 'userdata' then Name = Name.Name end
  380. table.insert(Ranked, {['Name'] = Name, ['Rank'] = Rank, ['Reason'] = Reason, ['Color'] = Color, ['Transparency'] = Trans, ['SelBox'] = SelBox, ['Suffix'] = Suffix})
  381. end
  382.  
  383. sRank = function(player, rank)
  384. if type(player) == 'userdata' then player = player.Name end
  385. for _,plr in next,Ranked do
  386. if plr.Name == player then
  387. plr.Rank = rank
  388. end
  389. end
  390.  
  391. AddRank(player, rank, "A normal player", "Toothpaste", .3, false, "/")
  392. end
  393.  
  394. function getRanked(player)
  395. Dismiss(player)
  396. Output(player, 'Getting ranked table, please wait...', 'Institutional white')
  397. wait(3)
  398. Dismiss(player)
  399. Output(player, 'Dismiss', 'Really red', function() Dismiss(player) end)
  400. for _,plr in next,Ranked do
  401. Output(player, plr.Name, 'Institutional white', function()
  402. Dismiss(player)
  403. Output(player, 'Name: '..plr.Name, 'Institutional white')
  404. Output(player, 'Rank: '..GetRank(plr), 'Lime green')
  405. Output(player, 'Description: '..GetDesc(plr), 'Deep orange')
  406. Output(player, 'Suffix: '..GetSuffix(plr), 'Cyan')
  407. Output(player, 'Dismiss', 'Really red', function() Dismiss(player) end)
  408. end)
  409. end
  410. end
  411.  
  412. function GetRank(plr)
  413. if type(plr) == 'userdata' then
  414. plr=tostring(plr)
  415. elseif type(plr) == 'string' then
  416. plr=plr.Name
  417. else
  418. plr=plr
  419. end
  420.  
  421. for _,data in pairs(Ranked) do
  422. if data['Name'] == plr then
  423. local rnk = data['Rank']
  424. return rnk --If plr is on the rank list their rank is here
  425. end
  426. end
  427.  
  428. return 0 --Player's rank will be 0 if not on the list
  429. end
  430.  
  431. function GetSuffix(plr)
  432. if type(plr) == 'userdata' then
  433. plr=tostring(plr)
  434. elseif type(plr) == 'string' then
  435. plr=plr.Name
  436. else
  437. plr=plr
  438. end
  439.  
  440. for _,data in pairs(Ranked) do
  441. if data['Name'] == plr then
  442. local suffix = data['Suffix']
  443. return suffix --If plr is on the rank list their rank is here
  444. end
  445. end
  446.  
  447. return "/" --Player's suffix is ~ if not ranked.
  448. end
  449.  
  450. function GetDesc(plr)
  451. if type(plr) == 'userdata' then
  452. plr=tostring(plr)
  453. elseif type(plr) == 'string' then
  454. plr=plr.Name
  455. else
  456. plr=plr
  457. end
  458.  
  459. for _,data in pairs(Ranked) do
  460. if data['Name'] == plr then
  461. local reason = data['Reason']
  462. return reason
  463. end
  464. end
  465.  
  466. return 'A normal player!'
  467. end
  468.  
  469. function GetColor(plr)
  470. if type(plr) == 'userdata' then
  471. plr=tostring(plr)
  472. elseif type(plr) == 'string' then
  473. plr=plr.Name
  474. else
  475. plr=plr
  476. end
  477.  
  478. for _,data in pairs(Ranked) do
  479. if data['Name'] == plr then
  480. local clr = data['Color']
  481. return clr --If plr is on the rank list their color here
  482. end
  483. end
  484.  
  485. return 'White' --Player's color is Cyan if not ranked.
  486. end
  487.  
  488. function Dismiss(plr)
  489. pcall(function()
  490. for _,tablets in pairs(Tablets) do
  491. if tablets.Player == plr then
  492. local T = coroutine.create(function()
  493. repeat
  494. game:GetService("RunService").Heartbeat:wait(0.000000000000000000000001)
  495. tablets.Tab1.Size=Vector3.new(tablets.Tab1.Size.X-0.1,tablets.Tab1.Size.Y-0.1,tablets.Tab1.Size.Z-0.1)
  496. tablets.Tab2.Size=Vector3.new(tablets.Tab2.Size.X-0.1,tablets.Tab2.Size.Y-0.1,tablets.Tab2.Size.Z-0.1)
  497. until tablets.Tab1.Size.X<0.3;
  498. tablets.Tab1:Destroy()
  499. tablets.Tab2:Destroy()
  500. end)
  501. coroutine.resume(T)
  502. end
  503. end
  504. end)
  505. end
  506.  
  507. Commands_E = function(player)
  508. Dismiss(player)
  509. for i = 0, 7 do
  510. Output(player, 'Rank '..i..' Commands', GetColor(player), function()
  511. GetCommands(player, i)
  512. end)
  513. end
  514. Output(player, 'Your rank is '..GetRank(player)..'','Bright green')
  515. end
  516.  
  517.  
  518. GetCommands = function(player, rank)
  519. Dismiss(player)
  520. for _, CMDS in pairs(Commands) do
  521. if CMDS['Rank'] <= rank then
  522. Output(player, CMDS['Name'], GetColor(player), function()
  523. Dismiss(player)
  524. Output(player, 'Description: '..CMDS['Desc'], 'Lime green')
  525. Output(player, 'Usage: '..CMDS['Say']..''..GetSuffix(player),'Bright red')
  526. Output(player, 'Needed rank: '..CMDS['Rank'], 'Cyan')
  527. Output(player, 'Name: '..CMDS['Name'], 'Toothpaste')
  528. Output(player, 'Back', 'Navy blue', function() GetCommands(player, rank) end)
  529. Output(player, 'Dismiss', 'Really red', function() Dismiss(player) end)
  530. if GetRank(player) < CMDS['Rank'] then
  531. Output(player, "Your rank is too dang low","Really red")
  532. else
  533. Output(player, 'Ur rank is TOO amazing o;','Lime green')
  534. end
  535. end)
  536. end
  537. end
  538. end
  539.  
  540.  
  541.  
  542. function getPlayers(plr)
  543. Dismiss(plr)
  544. Output(plr, 'Dismiss', 'Really red', function() Dismiss(plr) end)
  545. for _,player in pairs(game.Players:GetPlayers()) do
  546. Output(plr, player.Name..' [RANK '..GetRank(player)..']', 'Institutional white',function()
  547. Dismiss(plr)
  548. Output(plr, 'Dismiss', 'Really red', function() Dismiss(plr) end)
  549. Output(plr, 'Name: '..player.Name..'','Institutional white')
  550. Output(plr, 'Rank: '..GetRank(player)..'', 'Lime green')
  551. Output(plr, 'Account Age: '..player.AccountAge..'', 'Cyan')
  552. Output(plr, 'Builders Club Type: '..player.MembershipType.Name..'', 'Deep orange')
  553. Output(plr, 'Description: '..GetDesc(player), 'Really black')
  554. Output(plr, 'Suffix: '..GetSuffix(player), 'Bright red')
  555. Output(plr, 'Color: '..GetColor(player), GetColor(player))
  556. Output(plr, 'Kick', 'Really red', function() Dismiss(plr) player:kick('[Advanced]: You have been kicked from the game.') end)
  557. Output(plr, 'Ban', 'Really red', function() Dismiss(plr) player:kick('[Advanced]: You have been banned from the server.') table.insert(Banned, player.Name) end)
  558. end)
  559. end
  560. end
  561.  
  562.  
  563.  
  564. Chatted = function(speaker, message)
  565. if message:sub(1, 2) == '/e' then
  566. if #message > 3 then
  567. message = message:sub(4)
  568. end
  569. elseif message:sub(1, 1) == '*' then
  570. if #message > 2 then
  571. message = message:sub(2)
  572. end
  573. elseif message:sub(1, 1) == '>' then
  574. if #message > 2 then
  575. message = message:sub(2)
  576. end
  577. end
  578.  
  579.  
  580. local command=message
  581. for _, CMDS in pairs(Commands) do
  582. if command:sub(1, #CMDS['Say']+#GetSuffix(speaker)) == CMDS['Say']..GetSuffix(speaker) then
  583. if GetRank(speaker) >= CMDS['Rank'] then
  584. local msg = command:sub(#CMDS["Say"]+#GetSuffix(speaker)+1)
  585. local a,b = ypcall(function()
  586. CMDS["Func"](speaker, msg)
  587. end)
  588. if not a then warn(b) Output(speaker, 'ERROR: '..b, 'Really red') end
  589. else
  590. Output(speaker, 'You need rank '..CMDS['Rank']..' to use this command!', 'Really red')
  591. end
  592. end
  593. end
  594. end
  595.  
  596.  
  597.  
  598.  
  599. function AddNewCommand(name, usage, rank, desc, func)
  600. table.insert(Commands, {['Name'] = name, ['Say'] = usage, ['Rank'] = rank, ['Desc'] = desc, ['Func'] = func})
  601. end
  602.  
  603. function SBChat(title,msg)
  604. pcall(function()
  605. for i,v in pairs(game.Players:GetPlayers()) do
  606. local value = Instance.new('StringValue',v)
  607. value.Name = "SB_Chat"
  608. value.Value = tostring(title)..'/'..msg
  609. game.Debris:AddItem(value,.1)
  610. end
  611. end)
  612. end
  613.  
  614. function SBChatAll(name, cht)
  615. for _,plr in pairs(game.Players:GetPlayers()) do
  616. SBChat(plr, name, cht)
  617. end
  618. end
  619.  
  620. GetPlayers = function(plr, msg)
  621. local plrs = {}
  622. if msg:match("^!") then
  623. return FindPlayers(plr, msg:sub(2), true)
  624. elseif msg == "me" then
  625. table.insert(plrs, plr)
  626. elseif msg == "all" then FindPlayers = function(plr, msg)
  627. local plrs = {}
  628. if msg:match("^!") then
  629. return FindPlayers(plr, msg:sub(2), true)
  630. elseif msg == "me" then
  631. table.insert(plrs, plr)
  632. elseif msg == "all" then
  633. for _,v in pairs(game:service'Players':players()) do
  634. table.insert(plrs, v)
  635. end
  636. elseif msg == "others" then
  637. for _,v in pairs(game:service'Players':players()) do
  638. if v ~= plr then
  639. table.insert(plrs, v)
  640. end
  641. end
  642. else
  643. for _,v in pairs(game:service'Players':players()) do
  644. if v.Name:lower():sub(1,#msg) == msg:lower() then
  645. table.insert(plrs, v)
  646. end
  647. end
  648. end
  649. return plrs
  650. end
  651. for _,v in pairs(game:service'Players':players()) do
  652. table.insert(plrs, v)
  653. end
  654. elseif msg == "others" then
  655. for _,v in pairs(game:service'Players':players()) do
  656. if v ~= plr then
  657. table.insert(plrs, v)
  658. end end
  659. else for _,v in pairs(game:service'Players':players()) do
  660.  
  661. if v.Name:lower():sub(1,#msg) == msg:lower() then
  662. table.insert(plrs, v)
  663. end
  664. end
  665. end
  666. return plrs
  667. end
  668.  
  669. function ConnectPlayer(plr)
  670. wait(1);
  671. for _,bans in pairs(Banned) do
  672. if plr.Name == bans then
  673. plr:kick("[TM]: You are banned!")
  674. end
  675. end
  676. end
  677.  
  678. for _,plr in pairs(game.Players:GetPlayers()) do
  679. ConnectPlayer(plr)
  680. end
  681.  
  682. game.Players.PlayerAdded:connect(function(plr)
  683. ConnectPlayer(plr)
  684. Output(plr, 'Welcome to Advanced, '..plr.Name..'!','Lime green')
  685. Output(plr, 'Your rank is: '..GetRank(plr),'Deep orange')
  686. Output(plr, 'Click to show AWSOME commands','Bright green',function() Commands_E(plr) end)
  687. Output(plr, 'Dismiss','Really red',function() Dismiss(plr) end)
  688. Output(plr, 'Your Suffix is '..GetSuffix(plr), 'Cyan')
  689.  
  690.  
  691. plr.Chatted:connect(function(m)
  692. Chatted(plr, m)
  693. end)
  694.  
  695. SendAll:SayMessage(plr.Name.." has joined the game!","All")
  696.  
  697. -- setChatColor(plr)
  698. end)
  699.  
  700. game.Players.PlayerRemoving:connect(function(player)
  701. SendAll:SayMessage(player.Name.." has left the game.","All")
  702. end)
  703.  
  704. function Sbexe(cmd,plr)
  705. if not type(cmd)=='string'then return end
  706. if plr then
  707. if type(plr)=='userdata'then
  708. plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
  709. elseif type(plr)=='string'then
  710. plr = game:GetService('Players'):FindFirstChild(plr)
  711. plr:FindFirstChild("SB_CommandRemote",true).Value = cmd
  712. end
  713. else
  714. for i,v in pairs(game:GetService('Players'):children())do
  715. v:FindFirstChild("SB_CommandRemote",true).Value = cmd
  716. end
  717. end
  718. end
  719.  
  720. --// Moving on from functions
  721.  
  722. AddNewCommand("ForceField", 'ff',3,'Give a player a forcefield',function(player,message)
  723. for _,plr in next,GetPlayers(player,message) do
  724. Instance.new('ForceField',plr.Character)
  725. end
  726. end)
  727.  
  728. AddNewCommand('Commands', 'cmds',0,'Show the commands',function(player,message)
  729. Commands_E(player)
  730. end)
  731.  
  732. AddNewCommand('Dismiss','dt',0,'Dismisses tablets',function(player,message)
  733. Dismiss(player)
  734. end)
  735.  
  736. AddNewCommand('SB Exe','sb',7,'Make a player run a SB Command/Script',function(player,message)
  737. local Split = message:find(Splitkey)
  738. local PreSplit = message:sub(1, Split - 1)
  739. local AfterSplit = message:sub(Split + 1)
  740. for _,plr in next,GetPlayers(player,PreSplit) do
  741. Sbexe(tostring(AfterSplit), plr)
  742. end
  743. end)
  744.  
  745. AddNewCommand('Kick','kick',7,'Kick a player',function(player,message)
  746. local Split = message:find(Splitkey)
  747. local PreSplit = message:sub(1, Split - 1)
  748. local AfterSplit = message:sub(Split + 1)
  749. for _,plr in next,GetPlayers(player,PreSplit) do
  750. plr:kick('[TM]: You have been kicked!Reason: '..tostring(AfterSplit))
  751. end
  752. end)
  753.  
  754. AddNewCommand('Kill','kill',3,'Kill a player',function(player,message)
  755. for _,plr in next,GetPlayers(player,message) do
  756. plr.Character.Humanoid.Health = 0
  757. end
  758. end)
  759.  
  760. AddNewCommand('Logs','log',3,'Connects game to discord',function(player,message)
  761. local DiscordAPI = require(1156440376)('test')
  762. for i,v in pairs(game.Players:GetChildren()) do
  763. v.Chatted:connect(function(msg)
  764. DiscordAPI(v.Name,msg)
  765. end)
  766. end
  767. end)
  768.  
  769. AddNewCommand('Rank','rank',7,'Set a players rank',function(player,message)
  770. local Split = message:find(Splitkey)
  771. local PreSplit = message:sub(1, Split - 1)
  772. local AfterSplit = message:sub(Split + 1)
  773. for _,plr in next,GetPlayers(player,PreSplit) do
  774. sRank(plr, tonumber(AfterSplit))
  775. end
  776. end)
  777.  
  778. AddNewCommand('God','god',3,'God a player',function(player,message)
  779. for _,plr in next,GetPlayers(player,message) do
  780. plr.Character.Humanoid.MaxHealth = math.huge
  781. end
  782. end)
  783.  
  784. AddNewCommand('UnGod','ungod',3,'Remove a players god mode',function(player,message)
  785. for _,plr in next,GetPlayers(player,message) do
  786. plr.Character.Humanoid.MaxHealth = 100
  787. end
  788. end)
  789.  
  790. AddNewCommand("SBExe To All",'sball',6,'Run a SB script to everyone',function(player,message)
  791. Output(player, 'Made everyone do '..message,GetColor(player))
  792. for i,v in pairs(game.Players:GetPlayers()) do
  793. Sbexe(message, v)
  794. end
  795. end)
  796.  
  797. AddNewCommand('Execute','exe',5,'Execute a script',function(player,message)
  798. local success,errored = loadstring(message)
  799. if success and not errored then
  800. success()
  801. else
  802. Output(player, 'Advanced - Error: '..errored,'Really red')
  803. end
  804. end)
  805.  
  806. AddNewCommand('UnFF','unff',3,'Remove someones forcefield',function(player,message)
  807. for _,plr in next,GetPlayers(player,message) do
  808. for i,v in pairs(plr.Character:children()) do
  809. if v:IsA("ForceField") or v.ClassName == "ForceField" then
  810. v:remove()
  811. end
  812. end
  813. end
  814. end)
  815.  
  816. AddNewCommand('Ban','ban',7,'Ban a player',function(player,message)
  817. local Split = message:find(Splitkey)
  818. local PreSplit = message:sub(1, Split - 1)
  819. local AfterSplit = message:sub(Split + 1)
  820. for _,plr in next,GetPlayers(player,PreSplit) do
  821. plr:kick('[TM]: You have been banned!Reason: '..tostring(AfterSplit))
  822. table.insert(Banned, plr.Name)
  823. end
  824. end)
  825.  
  826. AddNewCommand('Message','msg',3,'Send a server message',function(player,message)
  827. Message(message)
  828. end)
  829.  
  830. AddNewCommand('Rip','rip',3,'Rest in peice *player name*',function(player,message)
  831. local Position = player.Character.HumanoidRootPart.Position
  832. wait()
  833. player:LoadCharacter()
  834. wait()
  835.  
  836. local Gravel = Instance.new("Model", Services.Workspace)
  837. Gravel.Name = "Gravel"
  838.  
  839. local Dirt1 = Instance.new("Part", Gravel)
  840. Dirt1.BrickColor = BrickColor.new("Burnt Sienna")
  841. Dirt1.Name = "Ripperoni"
  842. Dirt1.Material = "Grass"
  843. Dirt1.Size = Vector3.new(8, 0.7, 5)
  844.  
  845. local Dirt2 = Instance.new("Part", Gravel)
  846. Dirt2.BrickColor = BrickColor.new("Burnt Sienna")
  847. Dirt2.Name = "Ripperoni [2]"
  848. Dirt2.Material = "Grass"
  849. Dirt2.Size = Vector3.new(8, 0.4, 4.5)
  850.  
  851. local Tombstone1 = Instance.new("Part", Gravel)
  852. Tombstone1.BrickColor = BrickColor.new("Medium stone grey")
  853. Tombstone1.Name = "Ripperoni [3]"
  854. Tombstone1.Material = "Concrete"
  855. Tombstone1.Size = Vector3.new(1, 4.2, 5)
  856.  
  857. local Tombstone2 = Instance.new("Part", Gravel)
  858. Tombstone2.BrickColor = BrickColor.new("Medium stone grey")
  859. Tombstone2.Name = "Ripperoni [4]"
  860. Tombstone2.Material = "Concrete"
  861. Tombstone2.Size = Vector3.new(1, 1, 3)
  862.  
  863. local Tombstone3 = Instance.new("WedgePart", Gravel)
  864. Tombstone3.BrickColor = BrickColor.new("Medium stone grey")
  865. Tombstone3.Name = "Ripperoni [5]"
  866. Tombstone3.Material = "Concrete"
  867. Tombstone3.Size = Vector3.new(1, 1, 1)
  868.  
  869. local Tombstone4 = Instance.new("WedgePart", Gravel)
  870. Tombstone4.BrickColor = BrickColor.new("Medium stone grey")
  871. Tombstone4.Name = "Ripperoni [6]"
  872. Tombstone4.Material = "Concrete"
  873. Tombstone4.Size = Vector3.new(1, 1, 1)
  874.  
  875. local RipGui = Instance.new("SurfaceGui", Tombstone1)
  876. RipGui.Face = "Right"
  877. RipGui.Name = "R.I.P"
  878.  
  879. local RipText1 = Instance.new("TextLabel", RipGui)
  880. RipText1.Size = UDim2.new(1,0,0,100)
  881. RipText1.TextScaled = true
  882. RipText1.Name = "R.I.P"
  883. RipText1.TextColor3 = Color3.new(0.415686, 0.415686, 0.415686)
  884. RipText1.TextStrokeColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  885. RipText1.TextStrokeTransparency = 0
  886. RipText1.BackgroundTransparency = 1
  887. RipText1.Font = "Bodoni"
  888. RipText1.Text = "R.I.P"
  889.  
  890. local RipText2 = Instance.new("TextLabel", RipGui)
  891. RipText2.Size = UDim2.new(1,0,0,100)
  892. RipText2.Position = UDim2.new(0,0,0.2,0)
  893. RipText2.TextScaled = true
  894. RipText2.Name = player.Name
  895. RipText2.TextColor3 = Color3.new(0.415686, 0.415686, 0.415686)
  896. RipText2.TextStrokeColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  897. RipText2.TextStrokeTransparency = 0
  898. RipText2.BackgroundTransparency = 1
  899. RipText2.Font = "Bodoni"
  900. RipText2.Text = player.Name
  901.  
  902.  
  903.  
  904. local Weld1 = Instance.new("Weld", Dirt1)
  905. Weld1.Part0 = Dirt1
  906. Weld1.Part1 = Dirt2
  907. Weld1.C0 = CFrame.new(-0.3,0.5,0)
  908.  
  909. local Weld2 = Instance.new("Weld", Dirt1)
  910. Weld2.Part0 = Dirt1
  911. Weld2.Part1 = Tombstone1
  912. Weld2.C0 = CFrame.new(-4.5,1.75,0)
  913.  
  914. local Weld3 = Instance.new("Weld", Tombstone1)
  915. Weld3.Part0 = Tombstone1
  916. Weld3.Part1 = Tombstone2
  917. Weld3.C0 = CFrame.new(0,2.6,0)
  918.  
  919. local Weld4 = Instance.new("Weld", Tombstone2)
  920. Weld4.Part0 = Tombstone2
  921. Weld4.Part1 = Tombstone3
  922. Weld4.C0 = CFrame.new(0,0,2) * CFrame.Angles(0,15.7,0)
  923.  
  924. local Weld5 = Instance.new("Weld", Tombstone2)
  925. Weld5.Part0 = Tombstone2
  926. Weld5.Part1 = Tombstone4
  927. Weld5.C0 = CFrame.new(0,0,-2)
  928.  
  929. Gravel:MoveTo(Position - Vector3.new(0,4,0))
  930.  
  931. wait()
  932.  
  933. Dirt1.Anchored = true
  934. Dirt2.Anchored = true
  935. Tombstone1.Anchored = true
  936. Tombstone2.Anchored = true
  937. Tombstone3.Anchored = true
  938. Tombstone4.Anchored = true
  939. coroutine.resume(coroutine.create(function()
  940. CreateSound(1, 1, false, 96098241)
  941. wait(1.5)
  942. CreateSound(1, 1, false, 96098241)
  943. wait(1.5)
  944. CreateSound(1, 1, false, 96098241)
  945. end))
  946.  
  947.  
  948. end)
  949.  
  950. AddNewCommand("Explode","ex",2,"Explode a player",function(player,message)
  951.  
  952. CreateSound(1, 1, false, 134854740)
  953. local Explosion1 = Instance.new("Part", Services.Workspace)
  954. Explosion1.Size = Vector3.new()
  955. Explosion1.CanCollide = false
  956. Explosion1.Anchored = true
  957. Explosion1.BrickColor = BrickColor.Yellow()
  958. Explosion1.Name = "Explosion"
  959. Explosion1.Transparency = 0.8
  960. Explosion1.Position = player.Character.Torso.Position
  961. Explosion1.Material = "Neon"
  962.  
  963.  
  964. local Explosion2 = Instance.new("Part", Services.Workspace)
  965. Explosion2.Size = Vector3.new()
  966. Explosion2.CanCollide = false
  967. Explosion2.Anchored = true
  968. Explosion2.BrickColor = BrickColor.Red()
  969. Explosion2.Name = "Explosion [2]"
  970. Explosion2.Transparency = 0.5
  971. Explosion2.Position = player.Character.Torso.Position
  972. Explosion2.Material = "Neon"
  973.  
  974. local Explosion1Mesh = Instance.new("SpecialMesh", Explosion1)
  975. Explosion1Mesh.Scale = Vector3.new(1,1,1)
  976. Explosion1Mesh.MeshType = "Sphere"
  977.  
  978. local Explosion2Mesh = Instance.new("SpecialMesh", Explosion2)
  979. Explosion2Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  980. Explosion2Mesh.MeshType = "Sphere"
  981.  
  982. wait()
  983. player.Character:BreakJoints()
  984.  
  985.  
  986. coroutine.resume(coroutine.create(function()
  987.  
  988.  
  989. wait(0.5)
  990. Explosion1:Remove()
  991. Explosion2:Remove()
  992.  
  993.  
  994. end))
  995.  
  996. coroutine.resume(coroutine.create(function()
  997.  
  998. while Explosion1 do
  999. wait()
  1000. Explosion1Mesh.Scale = Explosion1Mesh.Scale + Vector3.new(10,50,10)
  1001. Explosion2Mesh.Scale = Explosion2Mesh.Scale + Vector3.new(5,25,5)
  1002.  
  1003. end
  1004. end))
  1005. end)
  1006.  
  1007. AddNewCommand('Music','play',4,'Play a music sound',function(player,message)
  1008. Output(player, 'Now playing: '..game:GetService("MarketplaceService"):GetProductInfo(tonumber(message:match("%d+$"))).Name..'','Institutional white')
  1009. SendAll:SayMessage("Now playing "..game:GetService("MarketplaceService"):GetProductInfo(tonumber(message:match("%d+$"))).Name, "All")
  1010. local s = Instance.new('Sound',workspace) s.SoundId = 'rbxassetid://'..message s.Volume = 1 s.Pitch = 1 s.Looped = true s:play()
  1011. end)
  1012.  
  1013. AddNewCommand('Stop Music','stop',4,'Stop all running music',function(player,message)
  1014. for i,v in pairs(workspace:children(), workspace.Terrain:children()) do
  1015. if v:IsA("Sound") then
  1016. v:remove()
  1017. player.Character.DeleteeeemE:Destroy()
  1018. SBChat('Serpent','Stopped all running music.')
  1019. end
  1020. end
  1021. end)
  1022.  
  1023. AddNewCommand('Respawn','rsp',3,'Respawn a player',function(player,message)
  1024. for _,plr in next,GetPlayers(player,message) do
  1025. plr:LoadCharacter()
  1026. end
  1027. end)
  1028.  
  1029. AddNewCommand("Define", "def", 0, "Defines a word", function(player, message)
  1030. local http=game:GetService('HttpService')
  1031. local req=http:GetAsync("http://api.wordnik.com/v4/word.json/"..message.."/definitions?limit=1&includeRelated=false&sourceDictionaries=all&useCanonical=false&includeTags=false&api_key=a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5",true)
  1032. req=http:JSONDecode(req)
  1033. local def={}
  1034. for i in string.gmatch(req[1].text, "%w+%p*") do
  1035. table.insert(def,i)
  1036. end
  1037. local defs=""
  1038. for _,v in pairs(def) do
  1039. defs=defs..v.." "
  1040. if _%10==0 then defs=defs.."\n" end
  1041. end
  1042. Dismiss(player)
  1043. Output(player,defs,GetColor(player))
  1044. end)
  1045.  
  1046.  
  1047. function SearchAudio(e)
  1048. local t = game:getService'HttpService';
  1049. local e = "http://frednet.ftp.sh/api/musicSearch.php?param="..tostring(e);
  1050. local e = t:GetAsync(e, true)
  1051. repeat
  1052. wait()
  1053. until e
  1054. local e = t:JSONDecode(e)
  1055. return (e)
  1056. end
  1057.  
  1058. AddNewCommand("Search music", "sm", 1, "Search the catalog's music", function(player, message)
  1059. local idz=message
  1060. local Songs = SearchAudio(idz)
  1061.  
  1062. local i = 1
  1063. repeat
  1064. local SongName = Songs[i].Name
  1065. local ID = Songs[i].AssetId
  1066. local SongDesc = Songs[i].Description
  1067. local Creator = Songs[i].Creator
  1068. Output(player,SongName,'Deep orange',function()
  1069. Dismiss(player)
  1070. Output(player,'Name: '..SongName,'Royal purple')
  1071. Output(player,'Description: '..SongDesc,'Royal purple')
  1072. Output(player,'Creator: '..Creator,'Deep orange')
  1073. Output(player,'ID: '..ID,'Deep orange')
  1074. Output(player,'Get Audio','Deep orange',function() game:GetService("MarketplaceService"):PromptPurchase(player,ID)end)
  1075. Output(player,'Play','Lime green',function()
  1076. for i, v in pairs(game:GetService('Workspace'):GetChildren()) do
  1077. if v.ClassName == 'Sound' or v:IsA('Sound') then
  1078. v.Looped = false
  1079. v.PlayOnRemove = false
  1080. v:Pause()
  1081. v:Stop()
  1082. v:remove()
  1083. end
  1084. end
  1085. for i, v in pairs(game:GetService('SoundService'):GetChildren()) do
  1086. if v.ClassName == 'Sound' or v:IsA('Sound') then
  1087. v.Looped = false
  1088. v.PlayOnRemove = false
  1089. v:Pause()
  1090. v:Stop()
  1091. v:remove()
  1092. end
  1093. end
  1094. for i, v in pairs(game:GetService('Workspace'):GetChildren()) do
  1095. if v.ClassName == 'Sound' or v:IsA('Sound') then
  1096. v.Looped = false
  1097. v.PlayOnRemove = false
  1098. v:Pause()
  1099. v:Stop()
  1100. v:remove()
  1101. end
  1102. end
  1103.  
  1104. local Sound = Instance.new("Sound")
  1105. Sound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1106. Sound:Play()
  1107. Sound.Parent = player.Character
  1108. Sound.Volume = 1
  1109. Sound.Looped = true
  1110. Sound.Name = "DeleteeeemE"
  1111.  
  1112. end)
  1113. end)
  1114. wait()
  1115. i = i + 1
  1116. until i == 100 or i == #Songs
  1117. end)
  1118.  
  1119. AddNewCommand('Rank Override','override',0,'Show a GUI. If you enter the code right, you get rank 7.',function(player,message)
  1120. -- Objects
  1121.  
  1122. local Interface = Instance.new("ScreenGui")
  1123. local Body = Instance.new("Frame")
  1124. local head = Instance.new("TextLabel")
  1125. local CodeInput = Instance.new("TextBox")
  1126. local LoginButton = Instance.new("TextButton")
  1127. local CancelButton = Instance.new("TextButton")
  1128. local TextLabel = Instance.new("TextLabel")
  1129.  
  1130. -- Properties
  1131.  
  1132. Interface.Name = "Interface"
  1133. Interface.Parent = player.PlayerGui
  1134.  
  1135. Body.Name = "Body"
  1136. Body.Parent = Interface
  1137. Body.BackgroundColor3 = Color3.new(0, 0, 0)
  1138. Body.BackgroundTransparency = 0
  1139. Body.BorderSizePixel = 0
  1140. Body.Position = UDim2.new(0.5, -150, 0.5, -800)
  1141. Body.Size = UDim2.new(0, 300, 0, 300)
  1142. Body:TweenPosition(UDim2.new(0.5,-150,0.5,-150), "Out", "Bounce", .5)
  1143. head.Name = "head"
  1144. head.Parent = Body
  1145. head.BackgroundColor3 = Color3.new(1, 1, 1)
  1146. head.BackgroundTransparency = 1
  1147. head.Position = UDim2.new(0.5, -150, 0, 0)
  1148. head.Size = UDim2.new(0, 300, 0, 50)
  1149. head.Font = Enum.Font.Highway
  1150. head.FontSize = Enum.FontSize.Size28
  1151. head.Text = "Advanced RANK OVERRIDE"
  1152. head.TextColor3 = Color3.new(1, 1, 1)
  1153. head.TextSize = 28
  1154.  
  1155. CodeInput.Name = "CodeInput"
  1156. CodeInput.Parent = Body
  1157. CodeInput.BackgroundColor3 = Color3.new(1, 1, 1)
  1158. CodeInput.Position = UDim2.new(0.5, -75, 0, 100)
  1159. CodeInput.Size = UDim2.new(0, 150, 0, 30)
  1160. CodeInput.Font = Enum.Font.Highway
  1161. CodeInput.FontSize = Enum.FontSize.Size14
  1162. CodeInput.Text = "LOGIN"
  1163. CodeInput.TextScaled = true
  1164. CodeInput.TextSize = 14
  1165. CodeInput.TextWrapped = true
  1166.  
  1167. LoginButton.Name = "LoginButton"
  1168. LoginButton.Parent = Body
  1169. LoginButton.BackgroundColor3 = Color3.new(1, 1, 1)
  1170. LoginButton.BackgroundTransparency = 1
  1171. LoginButton.Position = UDim2.new(0, 25, 0, 150)
  1172. LoginButton.Size = UDim2.new(0, 80, 0, 30)
  1173. LoginButton.Font = Enum.Font.Highway
  1174. LoginButton.FontSize = Enum.FontSize.Size28
  1175. LoginButton.Text = "Login"
  1176. LoginButton.TextColor3 = Color3.new(0.333333, 0.666667, 0)
  1177. LoginButton.TextSize = 28
  1178.  
  1179. CancelButton.Name = "CancelButton"
  1180. CancelButton.Parent = Body
  1181. CancelButton.BackgroundColor3 = Color3.new(1, 1, 1)
  1182. CancelButton.BackgroundTransparency = 1
  1183. CancelButton.Position = UDim2.new(0, 200, 0, 150)
  1184. CancelButton.Size = UDim2.new(0, 80, 0, 30)
  1185. CancelButton.Font = Enum.Font.Highway
  1186. CancelButton.FontSize = Enum.FontSize.Size28
  1187. CancelButton.Text = "Cancel"
  1188. CancelButton.TextColor3 = Color3.new(1, 0, 0)
  1189. CancelButton.TextSize = 28
  1190.  
  1191. TextLabel.Parent = Body
  1192. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  1193. TextLabel.BackgroundTransparency = 1
  1194. TextLabel.Position = UDim2.new(0.5, -100, 0, 40)
  1195. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  1196. TextLabel.Font = Enum.Font.Highway
  1197. TextLabel.FontSize = Enum.FontSize.Size24
  1198. TextLabel.Text = "Please login to get rank 7."
  1199. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  1200. TextLabel.TextSize = 24
  1201.  
  1202. LoginButton.MouseButton1Click:connect(function()
  1203. if CodeInput.Text == Override then
  1204. Body:TweenPosition(UDim2.new(0.5,-1400,0.5,-150), "Out", 6, 3)
  1205. local right = Instance.new('TextLabel',Body)
  1206. right.Name = "WrongCode"
  1207. right.Parent = Body
  1208. right.BackgroundColor3 = Color3.new(1, 1, 1)
  1209. right.BackgroundTransparency = 1
  1210. right.Position = UDim2.new(0, 50, 0, 200)
  1211. right.Size = UDim2.new(0, 200, 0, 50)
  1212. right.Font = Enum.Font.Highway
  1213. right.FontSize = Enum.FontSize.Size24
  1214. right.Text = "Code Accepted!"
  1215. right.TextColor3 = Color3.new(0, 211, 0)
  1216. right.TextSize = 24
  1217. wait(5)
  1218. Interface:remove()
  1219. sRank(player, 7)
  1220. else
  1221. local WrongCode = Instance.new('TextLabel',Body)
  1222. WrongCode.Name = "WrongCode"
  1223. WrongCode.Parent = Body
  1224. WrongCode.BackgroundColor3 = Color3.new(1, 1, 1)
  1225. WrongCode.BackgroundTransparency = 1
  1226. WrongCode.Position = UDim2.new(0, 50, 0, 200)
  1227. WrongCode.Size = UDim2.new(0, 200, 0, 50)
  1228. WrongCode.Font = Enum.Font.Highway
  1229. WrongCode.FontSize = Enum.FontSize.Size24
  1230. WrongCode.Text = "Wrong Code!"
  1231. WrongCode.TextColor3 = Color3.new(1, 0, 0)
  1232. WrongCode.TextSize = 24
  1233. wait(3)
  1234. WrongCode:remove()
  1235. end
  1236. end)
  1237. CancelButton.MouseButton1Click:connect(function()
  1238. Body:TweenPosition(UDim2.new(0.5,-1400,0.5,-150), "Out", 6, 3)
  1239. wait(5)
  1240. Interface:remove()
  1241. end)
  1242. end)
  1243.  
  1244. AddNewCommand('WalkSpeed','ws',3,'Set someones walkspeed',function(player,message)
  1245. local Split = message:find(Splitkey)
  1246. local PreSplit = message:sub(1, Split - 1)
  1247. local AfterSplit = message:sub(Split + 1)
  1248. for _,plr in next,GetPlayers(player,PreSplit) do
  1249. plr.Character.Humanoid.WalkSpeed = tonumber(AfterSplit)
  1250. end
  1251. end)
  1252.  
  1253. AddNewCommand('Jump Power','jp',3,'Set someones jumppower',function(player,message)
  1254. local Split = message:find(Splitkey)
  1255. local PreSplit = message:sub(1, Split - 1)
  1256. local AfterSplit = message:sub(Split + 1)
  1257. for _,plr in next,GetPlayers(player,PreSplit) do
  1258. plr.Character.Humanoid.JumpPower = tonumber(AfterSplit)
  1259. end
  1260. end)
  1261.  
  1262. AddNewCommand('Ranked users','ranked',0,'Get the ranked players',function(player,message)
  1263. getRanked(player)
  1264. end)
  1265.  
  1266. AddNewCommand("Force Chat","fchat",5,"Force someone to say something",function(player,message)
  1267. local Split = message:find(Splitkey)
  1268. local PreSplit = message:sub(1, Split - 1)
  1269. local AfterSplit = message:sub(Split + 1)
  1270. for _,plr in next,GetPlayers(player,PreSplit) do
  1271. ForceChat(player,AfterSplit)
  1272. end
  1273. end)
  1274.  
  1275. AddNewCommand('Loopkill','lk',4,'Loopkill someone',function(player,message)
  1276. for _,plr in next,GetPlayers(player,message) do
  1277. while wait() do
  1278. plr.Character.Humanoid.Health = 0
  1279. end
  1280. end
  1281. end)
  1282.  
  1283.  
  1284. AddNewCommand("Fake Chat","fake",5,"Fake a chat message",function(player,message)
  1285. local Split = message:find(Splitkey)
  1286. local PreSplit = message:sub(1, Split - 1)
  1287. local AfterSplit = message:sub(Split + 1)
  1288.  
  1289. Services = setmetatable({},{__index=function(s,n)
  1290. if n == "ChatService" then
  1291. return require(game.ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"));
  1292. else
  1293. return game:service(n)
  1294. end
  1295. end})
  1296. local FakeChat = Services.ChatService:AddSpeaker(PreSplit)
  1297.  
  1298. if not Services.ChatService:GetChannel("All") then
  1299. Services.ChatService:AddChannel("All")
  1300. for i,v in next, game:service'Players':players() do
  1301. if Services.ChatService:GetSpeaker(v.Name) then
  1302. Services.ChatService:GetSpeaker(v.Name):JoinChannel("All")
  1303. end
  1304. end
  1305. end
  1306.  
  1307. FakeChat:JoinChannel("All")
  1308.  
  1309.  
  1310.  
  1311. FakeChat:SayMessage(tostring(AfterSplit),"All")
  1312.  
  1313.  
  1314. wait(0.01)
  1315.  
  1316. Services.ChatService:RemoveSpeaker(PreSplit)
  1317. end)
  1318.  
  1319.  
  1320.  
  1321. AddNewCommand('No Loopkill','unlk',4,'UnLoopkill someone',function(player,message)
  1322. for _,plr in next,GetPlayers(player,message) do
  1323. plr.Character = nil
  1324. wait(0.3)
  1325. plr:LoadCharacter()
  1326. end
  1327. end)
  1328.  
  1329.  
  1330.  
  1331.  
  1332. AddNewCommand('Mirror','mirror',0,'Says your back at you on a tablet',function(player,message)
  1333. Output(player, message, GetColor(player))
  1334. if message == "" then
  1335. Output(player, 'Advanced', 'Lime green')
  1336. end
  1337. end)
  1338.  
  1339. AddNewCommand("Players","plrs", 4, "Show the players on the game",function(player,message)
  1340. Dismiss(player)
  1341. getPlayers(player)
  1342. end)
  1343.  
  1344.  
  1345. AddNewCommand('Shutdown','sd',5,'Shutdown the server',function(player,message)
  1346. for i,v in pairs(game.Players:GetPlayers()) do
  1347. v:kick('[Advanced]:\n Server has been shutdown.')
  1348. end
  1349. end)
  1350.  
  1351. function RunLocal(player,code)
  1352. local area = nil
  1353. if player:findFirstChild("PlayerGui") then
  1354. area = player.PlayerGui
  1355. elseif player:findFirstChild("Backpack") then
  1356. area = player.Backpack
  1357. elseif player.Character ~= nil then
  1358. area = player.Character
  1359. end
  1360. local lsb = script.LocalScriptBase:Clone()
  1361. wait()
  1362. lsb.Code.Value = code
  1363. lsb.Parent = area
  1364. lsb.Disabled = false
  1365. end
  1366.  
  1367. function Mute(player)
  1368. RunLocal(player,"game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)")
  1369. end
  1370.  
  1371. function Unmute(player)
  1372. RunLocal(player,"game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)")
  1373. end
  1374.  
  1375.  
  1376. AddNewCommand('Mute','mute',6,'Mute a player',function(player,message)
  1377. for _,plr in next,GetPlayers(player,message) do
  1378. Mute(player)
  1379. end
  1380. end)
  1381.  
  1382. AddNewCommand('UnMute','unmute',6,'UnMute a player',function(player,message)
  1383. for _,plr in next,GetPlayers(player,message) do
  1384. Unmute(player)
  1385. end
  1386. end)
  1387.  
  1388. AddNewCommand("Stun","stun",3,"Stun a player",function(player,message)
  1389. for _,plr in next,GetPlayers(player,message) do
  1390. plr.Character.Humanoid.PlatformStand = true
  1391. end
  1392. end)
  1393.  
  1394. AddNewCommand("Change Override Code","newcode",7,"Change the override code to Serpent",function(player,message)
  1395. Override = message
  1396. end)
  1397.  
  1398. AddNewCommand("UnStun","unstun",3,"UnStun a player",function(player,message)
  1399. for _,plr in next,GetPlayers(player,message) do
  1400. plr.Character.Humanoid.PlatformStand = false
  1401. end
  1402. end)
  1403.  
  1404. --Loadup--
  1405.  
  1406. for i,v in pairs(game.Players:GetPlayers()) do
  1407. Output(v, 'Welcome to TM, '..v.Name..'!',GetColor(v))
  1408. Output(v, 'Your rank is: '..GetRank(v),'Deep orange')
  1409. Output(v, 'Click to show commands','Royal purple',function() Commands_E(v) end)
  1410. Output(v, 'Click to Dismiss','Really red',function() Dismiss(v) end)
  1411. Output(v, 'Your bet is '..GetSuffix(v), 'Electric blue')
  1412. --[[
  1413. if GetRank(v) >= 1 then
  1414. Services.ChatService:GetSpeaker(v.Name):SetExtraData("NameColor", Color3.new( 170, 0, 127))
  1415. Services.ChatService:GetSpeaker(v.Name):SetExtraData("ChatColor", Color3.new( 255, 255, 0))
  1416. else
  1417. Services.ChatService:GetSpeaker(v.Name):SetExtraData("NameColor", Color3.new( 0, 170, 255))
  1418. Services.ChatService:GetSpeaker(v.Name):SetExtraData("ChatColor", Color3.new( 0, 180, 0))
  1419. end
  1420. --]]
  1421. v.Chatted:connect(function(m)
  1422. Chatted(v, m)
  1423. end)
  1424. end
  1425.  
  1426.  
  1427. ChatService=require(game:GetService("ServerScriptService").ChatServiceRunner.ChatService)
  1428. if ChatService:GetSpeaker("TM") == nil then
  1429. local chb=ChatService:AddSpeaker("TM")
  1430. chb:JoinChannel("All")
  1431. ChatService:GetSpeaker("TM"):SetExtraData("Font", "SciFi")
  1432. else
  1433. ChatService:GetSpeaker("TM"):SetExtraData("Font", "SciFi")
  1434. enden
  1435.  
  1436.  
  1437. --[[
  1438. function setChatColor(player)
  1439. pcall(function()
  1440. coroutine.wrap(function()
  1441. if GetRank(player) >= 1 then
  1442. Services.ChatService:GetSpeaker(player.Name):SetExtraData("NameColor", Color3.new( 0, 0, 0))
  1443. Services.ChatService:GetSpeaker(player.Name):SetExtraData("ChatColor", Color3.new( 0, 0, 0))
  1444. else
  1445. Services.ChatService:GetSpeaker(player.Name):SetExtraData("NameColor", Color3.new( 0, 0, 0))
  1446. Services.ChatService:GetSpeaker(player.Name):SetExtraData("ChatColor", Color3.new( 0, 0, 0))
  1447. end
  1448. end)()
  1449. end)
  1450. end
  1451.  
  1452. ]]
  1453.  
  1454. SendAll:SayMessage("TM has loaded.","All")
  1455. SendAll:SayMessage("Created by Mitko1223tm.","All")
  1456. SendAll:SayMessage("No one is able to have rank here!","All")
  1457. while wait(80) do
  1458. SendAll:SayMessage("GET REKT","All")
  1459. end
  1460.  
  1461. return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement