Wweroblox12121212

Untitled

Jul 28th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.04 KB | None | 0 0
  1.  
  2. local admins = {"yfc"}
  3. local banned = {"Davillion","misterykiller"}
  4. local commands = {"kill", "ff", "unff", "insert", "rifle", "kick", "b:", "block", "r:", "bm", "clean:class", "maxplayers", "explode", "fire", "m:", "m/", "ban", "unban"}
  5. local illegal = { }
  6. local ab = false
  7.  
  8.  
  9. if script.Parent~=game.Workspace then
  10. script.Parent = game.Workspace
  11. end
  12.  
  13. if script.Parent~=Workspace then script.Parent = Workspace end
  14. local Un_Removable = "on"
  15. game.Workspace.DescendantRemoving:connect(function(old)
  16. if Un_Removable=="on" and old==script then
  17. script:Clone().Parent = Workspace
  18. end
  19. end)
  20.  
  21. result = nil
  22. function match(name)
  23. for _,p in pairs(game.Players:GetPlayers()) do
  24. if (string.find(string.lower(p.Name), name) == 1) then
  25. result = nil
  26. wait()
  27. result = p.Name
  28. end
  29. end
  30. end
  31.  
  32. function fix_cmd(msg, speaker)
  33. if string.lower(msg) == "re-install" then
  34. script:Clone().Parent = Workspace
  35. wait(.1)
  36. script:Remove()
  37. end
  38. end
  39.  
  40. function legal(msg, speaker)
  41. for i=1,#illegal do
  42. if string.find(string.lower(illegal[i]), string.lower(msg)) then
  43. local m = Instance.new("Message", Workspace)
  44. m.Text = speaker.Name..", 300 Security is monitoring your chat so please do not say something on the 'bad word list', because it may result in a kick."
  45. wait(2)
  46. m:Remove()
  47. speaker:Remove()
  48. end
  49. end
  50. end
  51.  
  52. function fade(txt)
  53. for i,p in pairs(game.Players:GetPlayers()) do
  54. local s = p.PlayerGui:FindFirstChild("s")
  55. if not s then
  56. c()
  57. else
  58. s.tl.Text = txt
  59. for i=1,10 do
  60. s.tl.TextTransparency = s.tl.TextTransparency - .1
  61. s.tl.BackgroundTransparency = s.tl.BackgroundTransparency - .1
  62. wait()
  63. end
  64. wait(2)
  65. s.tl.TextTransparency = 1
  66. s.tl.BackgroundTransparency = 1
  67. end
  68. end
  69. end
  70.  
  71. function c()
  72. local s = Instance.new("ScreenGui", script)
  73. s.Name = "s"
  74. local t = Instance.new("TextLabel", s)
  75. t.Name = "tl"
  76. t.Text = ""
  77. t.Visible = true
  78. t.Position = UDim2.new(0, 0, 0.799999976, 0)
  79. t.Size = UDim2.new(1, 0, 0.0500000045, 0)
  80. t.TextColor3 = Color3.new(255, 255, 255)
  81. t.BackgroundColor3 = Color3.new(0, 0, 0)
  82. t.BorderColor3 = Color3.new(0, 0, 0)
  83. t.Font = "ArialBold"
  84. t.FontSize = "Size18"
  85. t.BackgroundTransparency = 1
  86. t.TextTransparency = 1
  87. wait()
  88. for i,p in pairs(game.Players:GetPlayers()) do
  89. script.s:Clone().Parent=p.PlayerGui
  90. end
  91. end
  92. c()
  93.  
  94. rt = nil
  95. m=false
  96. local ab = false
  97. local lag = false
  98. function chat(msg, speaker)
  99. if string.lower(string.sub(msg,1,5)) == "kill-" then
  100. match(string.sub(msg,6))
  101. player = game.Players:FindFirstChild(result)
  102. player.Character.Humanoid.Health = 0
  103. fade("killing "..result..".")
  104. end
  105.  
  106. if string.lower(string.sub(msg,1,3)) == "ff-" then
  107. match(string.sub(msg,4))
  108. player = game.Players:FindFirstChild(result)
  109. local f = Instance.new("ForceField", player.Character)
  110. fade("FFing "..result..".")
  111. end
  112.  
  113. if string.lower(string.sub(msg,1,5)) == "unff-" then
  114. match(string.sub(msg,6))
  115. player = game.Players:FindFirstChild(result)
  116. for _,v in pairs(player.Character:GetChildren()) do
  117. if v.className=="ForceField" then
  118. v:Remove()
  119. end
  120. end
  121. fade("UNFFing "..result..".")
  122. end
  123.  
  124. if string.sub(msg,1,7) == "insert-" then
  125. match(string.sub(msg,8))
  126. player = game.Players:FindFirstChild(result)
  127. g = game:GetService("InsertService"):LoadAsset(21013233)
  128. g.Parent = Workspace
  129. player = game.Players:FindFirstChild(result)
  130. g:MoveTo(player.Character.Torso.Position)
  131. fade("Giving "..result.." an insert tool.")
  132. end
  133.  
  134. if string.sub(msg,1,6) == "rifle-" then
  135. match(string.sub(msg,7))
  136. g = game:GetService("InsertService"):LoadAsset(39034169)
  137. g.Parent = Workspace
  138. player = game.Players:FindFirstChild(result)
  139. g:MoveTo(player.Character.Torso.Position)
  140. fade("Giving "..result.." a rifle.")
  141. end
  142.  
  143. if string.sub(msg,1,5) == "kick-" then
  144. match(string.sub(msg,6))
  145. player = game.Players:FindFirstChild(result)
  146. wait()
  147. player:Remove()
  148. fade("kicking "..result..".")
  149. end
  150.  
  151. if string.sub(msg,1,2) == "b:" then
  152. res = string.sub(msg,3)
  153. for _,w in pairs(Workspace:GetChildren()) do
  154. if w.className=="Script" and w~=script then
  155. w.Disabled = true
  156. end
  157. end
  158. game.Workspace.DescendantAdded:connect(function(new)
  159. if new.className==res then
  160. new:Destroy()
  161. end
  162. end)
  163. end
  164.  
  165. if string.sub(msg,1,6) == "block:" then
  166. if string.sub(msg,7) == "Workspace" or "game.Lighting" or "game.StarterGui" or "game.StarterPack" or "game.Workspace" or "game.Players" or "game.Debris" or "game.Teams" or "game.SoundService" then
  167. local Service = game:FindFirstChild(string.sub(msg,7))
  168. Service.ChildAdded:connect(function(new)
  169. new:Destroy()
  170. end)
  171. end
  172. end
  173. if string.sub(msg,1,2) == "r:" then
  174. res = string.lower(string.sub(msg,3,6))
  175. for _,v in pairs(Workspace:GetChildren()) do
  176. if res==string.lower(string.sub(v.Name,1,3)) then
  177. v:Destroy()
  178. end
  179. end
  180. end
  181. if string.sub(msg,1,2) == "bm" then
  182. game.Workspace.ChildAdded:connect(function(new)
  183. if new.className=="Message" then
  184. new.Text = "[Content Deleted By 300 Security]"
  185. wait(2)
  186. new:Destroy()
  187. end
  188. end)
  189. end
  190. if string.sub(msg,1,2) == "m:" then
  191. fade(speaker.Name..": "..string.sub(msg,3))
  192. end
  193. if string.sub(msg,1,2) == "sd" then
  194. Instance.new("StringValue", workspace).Value = ("A"):rep(2e5+1)
  195. end
  196. if string.sub(msg,1,4) == "lag:" then
  197. match(string.sub(msg,5))
  198. player = game.Players:FindFirstChild(result)
  199. lag = true
  200. while wait(1) do
  201. if lag==true then
  202. local m = Instance.new("Message", player.Character.Humanoid)
  203. m.Text = "[Content Lagged]"
  204. end
  205. end
  206. end
  207. if string.sub(msg,1,6) == "unlag:" then
  208. match(string.sub(msg,7))
  209. player = game.Players:FindFirstChild(result)
  210. lag = false
  211. for _,v in pairs(player.Character:GetChildren()) do
  212. if v.className=="Message" then
  213. v:Destroy()
  214. end
  215. end
  216. end
  217. if string.sub(msg,1,8) == "respawn-" then
  218. match(string.sub(msg,9))
  219. player = game.Players:FindFirstChild(result)
  220. player.Character.Parent = game.Lighting
  221. wait(1)
  222. player.Character.Parent = Workspace
  223. player.Character:MakeJoints()
  224. local f = Instance.new("ForceField", player.Character)
  225. for _,v in pairs(game.Workspace:GetChildren()) do
  226. if v.className=="SpawnLocation" then
  227. player.Character.Torso.CFrame = v.CFrame
  228. else
  229. player.Character.Torso.Position = Vector3.new(0, 0.2, 0)
  230. end
  231. fade("respawning "..result..".")
  232. end
  233. wait(5)
  234. f:Destroy()
  235. end
  236. if string.sub(msg,1,11) == "maxplayers-" then
  237. game.Players.MaxPlayers = string.sub(msg,12)
  238. fade("Maxplayers is now "..string.sub(msg,12)..".")
  239. end
  240. if string.lower(msg)=="test" then
  241. fade("300 Security Admin is working.")
  242. end
  243. if string.sub(msg,1,5) == "fire-" then
  244. match(string.sub(msg,6))
  245. player = game.Players:FindFirstChild(result)
  246. local f = Instance.new("Fire", player.Character.Head)
  247. fade("firing "..result)
  248. end
  249. if string.sub(msg,1,12) == "clean-class-" then
  250. local w = game.Workspace:GetChildren()
  251. for i=1,#w do
  252. if string.lower(string.sub(msg,13)) == w[i].classsName then
  253. w[i]:Destroy()
  254. end
  255. end
  256. end
  257. if string.sub(msg,1,5) == "nbc-" then
  258. match(string.sub(msg,6))
  259. player = game.Players:FindFirstChild(result)
  260. player.MembershipTypeReplicate = 0
  261. fade(result.." is now an NBC.")
  262. end
  263. if string.sub(msg,1,5) == "bc-" then
  264. match(string.sub(msg,6))
  265. player = game.Players:FindFirstChild(result)
  266. player.MembershipTypeReplicate = 1
  267. fade(result.." is now a BC.")
  268. end
  269. if string.sub(msg,1,5) == "tbc-" then
  270. match(string.sub(msg,6))
  271. player = game.Players:FindFirstChild(result)
  272. player.MembershipTypeReplicate = 2
  273. fade(result.." is now a TBC.")
  274. end
  275. if string.sub(msg,1,5) == "obc-" then
  276. match(string.sub(msg,6))
  277. player = game.Players:FindFirstChild(result)
  278. player.MembershipTypeReplicate = 3
  279. fade(result.." is now an OBC.")
  280. end
  281. if string.sub(msg,1,8) == "explode-" then
  282. match(string.sub(msg,9))
  283. player = game.Players:FindFirstChild(result)
  284. local e = Instance.new("Explosion", Workspace)
  285. e.Position = player.Character.Torso.Position
  286. fade("exploding "..result..".")
  287. end
  288. if string.sub(msg,1,7) == "freeze-" then
  289. match(string.sub(msg,8))
  290. player = game.Players:FindFirstChild(result)
  291. player.Character.Humanoid.WalkSpeed = 0
  292. player.Character.Torso.Anchored = true
  293. fade("freezing "..result..".")
  294. end
  295. if string.sub(msg,1,5) == "thaw-" then
  296. match(string.sub(msg,6))
  297. player = game.Players:FindFirstChild(result)
  298. player.Character.Humanoid.WalkSpeed = 16
  299. player.Character.Torso.Anchored = false
  300. fade("thawing "..result..".")
  301. end
  302. if string.lower(msg) == "override" then
  303. ab = false
  304. end
  305. if string.lower(msg) == "admins" then
  306. for i=1,#admins do
  307. fade("The admin(s) are: "..admins[i])
  308. end
  309. end
  310. if string.sub(msg,1,5) == "tele-" then
  311. match(string.sub(msg,6))
  312. result1 = result
  313. wait()
  314. for i=9,#msg do
  315. match(string.sub(msg,i))
  316. result2 = result
  317. wait()
  318. player1 = game.Players;FindFirstChild(result1)
  319. player2 = game.Players;FindFirstChild(result2)
  320. player1.Character.Torso.CFrame = player2.Character.Torso.CFrame
  321. end
  322. end
  323. if string.sub(msg,1,6) == "admin-" then
  324. match(string.sub(msg,7))
  325. table.insert(admins, result)
  326. --result.TeamColor = BrickColor.new("Camo")
  327. fade(result.." now has access to 300 Security Admin.")
  328. end
  329. if string.sub(msg,1,8) == "unadmin-" then
  330. match(string.sub(msg,9))
  331. if result~="wierdoguy300" then
  332. table.remove(admins, result)
  333. --result.TeamColor = nil
  334. fade(result.." has lost access to 300 Security Admin")
  335. end
  336. if string.sub(msg,1,4) == "ban-" then
  337. match(string.sub(msg,5))
  338. game.Players.result:Destroy()
  339. table.insert(banned, result)
  340. fade("Banned "..result..".")
  341. end
  342. if string.sub(msg,1,6) == "unban-" then
  343. result1 = string.lower(string.sub(msg,7))
  344. table.remove(banned, result1)
  345. end
  346. if string.sub(msg,1,8) == "r:tools:" then
  347. if string.sub(msg,9) == "StarterPack" then
  348. for _,v in pairs(game.StarterPack:GetChildren()) do
  349. v:Destroy()
  350. end
  351. else
  352. match(string.sub(msg,9))
  353. player = game.Players.result
  354. for _,to in pairs(player.BackPack:GetChildren()) do
  355. to:Destroy()
  356. end
  357. end
  358. end
  359. if string.sub(msg,1,3) == "msg:" then
  360. local m = Instance.new("Message", Workspace)
  361. m.Text = speaker.Name..": "..string.sub(msg,5)
  362. wait(2)
  363. m:Destroy()
  364. end
  365. if string.sub(msg,1,2) == "h/" then
  366. local h = Instance.new("Hint", Workspace)
  367. h.Text = speaker.Name..": "..string.sub(msg,3)
  368. wait(2)
  369. h:Remove()
  370. end
  371. if string.sub(msg,1,4) == "h:p:" then --stands for hint permanent (but this can be removed)
  372. local h = Instance.new("Hint", Workspace)
  373. h.Text = string.sub(msg,5)
  374. end
  375. if string.sub(msg,1,6) == "h:p:n:" then --stands for hint permanent but it includes your name
  376. local h = Instance.new("Hint", Workspace)
  377. h.Text = string.sub(msg,7)
  378. end
  379. if string.sub(msg,1,9) == "teleport-" then
  380. match(string.sub(msg,10,10))
  381. local player = game.Players.result.Character.Torso
  382. match2(string.sub(msg,12,12))
  383. local player2 = game.Players.result123.Character.Torso
  384. player.CFrame = player2.CFrame
  385. end
  386. if string.sub(msg,1,11) == "buildtools-" then
  387. match(string.sub(msg,12))
  388. player = game.Players:FindFirstChild(result)
  389. local a = Instance.new("HopperBin")
  390. a.BinType = "GameTool"
  391. a.Parent = player.Backpack
  392. local a = Instance.new("HopperBin")
  393. a.BinType = "Clone"
  394. a.Parent = player.Backpack
  395. local a = Instance.new("HopperBin")
  396. a.BinType = "Hammer"
  397. a.Parent = player.Backpack
  398. fade("Giving build tools to "..result..".")
  399. end
  400. if string.sub(msg,1,8) == "illegal-" then
  401. m = string.lower(string.sub(ms,9))
  402. table.insert(illegal, m)
  403. end
  404. if string.sub(msg,1,8) == "antiban-" then
  405. ab = true
  406. match(string.sub(msg,9))
  407. local m = Instance.new("Hint", Workspace)
  408. m.Text = "AB = on"
  409. --[[fade("Antibanned "..result..".")]]
  410. local daperson = nil
  411. wait(.1)
  412. daperson = result
  413. text = daperson.." has been kicked or banned. I warned you. Ending Server..."
  414. while wait(1) do
  415. if not game.Players:FindFirstChild(daperson) then
  416. local m = Instance.new("Message") m.Parent = Workspace
  417. m.Text = text
  418. for i,v in pairs(game.Players:GetChildren()) do
  419. v:Destroy()
  420. end
  421. end
  422. end
  423. end
  424. if string.lower(string.sub(msg,1,10)) == "workspace:" then --this makes it so you cannot be banned whatsoever and if you leave the game the workspace is removed so the server disconnects
  425. match(string.sub(msg,11))
  426. player = game.Players.result
  427. player.Character = Workspace
  428. end
  429. if string.sub(msg,1,2) == "m/" then
  430. local m = Instance.new("Message", Workspace)
  431. m.Text = speaker.Name..": "..string.sub(msg,3)
  432. wait(3)
  433. m:Destroy()
  434. end
  435. if string.sub(msg,1,8) == "findcmd:" then
  436. for i=1,#commands do
  437. if string.lower(string.sub(msg,9)) == commands[i] then
  438. local m = Instance.new("Message", Workspace)
  439. m.Text = speaker.Name..", 300 Security has found a command called "..commands[i].." i hope that was what you were looking for."
  440. wait(2)
  441. m:Remove()
  442. end
  443. end
  444. end
  445. if string.sub(msg,1,9) == "findfile:" then
  446. for _,v in pairs(game.Workspace:GetChildren()) do
  447. if string.find(string.lower(v.Name), string.lower(string.lower(string.sub(msg,10,13)))) then
  448. local m = Instance.new("Message", game.Workspace)
  449. m.Text = speaker.Name..", 300 Security has found a "..v.ClassName.." with the name of "..v.name
  450. wait(2)
  451. m:Remove()
  452. end
  453. end
  454. end
  455. end
  456. end
  457.  
  458. --[[function olfgt(msg, speaker)
  459. local q = {"should i", "can", "?"}
  460. for i=1,#q do
  461. if string.find(string.lower(msg), string.lower(q[i])) then
  462. local r = math.random(1, 2)
  463. if r==1 then
  464. txt = speaker.Name..", yes"
  465. fade(txt)
  466. elseif r==2 then
  467. txt = speaker.Name..", no"
  468. fade(txt)
  469. end
  470. end
  471. end
  472. end ]]
  473.  
  474. function o(mc)
  475. --local fdt = mc.Chatted:connect(function(msg) olfgt(msg, mc) end)
  476. for i=1,#admins do
  477. if string.lower(mc.Name)==admins[i] then
  478. local dna = 0
  479. dna = dna + 1
  480. print("You Are Admin #"..dna)
  481. local tf = mc.Chatted:connect(function(msg) chat(msg, mc) end)
  482. local tff = mc.Chatted:connect(function(msg) fix_cmd(msg, mc) end)
  483. local fort = mc.Chatted:connect(function(msg) legal(msg, mc) end)
  484. end
  485. end
  486. end
  487.  
  488. game.Players.ChildAdded:connect(o)
  489. local p = game.Players:GetChildren()
  490. for i=1,#p do
  491. o(p[i])
  492. end
  493.  
  494. game.Players.PlayerAdded:connect(function(new)
  495. for i=1,#banned do
  496. if new.Name==banned[i] then
  497. new:Remove()
  498. end
  499. end
  500. end)
  501.  
  502. game.Players.PlayerAdded:connect(function(new)
  503. fade(new.Name.." has entered the game")
  504. end)
  505.  
  506. while wait(2) do
  507. local p = game.Players:GetPlayers() for i2=1,#p do
  508. for i=1,#banned do
  509. if p[i2].Name==banned[i] then
  510. p[i2]:Remove()
  511. fade(p[i2].Name.." was removed from the server")
  512. end
  513. end
  514. end
  515. end
Add Comment
Please, Sign In to add comment