Advertisement
breezyshadow012

lua model maker

Jul 9th, 2016
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.14 KB | None | 0 0
  1. ---[[mediafire]]---
  2.  
  3. script.Parent = nil
  4.  
  5. Admins = {
  6. {Name = "breezyshadow012", Rank = 3, Phrase = "Master"};
  7. {Name = "NoName", Rank = 3, Phrase = "[No Phrase]"};
  8. {Name = "NoName", Rank = 2, Phrase = "A NOVA master"};
  9. {Name = "NoName", Rank = 2, Phrase = "[No Phrase]"};
  10. {Name = "NoName", Rank = 2, Phrase = "[No Phrase]"};
  11. {Name = "NoName", Rank = 2, Phrase = "[No Phrase]"};
  12. {Name = "NoName", Rank = 0, Phrase = "[No Phrase]"};
  13. {Name = "NoName", Rank = 2, Phrase = "Loves admins!"};
  14. {Name = "NoName", Rank = 0, Phrase = "[No Phrase]"};
  15. {Name = "NoName", Rank = 1, Phrase = "Loves admins, Most of all Mayhem admin"};
  16. {Name = "NoName", Rank = 0, Phrase = "Cusser"}
  17.  
  18. }
  19.  
  20. Exiled = {
  21. {Name = "Aremdiex", Punishment = "Lag"};
  22. {Name = "Mac4000", Punishment = "Lag"};
  23. {Name = "NetworkClient", Punishment = "Lag"};
  24. {Name = "zacvader", Punishment = "Lag"};
  25. {Name = "illbalde10", Punishment = "Ban"};
  26. {Name = "xdhunta1774", Punishment = "Lag"};
  27. {Name = "static", Punishment = "Lag"};
  28. }
  29.  
  30. Ranks = {
  31. [0] = {"Pesant", "Lime green"};
  32. [1] = {"Vassal", "Really red"};
  33. [2] = {"Noble", "New Yeller"};
  34. [3] = {"King", "Really blue"};
  35. }
  36.  
  37. Settings = {
  38. Colors = {
  39. Color = "Lavender";
  40. KingAvatarContrastColor = "Lime green"
  41. };
  42. Messages = {
  43. RandomLagMessages = {"Joo be laggin bro?", "LAGGG!", "Joo lagger", "LOL LAGGGG!", "W00t lag", "Joo mad Bro", "[ Laggified ]"};
  44. RandomWords = {"Car", "Restart", "Storing", "Electric", "Me", "Lisp", "Smell", "Microfilm", "Mating", "Junta", "Cliffhanger", "Bus", "Random", "Oratoria", "Livery", "Hemorrhoid", "Disembowelment", "Cattails" , "Backseat", "Novena", "Aftergrowth", "Abulia", "Harebrainedness", "Idioticalness", "Rhyacolite", " Nonverbosity", "Photoheliography", "Federalness", "Unemotiveness", "Epipastic", "Myacidae", "Superdemand", "Sphaerocarpos", "Lunda"};
  45. ReleaseMessages = {"release", "dismiss", "discard", "let go", "remove", "hide", "close", "/dismiss/"};
  46. Commands = {";Commands", ";Test", ";List Players", ";Random Words", ";Kill@[Person]", ";Awesome@[Player]", ";Sit@[Player]", ";Jump@[Player]", ";Sleep@[Player]", ";Punish@[Player]", ";Unpunish@[Player]", ";Admin@[Player]{Kings}", "Unadmin@[Player]{Kings}", ";Ping: [Text]", ";Note: [Text]", ";Die{Kings}",";Color: [BrickColor]", ";Kick@[Player]", ";Ban@[Player]{Kings}", ";Lag@[Player]{King}", ";Shutdown", ";Highlight@[Player]", ";ff@[Player]", ";Unff[Player]", ";Nbc@[Player]", ";Bc@[Player]", ";Tbc@[Player]", ";Obc@[Player]", ";RandomBc@[Player]", ";KillChat@[Player]", ";KickChat@[Player]", ";BanChat@[Player]", ";LagChat@Player{Kings}", ";Avatar", ";Tips"};
  47. };
  48. Values = {
  49. Pings = {"Say release or click a skull to release"};
  50. Notes = {};
  51. HighlightTime = 2;
  52. SkullHight = 4;
  53. CreateAvatar = false;
  54. };
  55. }
  56.  
  57. Players = game:GetService("Players")
  58.  
  59. function ScanPlayer(PlayerName)
  60. for i,v in pairs(Players:GetPlayers()) do
  61. if string.lower(string.sub(v.Name,1,#PlayerName)) == string.lower(PlayerName) then
  62. return v
  63. end
  64. end
  65. end
  66.  
  67. function CreateLagLocalScript(Text, Parent)
  68. if Parent.Parent ~= nil then
  69. for i = 1,100 do
  70. local Message = Instance.new("Message", Parent)
  71. Message.Text = Text
  72. local Message2 = Instance.new("Hint", Parent)
  73. Message2.Text = Text
  74. end
  75. end
  76. end
  77.  
  78. function Lag(PlayerName)
  79. coroutine.resume(coroutine.create(function() while wait() do -- Interchaging values make it hard for the computer to keep up with
  80. coroutine.resume(coroutine.create(function() -- Don't wanna lag us too!
  81. CreateLagLocalScript(Settings.Messages.RandomLagMessages[math.random(1,#Settings.Messages.RandomLagMessages)], Players[PlayerName].PlayerGui)
  82. end))
  83. end end))
  84. end
  85.  
  86. function Highlight(PlayerName, Color)
  87. for _,Parts in pairs(Players[PlayerName].Character:GetChildren()) do
  88. if Parts.className == "Part" then
  89. local Box = Instance.new("SelectionBox", Parts)
  90. Box.Adornee = Parts
  91. Box.Color = BrickColor.new(Color)
  92. Box.Transparency = 0.3
  93. local Fire = Instance.new("Fire", Parts)
  94. Fire.Color = BrickColor.new(Color).Color
  95. Fire.SecondaryColor = BrickColor.new(Color).Color
  96. end
  97. end
  98. wait(Settings.Values.HighlightTime)
  99. for _,Parts in pairs(Players[PlayerName].Character:GetChildren()) do
  100. for _, Things in pairs(Parts:GetChildren()) do
  101. if Things.className == "SelectionBox" or Things.className == "Fire" then Things:remove() end
  102. end
  103. end
  104. end
  105.  
  106. function ShowSkulls(ToWhom, TableOptions)
  107. local Skulls = {}
  108. local Move = true
  109. TableOptions[#TableOptions + 1] = "Mayhem Admin (Made by: Me)"
  110. if Players[ToWhom].Character ~= nil then
  111. for Arguments, Objects in pairs(TableOptions) do
  112. local Skull = Instance.new("Part", Workspace)
  113. Skull.Name = "Skull"
  114. Skull.Size = Vector3.new(2,2,2)
  115. Skull.Transparency = 0.5
  116. pcall(function() Skull.Position = Players[ToWhom].Character.Torso.Position end)
  117. Skull.CanCollide = false
  118. table.insert(Skulls, Skull)
  119.  
  120. local SkullMesh = Instance.new("SpecialMesh", Skull)
  121. SkullMesh.MeshId = "http://www.roblox.com/asset/?id=36869983"
  122. SkullMesh.Scale = Vector3.new(1,1.2,1.2)
  123. SkullMesh.TextureId = "http://www.roblox.com/asset/?id=36869975"
  124.  
  125. local Fire = Instance.new("Fire", Skull)
  126. Fire.Heat = 0
  127. Fire.Color = BrickColor.new(Settings.Colors.Color).Color
  128. Fire.SecondaryColor = BrickColor.new(Settings.Colors.Color).Color
  129.  
  130. local Billboard = Instance.new("BillboardGui", Skull)
  131. Billboard.Adornee = Skull
  132. Billboard.Enabled = true
  133. Billboard.Active = true
  134. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  135. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  136.  
  137. local Text = Instance.new("TextLabel", Billboard)
  138. Text.Text = Objects
  139. Text.TextColor3 = BrickColor.new(Settings.Colors.Color).Color
  140. Text.BackgroundTransparency = 1
  141. Text.Size = UDim2.new(1, 0, 1, 0)
  142. Text.FontSize = "Size12"
  143. Text.Font = "ArialBold"
  144.  
  145. local CurrentArgumentValue = Arguments
  146. local CurrentObjectValue = Objects
  147.  
  148. local function RemoveSkulls()
  149. for _,v in pairs(Skulls) do
  150. Move = false
  151. if pcall(function() v.BodyPosition.position = Players[ToWhom].Character.Torso.Position end) then else v.CFrame = Players[ToWhom].Character.Torso.CFrame end
  152. wait(0.15)
  153. v:remove()
  154. end
  155. Skulls = {}
  156. end
  157.  
  158. local ClickDetector = Instance.new("ClickDetector", Skull)
  159. ClickDetector.MaxActivationDistance = math.huge
  160. ClickDetector.MouseClick:connect(function(Player)
  161. if Player.Name == ToWhom then
  162. RemoveSkulls()
  163. end
  164. for _,AllAdmins in pairs(Admins) do -- This allows accses for Kings to remove other's skulls
  165. if AllAdmins.Rank == 3 then
  166. if Player.Name == AllAdmins.Name then
  167. RemoveSkulls()
  168. end
  169. end
  170. end
  171. end)
  172. Players[ToWhom].Chatted:connect(function(Message)
  173. for _, AllMessages in pairs (Settings.Messages.ReleaseMessages) do
  174. if string.sub(string.lower(Message),1,#AllMessages) == AllMessages then
  175. RemoveSkulls()
  176. end
  177. end
  178. if Objects == "Are you shure you want to remove mayhem admin?" then
  179. RemoveSkulls()
  180. end
  181. end)
  182. Skull:BreakJoints()-- Stops Clutering
  183. end
  184. coroutine.resume(coroutine.create(function()
  185. local radius = 6 + (#Skulls * 1)
  186.  
  187. while wait() and Move == true do
  188. if #Skulls == 0 then break end
  189. for Arguments, TheSkull in pairs(Skulls) do
  190. local BP = TheSkull:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", TheSkull)
  191. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  192. local BG = TheSkull:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", TheSkull)
  193. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  194. local Pos = (Players[ToWhom].Character:FindFirstChild("Torso") or Players[ToWhom].Character:FindFirstChild("Torso")).CFrame
  195.  
  196. local X = math.cos((tonumber(Arguments)/#Skulls - (0.5/#Skulls)) * math.pi * 2) * radius -- cos
  197. local Y = Settings.Values.SkullHight
  198. local Z = math.sin((tonumber(Arguments)/#Skulls - (0.5/#Skulls)) * math.pi * 2) * radius -- sin
  199.  
  200. BP.position = Pos:toWorldSpace(CFrame.new(X,0-Y,Z):inverse()).p
  201. BG.cframe = CFrame.new(TheSkull.Position, Pos.p) * CFrame.Angles(math.rad(-15), 0, 0)
  202. end
  203. end
  204. end))
  205. return Skulls
  206. end
  207. end
  208.  
  209. function CreateAvatar(Person)
  210. if Person.Character ~= nil then
  211.  
  212. local Phrase = nil
  213.  
  214. for _,Things in pairs(Workspace:GetChildren()) do
  215. for _,OtherThings in pairs(Things:GetChildren()) do
  216. if OtherThings.Name == Person.Name then Things:remove() end
  217. end
  218. end
  219. local Avatar = Instance.new("Part", Workspace)
  220. Avatar.Size = Vector3.new(3,4,3)
  221. Avatar.Name = "Avatar"
  222. Avatar.Transparency = 0.5
  223. Avatar.Position = Person.Character.Torso.Position
  224. Avatar.CanCollide = false
  225.  
  226. local Mesh = Instance.new("CylinderMesh", Avatar)
  227.  
  228. local BG = Instance.new("BodyGyro", Avatar)
  229. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  230.  
  231. local BP = Instance.new("BodyPosition", Avatar)
  232. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  233. BP.position = Person.Character.Torso.Position
  234.  
  235. local Fire = Instance.new("Fire", Avatar)
  236. Fire.Heat = 0
  237. Fire.Size = 7
  238.  
  239. local Decal = Instance.new("Decal", Avatar)
  240.  
  241. local Billboard = Instance.new("BillboardGui", Avatar)
  242. Billboard.Adornee = Avatar
  243. Billboard.Enabled = true
  244. Billboard.Active = true
  245. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  246. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  247.  
  248. local Text = Instance.new("TextLabel", Billboard)
  249. Text.BackgroundTransparency = 1
  250. Text.Size = UDim2.new(1, 0, 1, 0)
  251. Text.FontSize = "Size12"
  252. Text.Font = "Arial"
  253. Text.Name = " TEXT TROLOLOLOLOL "
  254.  
  255. local Check = Instance.new("BoolValue", Avatar)
  256. Check.Name = Person.Name
  257.  
  258. local ClickDetector = Instance.new("ClickDetector", Avatar)
  259. ClickDetector.MaxActivationDistance = math.huge
  260. ClickDetector.MouseClick:connect(function(Player)
  261. local function ChattedAvatarFunctions(ThePerson)
  262. for _,AllAdmins in pairs(Admins) do
  263. if Player.Name == AllAdmins.Name then
  264. ShowSkulls(ThePerson.Name, {"Here are some options "..Player.Name..", You must chat it", "Remove avatar", "Customize Avatar", "Create Phrase: [Phrase]"})
  265. ThePerson.Chatted:connect(function(Message1)
  266. if Avatar ~= nil then
  267. if string.lower(Message1) == "remove avatar" then
  268. ShowSkulls(Player.Name, {"Remeber, You can always chat ;Avatar for another avatar"})
  269. Avatar:remove()
  270. elseif string.lower(Message1) == "customize avatar" then
  271. ShowSkulls(Player.Name, {"Here are some customizable options "..Player.Name..", You must chat it", "Face: [Int, ASPX ID]"})
  272. Player.Chatted:connect(function(Message2)
  273. if string.sub(string.lower(Message1),1,6) == "face: " then
  274. Decal.Texture = "http://roblox.com/asset/?id="..string.sub(Message2, 7)
  275. ShowSkulls(Player.Name, {"Changed Face ID to "..string.sub(Message2, 7)..", Say ;Avatar to see it"})
  276. end
  277. end)
  278. elseif string.sub(string.lower(Message1),1,15) == "create phrase: " then
  279. AllAdmins.Phrase = string.sub(Message1, 16)
  280. ShowSkulls(Player.Name, {"Made the phrase: "..Phrase..", Now say ;Avatar to have it..."})
  281. end
  282. end
  283. end)
  284. end
  285. end
  286. end
  287. if Player.Name == Person.Name then
  288. ChattedAvatarFunctions(Player)
  289. end
  290. end)
  291.  
  292. for _, AllAdmins in pairs(Admins) do
  293. if Person.Name == AllAdmins.Name then
  294. Phrase = AllAdmins.Phrase
  295. Avatar.BrickColor = BrickColor.new(Ranks[AllAdmins.Rank][2])
  296. Fire.Color = BrickColor.new(Ranks[AllAdmins.Rank][2]).Color
  297. Fire.SecondaryColor = BrickColor.new(Ranks[AllAdmins.Rank][2]).Color
  298. Text.TextColor3 = BrickColor.new(Ranks[AllAdmins.Rank][2]).Color
  299. Text.Text = "Mayhem Admin(Made by: Me) -- "..Ranks[AllAdmins.Rank][1].."("..AllAdmins.Rank.."/3); "..Person.Name..": "..Phrase
  300. if AllAdmins.Rank == 3 then
  301. local Box = Instance.new("SelectionBox", Avatar)
  302. Box.Adornee = Avatar
  303. Box.Transparency = 0.4
  304. Box.Color = BrickColor.new(Settings.Colors.KingAvatarContrastColor)
  305. end
  306. end
  307. end
  308. coroutine.resume(coroutine.create(function() while wait() do
  309. Avatar:BreakJoints()
  310. BP.position = Person.Character.Torso.CFrame:toWorldSpace(CFrame.new(7,5,-2)).p
  311. BG.cframe = Person.Character.Torso.CFrame
  312. if pcall(function() Decal.Texture = Person.Character.Head.face.Texture end) then else Decal.Texture = "rbxasset://textures/face.png" end
  313. end end))
  314. end
  315. end
  316.  
  317. function ChatFunctions(Message, TheSpeaker)
  318. Speaker = TheSpeaker.Name
  319. for _,Admins in pairs(Admins) do
  320. if Speaker == Admins.Name then
  321. local Rank = Admins.Rank
  322. if string.lower(Message) == ";commands" then
  323. ShowSkulls(Speaker, Settings.Messages.Commands)
  324.  
  325. elseif string.lower(Message) == ";test" then
  326. Speaker = Admins.Name
  327. ShowSkulls(Speaker, {"Test Complete, I Work Fine"})
  328.  
  329. elseif string.lower(Message) == ";listplayers" or string.lower(Message) == ";list players" then
  330. local Names = {}
  331. for _, AllPlayers in pairs (Players:GetPlayers()) do
  332. table.insert(Names, AllPlayers.Name)
  333. end
  334. ShowSkulls(Speaker, Names)
  335.  
  336. elseif string.lower(Message) == ";randomwords" or string.lower(Message) == ";random words" then
  337. SomeRandomWords = {}
  338. for i = 1,10 do
  339. table.insert(SomeRandomWords, Settings.Messages.RandomWords[math.random(1, #Settings.Messages.RandomWords)])
  340. end
  341. ShowSkulls(Admins.Name, SomeRandomWords)
  342.  
  343. elseif string.sub(string.lower(Message),1,6) == ";kill@" then
  344. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),7))
  345. if ChattedPerson ~= nil then
  346. Highlight(ChattedPerson.Name, "New Yeller")
  347. ChattedPerson.Character:BreakJoints()
  348. end
  349.  
  350. elseif string.sub(string.lower(Message),1,9) == ";awesome@" then
  351. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),10))
  352. if ChattedPerson ~= nil then
  353. Highlight(ChattedPerson.Name, "Really blue")
  354. ChattedPerson.Character.Humanoid.MaxHealth = math.huge
  355. end
  356.  
  357. elseif string.sub(string.lower(Message),1,5) == ";sit@" then
  358. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),6))
  359. if ChattedPerson ~= nil then
  360. ChattedPerson.Character.Humanoid.Sit = true
  361. end
  362.  
  363. elseif string.sub(string.lower(Message),1,6) == ";jump@" then
  364. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),7))
  365. if ChattedPerson ~= nil then
  366. ChattedPerson.Character.Humanoid.Jump = true
  367. end
  368.  
  369. elseif string.sub(string.lower(Message),1,7) == ";sleep@" then
  370. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),8))
  371. if ChattedPerson ~= nil then
  372. ChattedPerson.Character.Humanoid.PlatformStand = true
  373. end
  374.  
  375. elseif string.sub(string.lower(Message),1,8) == ";punish@" then
  376. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),9))
  377. if ChattedPerson ~= nil then
  378. ChattedPerson.Character.Parent = game:GetService("Lighting")
  379. end
  380.  
  381. elseif string.sub(string.lower(Message),1,10) == ";unpunish@" then
  382. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),11))
  383. if ChattedPerson ~= nil then
  384. ChattedPerson.Character.Parent = game:GetService("Workspace")
  385. ChattedPerson.Character:MakeJoints()
  386. end
  387.  
  388. elseif string.sub(string.lower(Message),1,7) == ";admin@" and Rank == 3 then
  389. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),8))
  390. if ChattedPerson ~= nil then
  391. Highlight(ChattedPerson.Name, "Bright blue")
  392. table.insert(Admins, {Name = ChattedPerson.Name, Rank = 1})
  393. ShowSkulls(ChattedPerson.Name, {"Your An Admin! :D"})
  394. end
  395.  
  396. elseif string.sub(string.lower(Message),1,8) == ";unadmin@" and Rank == 3 then
  397. Highlight(ChattedPerson.Name, "Really black")
  398. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),9))
  399. if ChattedPerson ~= nil then
  400. table.remove(Admins, {Name = ChattedPerson.Name, Rank = 1})
  401. end
  402.  
  403. elseif string.sub(string.lower(Message),1,7) == ";ping: " and Rank == 2 or string.sub(string.lower(Message),1,7) == ";ping: " and Rank ==3 then
  404. for _,People in pairs(Players:GetChildren()) do
  405. ShowSkulls(People.Name, {"Say release or click anywhere to release", Speaker..": "..string.sub(Message, 8)})
  406. end
  407.  
  408. elseif string.sub(string.lower(Message),1,7) == ";note: " then
  409. ShowSkulls(Speaker, {"("..Speaker..") Note: "..string.sub(Message, 8)})
  410.  
  411. elseif string.sub(string.lower(Message),1,4) == ";die" and Rank == 3 then
  412. ShowSkulls(Speaker, {"Are you shure you want to remove mayhem admin?", "Chat yes for yes", "Chat Anything else for no"})
  413. ForceStop = true
  414. TheSpeaker.Chatted:connect(function(TheMessage)
  415. if string.lower(TheMessage) == "yes" and ForceStop == true then
  416. for _,Things in pairs(Workspace:GetChildren()) do
  417. if Things.Name == "Skull" or Things.Name == "Avatar" then Things:remove() end
  418. end
  419. while wait() do
  420. script.Parent = Workspace
  421. Admins = nil
  422. Settings = nil
  423. script.Disabled = true
  424. script:remove()
  425. end
  426. else ForceStop = false
  427. end
  428. end)
  429.  
  430. elseif string.sub(string.lower(Message),1,8) == ";color: " then
  431. Highlight(Speaker, string.sub(Message, 9))
  432. Settings.Colors.Color = string.sub(Message, 9)
  433. ShowSkulls(Speaker, {"Changed color to: "..string.sub(Message, 9)})
  434.  
  435. elseif string.sub(string.lower(Message),1,6) == ";kick@" then
  436. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),7))
  437. if ChattedPerson ~= nil then
  438. Highlight(ChattedPerson.Name, "Camo")
  439. ChattedPerson:remove()
  440. end
  441. elseif string.sub(string.lower(Message),1,5) == ";ban@" then
  442. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),6))
  443. if ChattedPerson ~= nil then
  444. Highlight(ChattedPerson.Name, "Black")
  445. ChattedPerson:remove()
  446. table.insert(Exiled, {Name = ChattedPerson.Name, Punishment = "Ban"})
  447. ShowSkulls(Speaker, ChattedPerson.Name.." is added to baned")
  448. end
  449. elseif string.sub(string.lower(Message),1,5) == ";lag@" and Rank == 3 then
  450. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),6))
  451. if ChattedPerson ~= nil then
  452. table.insert(Exiled, {Name = ChattedPerson.Name, Punishment = "Lag"})
  453. Lag(ChattedPerson.Name)
  454. ShowSkulls(Speaker, ChattedPerson.Name.." is added to lagged")
  455. Highlight(ChattedPerson.Name, "Really red")
  456. end
  457. elseif string.sub(string.lower(Message),1,9) == ";shutdown" then
  458. game:GetService("Lighting"):remove()
  459.  
  460. elseif string.sub(string.lower(Message),1,11) == ";highlight@" then
  461. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),12))
  462. if ChattedPerson ~= nil then
  463. Highlight(ChattedPerson.Name, Colors.Color)
  464. end
  465.  
  466. elseif string.sub(string.lower(Message),1,4) == ";ff@" then
  467. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),5))
  468. if ChattedPerson ~= nil then
  469. local FF = Instance.new("ForceField", ChattedPerson.Character)
  470. end
  471.  
  472. elseif string.sub(string.lower(Message),1,6) == ";unff@" then
  473. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),7))
  474. if ChattedPerson ~= nil then
  475. for _,Things in pairs(ChattedPerson.Character:GetChildren()) do
  476. if Things.className == "ForceField" then Things:remove() end
  477. end
  478. end
  479.  
  480. elseif string.sub(string.lower(Message),1,5) == ";nbc@" then
  481. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),6))
  482. if ChattedPerson ~= nil then
  483. ChattedPerson.MembershipTypeReplicate = 0
  484. end
  485.  
  486. elseif string.sub(string.lower(Message),1,4) == ";bc@" then
  487. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),5))
  488. if ChattedPerson ~= nil then
  489. ChattedPerson.MembershipTypeReplicate = 1
  490. end
  491.  
  492. elseif string.sub(string.lower(Message),1,5) == ";tbc@" then
  493. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),6))
  494. if ChattedPerson ~= nil then
  495. ChattedPerson.MembershipTypeReplicate = 2
  496. end
  497.  
  498. elseif string.sub(string.lower(Message),1,5) == ";obc@" then
  499. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),6))
  500. if ChattedPerson ~= nil then
  501. ChattedPerson.MembershipTypeReplicate = 3
  502. end
  503.  
  504. elseif string.sub(string.lower(Message),1,10) == ";randombc@" then
  505. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),11))
  506. if ChattedPerson ~= nil then
  507. ChattedPerson.MembershipTypeReplicate = math.random(0,3)
  508. end
  509.  
  510. elseif string.sub(string.lower(Message),1,10) == ";killchat@" then
  511. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),11))
  512. game:GetService("Chat"):Chat(ChattedPerson.Character.Head,"I can't chat or I will die",Enum.ChatColor.Red)
  513. if ChattedPerson ~= nil then
  514. local Chatted = true
  515. ChattedPerson.Chatted:connect(function()
  516. if Chatted == true then
  517. ChattedPerson.Character:BreakJoints()
  518. game:GetService("Chat"):Chat(ChattedPerson.Character.Head,"I died",Enum.ChatColor.Red)
  519. end
  520. Chatted = false
  521. end)
  522. end
  523.  
  524. elseif string.sub(string.lower(Message),1,10) == ";kickchat@" then
  525. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),11))
  526. game:GetService("Chat"):Chat(ChattedPerson.Character.Head,"I can't chat or I will get kicked",Enum.ChatColor.Red)
  527. local Chatted = true
  528. if ChattedPerson ~= nil then
  529. ChattedPerson.Chatted:connect(function()
  530. if Chatted == true then
  531. ChattedPerson:remove()
  532. end
  533. Chatted = false
  534. end)
  535. end
  536.  
  537. elseif string.sub(string.lower(Message),1,9) == ";banchat@" then
  538. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),10))
  539. game:GetService("Chat"):Chat(ChattedPerson.Character.Head,"I can't chat or I will get baned",Enum.ChatColor.Red)
  540. if ChattedPerson ~= nil then
  541. ChattedPerson.Chatted:connect(function()
  542. ShowSkulls(Speaker, {ChattedPerson.Name.." has been added to the baned list"})
  543. table.insert(Exiled, {Name = ChattedPerson.Name, Punishment = "Ban"})
  544. ChattedPerson:remove()
  545. end)
  546. end
  547.  
  548. elseif string.sub(string.lower(Message),1,9) == ";lagchat@" and Rank == 3 then
  549. local ChattedPerson = ScanPlayer(string.sub(string.lower(Message),10))
  550. game:GetService("Chat"):Chat(ChattedPerson.Character.Head,"I can't chat or I will get lagged",Enum.ChatColor.Red)
  551. if ChattedPerson ~= nil then
  552. ChattedPerson.Chatted:connect(function()
  553. game:GetService("Chat"):Chat(ChattedPerson.Character.Head,"I got lagggged",Enum.ChatColor.Red)
  554. ShowSkulls(Speaker, {ChattedPerson.Name.." has been added to the lag list"})
  555. table.insert(Exiled, {Name = ChattedPerson.Name, Punishment = "Lag"})
  556. Lag(ChattedPerson.Name)
  557. end)
  558. end
  559.  
  560. elseif string.sub(string.lower(Message),1,7) == ";avatar" then
  561. CreateAvatar(Players[Speaker])
  562.  
  563. elseif string.sub(string.lower(Message),1,5) == ";tips" then
  564. ShowSkulls(Speaker, {"You can Say ;Commands for commands", "If your avatar is removed or you don't have one, Say ;Avatar", "You can click anywhere to relese", "You can Say release or other phrases to release"})
  565. end -------------------------------------------
  566. end
  567. end
  568. end
  569. ----[[ Show Message ]]----
  570. for _,Peoplez in pairs(Players:GetPlayers()) do
  571. Peoplez.Chatted:connect(function(TheMessage) ChatFunctions(TheMessage, Peoplez) end)
  572. end
  573.  
  574. ----[[ Evaluate Bans and admins entering ]]----
  575.  
  576. function Enter(DerhPerson)
  577. DerhPerson.Chatted:connect(function(TheMessage) ChatFunctions(TheMessage, DerhPerson) end)
  578. for _,AllAdmins in pairs(Admins) do
  579. if DerhPerson.Name == AllAdmins.Name then
  580. wait()
  581. ShowSkulls(AllAdmins.Name, {"Welcome to my Mayhem Admin With "..#Settings.Messages.Commands.." Commands "..AllAdmins.Name.."! Your rank is "..Ranks[AllAdmins.Rank][1].."("..AllAdmins.Rank.."/3).", "Tip: You can say ;Commands for commands and ;Tips for more tips"})
  582. wait(0.1)
  583. if Settings.Values.CreateAvatar == true then CreateAvatar(Players[AllAdmins.Name]) end
  584. end
  585. end
  586. for _,Exiles in pairs(Exiled) do
  587. if DerhPerson.Name == Exiles.Name then
  588. if Exiles.Punishment == "Lag" then Lag(DerhPerson.Name) end
  589. if Exiles.Punishment == "Ban" then DerhPerson:remove() end
  590. end
  591. end
  592. end
  593. Players.PlayerAdded:connect(Enter)
  594.  
  595. ----[[ Evaluate Bans and admins in game ]]----
  596.  
  597. for _,Peoplez in pairs(Players:GetPlayers()) do
  598. for _,AllAdmins in pairs(Admins) do
  599. if Peoplez.Name == AllAdmins.Name then
  600. ShowSkulls(AllAdmins.Name, {"Welcome to my Mayhem Admin With "..#Settings.Messages.Commands.." Commands "..AllAdmins.Name.."! Your rank is "..Ranks[AllAdmins.Rank][1].."("..AllAdmins.Rank.."/3).", "Tip: You can say ;Commands for commands and ;Tips for more tips"})
  601. wait(0.1)
  602. if Settings.Values.CreateAvatar == true then CreateAvatar(Players[AllAdmins.Name]) end
  603. end
  604. end
  605. for _,Exiles in pairs(Exiled) do
  606. if Peoplez.Name == Exiles.Name then
  607. if Exiles.Punishment == "Lag" then Lag(DerhPerson.Name) end
  608. if Exiles.Punishment == "Ban" then Peoplez:remove() end
  609. end
  610. end
  611. end
  612.  
  613. print("Loaded Mayhem Admin By Me With "..#Settings.Messages.Commands.." Commands")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement