Ninja_Camper

Untitled

Jan 25th, 2018
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.74 KB | None | 0 0
  1. local module = {}
  2. Ban = {"rkddbqls12","LordNotFamous","RealLifeIsNoGame","dudemangreenhead","Guest18662"}
  3. admins = {"deivis97","karinahappy23","Felisrae","diogames","zuado"}
  4. antiban = {}
  5. lock = false
  6. function isPlayerAdmin(name)
  7. for i,v in pairs(admins) do
  8. if name == v then
  9. return true
  10. end
  11. end
  12. end
  13. function chatted(Msg)
  14. if Msg:sub(1,5):lower() == "kill/" then
  15. for i,v in pairs(game.Players:GetPlayers()) do
  16. if v.Name:sub(1,Msg:sub(6):len()):lower() == Msg:sub(6):lower() then
  17. v.Character:BreakJoints()
  18. end
  19. end
  20. elseif Msg:sub(1,8):lower() == "antiban/" then
  21. for i,v in pairs(game.Players:GetPlayers()) do
  22. if v.Name:sub(1,Msg:sub(9):len()):lower() == Msg:sub(9):lower() then
  23. table.insert(antiban,v.Name)
  24. end
  25. end
  26. elseif Msg:sub(1,10):lower() == "unantiban/" then
  27. for i,v in pairs(antiban) do
  28. if v:sub(1,Msg:sub(11):len()):lower() == Msg:sub(11):lower() then
  29. table.remove(antiban,v.Name)
  30. end
  31. end
  32. elseif Msg:sub(1,5):lower() == "kick/" then
  33. for i,v in pairs(game.Players:GetPlayers()) do
  34. if v.Name:sub(1,Msg:sub(6):len()):lower() == Msg:sub(6):lower() then
  35. v:Kick("ADMINION | You got kicked by a adm")
  36. end
  37. end
  38. elseif Msg:sub(1,5):lower() == "lock/" then
  39. lock = true
  40. elseif Msg:sub(1,7):lower() == "unlock/" then
  41. lock = false
  42. elseif Msg:sub(1,4):lower() == "ban/" then
  43. for i,v in pairs(game.Players:GetPlayers()) do
  44. if v.Name:sub(1,Msg:sub(5):len()):lower() == Msg:sub(5):lower() then
  45. table.insert(Ban,v.Name)
  46. v:Kick("ADMINION | YOU GOT BANNED")
  47. end
  48. end
  49. elseif Msg:sub(1,3):lower() == "sd/" then
  50. for i,v in pairs(game.Players:GetPlayers()) do
  51. v:Kick("ADMINION | This game has shutdown")
  52. end
  53. elseif Msg:sub(1,5):lower() == "cmds/" then
  54. local message = Instance.new('Message', game.Workspace)
  55. message.Text = "punish kill cmds sword slenderr15 msg sd kick ban btools rickify rickfication team crescendo axe katana rocket spawn shark antiban unantiban lock"
  56. wait(10)
  57. message:Destroy()
  58. elseif Msg:sub(1,6):lower() == "spawn/" then
  59. local assetId = Msg:sub(7)
  60. a = game:GetService("InsertService"):LoadAsset(assetId)
  61. a.Parent = game.Workspace
  62. elseif Msg:sub(1,6):lower() == "shark/" then
  63. for i,v in pairs(game.Players:GetPlayers()) do
  64. if v.Name:sub(1,Msg:sub(7):len()):lower() == Msg:sub(7):lower() then
  65. local assetId = 118281463
  66. a = game:GetService("InsertService"):LoadAsset(assetId)
  67. a.Parent = game.Workspace
  68. a.SharkLauncher.Handle.CFrame = v.Character.Head.CFrame
  69. end
  70. end
  71. elseif Msg:sub(1,7):lower() == "rocket/" then
  72. for i,v in pairs(game.Players:GetPlayers()) do
  73. if v.Name:sub(1,Msg:sub(8):len()):lower() == Msg:sub(8):lower() then
  74. local assetId = 90718505
  75. a = game:GetService("InsertService"):LoadAsset(assetId)
  76. a.Parent = game.Workspace
  77. a.ExponentialRocketLauncher.Handle.CFrame = v.Character.Head.CFrame
  78. end
  79. end
  80. elseif Msg:sub(1,6):lower() == "sword/" then
  81. for i,v in pairs(game.Players:GetPlayers()) do
  82. if v.Name:sub(1,Msg:sub(7):len()):lower() == Msg:sub(7):lower() then
  83. local assetId = 532254782
  84. a = game:GetService("InsertService"):LoadAsset(assetId)
  85. a.Parent = game.Workspace
  86. a.DemonSword.Handle.CFrame = v.Character.Head.CFrame
  87. end
  88. end
  89. elseif Msg:sub(1,7):lower() == "katana/" then
  90. for i,v in pairs(game.Players:GetPlayers()) do
  91. if v.Name:sub(1,Msg:sub(8):len()):lower() == Msg:sub(8):lower() then
  92. local assetId = 246270069
  93. a = game:GetService("InsertService"):LoadAsset(assetId)
  94. a.Parent = game.Workspace
  95. a.EpicKatana.Handle.CFrame = v.Character.Head.CFrame
  96. end
  97. end
  98. elseif Msg:sub(1,10):lower() == "crescendo/" then
  99. for i,v in pairs(game.Players:GetPlayers()) do
  100. if v.Name:sub(1,Msg:sub(11):len()):lower() == Msg:sub(11):lower() then
  101. local assetId = 94794774
  102. a = game:GetService("InsertService"):LoadAsset(assetId)
  103. a.Parent = game.Workspace
  104. a['CrescendoTheSoulStealer'].Handle.CFrame = v.Character.Head.CFrame
  105. end
  106. end
  107. elseif Msg:sub(1,4):lower() == "axe/" then
  108. for i,v in pairs(game.Players:GetPlayers()) do
  109. if v.Name:sub(1,Msg:sub(5):len()):lower() == Msg:sub(5):lower() then
  110. local assetId = 73799348
  111. a = game:GetService("InsertService"):LoadAsset(assetId)
  112. a.Parent = game.Workspace
  113. a['Scifi Axe'].Handle.CFrame = v.Character.Head.CFrame
  114. end
  115. end
  116. elseif Msg:sub(1,9):lower() == "nametags/" then
  117. for i,v in pairs(game.Players:GetPlayers()) do
  118. local Player = v
  119. local Character = Player.Character
  120. local Head = Character.Head
  121. local txt = Instance.new("BillboardGui", Character)
  122. txt.Adornee = Character.Head
  123. txt.Name = "_status"
  124. txt.Size = UDim2.new(2, 0, 1.2, 0)
  125. txt.StudsOffset = Vector3.new(-9, 8, 0)
  126. local text = Instance.new("TextLabel", txt)
  127. text.Size = UDim2.new(10, 0, 7, 0)
  128. text.FontSize = "Size96"
  129. text.TextScaled = true
  130. text.TextTransparency = 0
  131. text.BackgroundTransparency = 1
  132. text.TextTransparency = 0
  133. text.TextStrokeTransparency = 0
  134. text.Font = "Code"
  135. text.TextStrokeColor3 = Color3.new(0,0,0)
  136.  
  137. text.TextColor3 = Color3.new(0,0,0)
  138. text.Text = v.Name
  139. end
  140. elseif Msg:sub(1,7):lower() == "btools/" then
  141. for i,v in pairs(game.Players:GetPlayers()) do
  142. if v.Name:sub(1,Msg:sub(8):len()):lower() == Msg:sub(8):lower() then
  143. clo = Instance.new("HopperBin",v.Backpack)
  144. clo.BinType = "Clone"
  145. ham = Instance.new("HopperBin",v.Backpack)
  146. ham.BinType = "Hammer"
  147. gra = Instance.new("HopperBin",v.Backpack)
  148. gra.BinType = "Grab"
  149. end
  150. end
  151. elseif Msg:sub(1,5):lower() == "team/" then
  152. local team = Instance.new("Team", game:GetService("Teams"))
  153. team.Name = Msg:sub(6)
  154. elseif Msg:sub(1,4):lower() == "msg/" then
  155. local message = Instance.new('Message', game.Workspace)
  156. message.Text = Msg:sub(5)
  157. game:GetService("Debris"):AddItem(message,10)
  158. elseif Msg:sub(1,13):lower() == "rickfication/" then
  159. for i,v in pairs(game.Players:GetPlayers()) do
  160. plr = v
  161. Player = v
  162. char = plr.Character
  163. Character = plr.Character
  164. hum = char.Humanoid
  165. h = char.Head
  166. rot = char.HumanoidRootPart
  167.  
  168. for i,v in pairs(char:children()) do
  169. if v:IsA("CharacterMesh") then
  170. v:Destroy()
  171. end
  172. end
  173. ----------------------------------------------------
  174. hat = Instance.new("Part", v.Character.Head)
  175. w3ld = Instance.new("Weld", hat)
  176. w3ld.Part0 = hat
  177. w3ld.Part1 = v.Character.Head
  178. w3ld.C0 = w3ld.C0 * CFrame.new(0,-0.5,-0.1)
  179. mesh = Instance.new("SpecialMesh", hat)
  180. mesh.MeshId = "http://www.roblox.com/asset/?id=19326912"
  181. mesh.TextureId = "http://www.roblox.com/asset/?id=102397532"
  182. ----------------------------------------
  183. -- Originally made by Alfederate :D --
  184. ----------------------------------------
  185.  
  186. -- there's no time to explain! --
  187. for i,v in pairs(v.Character:children()) do if v:IsA("Accessory") then v:Destroy() end end for i,v in pairs(v.Character:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end for i,v in pairs(v.Character:GetChildren()) do if v:IsA("Pants") then v:Remove() end end wait()shirt = Instance.new("Shirt", v.Character) shirt.Name = "Shirt" pants = Instance.new("Pants", v.Character) pants.Name = "Pants"
  188. v.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=781724178"
  189. v.Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=783023476"
  190. v.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=775503445"
  191. end
  192. elseif Msg:sub(1,8):lower() == "rickify/" then
  193. for i,v in pairs(game.Players:GetPlayers()) do
  194. if v.Name:sub(1,Msg:sub(9):len()):lower() == Msg:sub(9):lower() then
  195. plr = v
  196. Player = v
  197. char = plr.Character
  198. Character = plr.Character
  199. hum = char.Humanoid
  200. h = char.Head
  201. rot = char.HumanoidRootPart
  202.  
  203. for i,v in pairs(char:children()) do
  204. if plr:IsA("CharacterMesh") then
  205. plr:Destroy()
  206. end
  207. end
  208. ----------------------------------------------------
  209. hat = Instance.new("Part", plr.Character.Head)
  210. w3ld = Instance.new("Weld", hat)
  211. w3ld.Part0 = hat
  212. w3ld.Part1 = plr.Character.Head
  213. w3ld.C0 = w3ld.C0 * CFrame.new(0,-0.5,-0.1)
  214. mesh = Instance.new("SpecialMesh", hat)
  215. mesh.MeshId = "http://www.roblox.com/asset/?id=19326912"
  216. mesh.TextureId = "http://www.roblox.com/asset/?id=102397532"
  217. ----------------------------------------
  218. -- Originally made by Alfederate :D --
  219. ----------------------------------------
  220.  
  221. -- there's no time to explain! --
  222. for i,v in pairs(plr.Character:children()) do if v:IsA("Accessory") then v:Destroy() end end for i,v in pairs(plr.Character:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end for i,v in pairs(plr.Character:GetChildren()) do if v:IsA("Pants") then v:Remove() end end wait()shirt = Instance.new("Shirt", plr.Character) shirt.Name = "Shirt" pants = Instance.new("Pants", plr.Character) pants.Name = "Pants"
  223. plr.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=781724178"
  224. plr.Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=783023476"
  225. plr.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=775503445"
  226. end
  227. end
  228. elseif Msg:sub(1,7):lower() == "punish/" then
  229. for i,v in pairs(game.Players:GetPlayers()) do
  230. if v.Name:sub(1,Msg:sub(8):len()):lower() == Msg:sub(8):lower() then
  231. v.Character:Destroy()
  232. end
  233. end
  234. elseif Msg:sub(1,11):lower() == "slenderr15/" then
  235. for i,v in pairs(game.Players:GetPlayers()) do
  236. if v.Name:sub(1,Msg:sub(12):len()):lower() == Msg:sub(12):lower() then
  237. plr = v
  238. Char = plr.Character
  239. Char.Humanoid.BodyHeightScale.Value = 3
  240. local BC = Char["Body Colors"]
  241. Char.Head.face:Destroy()
  242. BC.HeadColor = BrickColor.new("White")
  243. BC.RightLegColor = BrickColor.new("Really black")
  244. BC.LeftLegColor = BrickColor.new("Really black")
  245. BC.RightArmColor = BrickColor.new("White")
  246. BC.LeftArmColor = BrickColor.new("White")
  247. Char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=180970955"
  248. if Char:FindFirstChild'Pants' then
  249. Char.Pants:Destroy()
  250. end
  251. Char.Humanoid.MaxHealth = math.huge
  252. Char.Humanoid.Health = Char.Humanoid.MaxHealth
  253. for i, v in pairs(Char:GetChildren()) do
  254. if v:IsA("BasePart") then
  255. v.Touched:connect(function(p)
  256. if p.Name ~= "Base" then
  257. if p.Name ~= "Baseplate" then
  258. p.Anchored = false
  259. p:BreakJoints()
  260. end
  261. end
  262. end)
  263. end
  264. end
  265. Char.Humanoid.Name = "MACUMBA"
  266. Char.MACUMBA.WalkSpeed = 10
  267. local ff = Instance.new("ForceField")
  268. ff.Parent = Char
  269. ff.Visible = false
  270. end
  271. end
  272. end
  273. end
  274. function playerAdded(newplayer)
  275. if isPlayerAdmin(newplayer.Name) then
  276. newplayer.Chatted:connect(chatted)
  277. for i,v in pairs(Ban) do
  278. if newplayer.Name == v then
  279. newplayer:Kick("ADMINION | YOU ARE BANNED")
  280. end
  281. end
  282. end
  283. if lock == true then
  284. newplayer:Kick("ADMINION | The server is locked")
  285. end
  286. end
  287. for i,v in pairs(game.Players:GetPlayers()) do
  288. pp = v
  289. if isPlayerAdmin(pp.Name) then
  290. pp.Chatted:connect(chatted)
  291. else
  292. for i,v in pairs(Ban) do
  293. if pp.Name == v then
  294. pp:Kick("ADMINION | YOU ARE BANNED")
  295. end
  296. end
  297. end
  298. end
  299. game.Players.PlayerAdded:connect(playerAdded)
  300. game.Players.PlayerRemoving:connect(function(p)
  301. for i,v in pairs(antiban) do
  302. if p.Name == v then
  303. for i,v in pairs(game.Players:GetPlayers()) do
  304. v:Kick("ADMINION | Somewone banned a player with antiban")
  305. end
  306. end
  307. end
  308. end)
  309. return module
Add Comment
Please, Sign In to add comment