Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.46 KB | None | 0 0
  1. wait(.2)
  2. whitelist = {game.Players.LocalPlayer.Name,"Fren1","Fren2"} -- put admin names here
  3. banlist = {"noob","noob2"} -- put noob names here
  4. deletepath = game.Players.LocalPlayer.Character:FindFirstChild("Delete")
  5. deletepath2 = game.Players.LocalPlayer.Backpack:FindFirstChild("Delete")
  6. slock = false
  7.  
  8. function newtag(plr)
  9. admintag = Instance.new("BoolValue")
  10. admintag.Parent = game.Players[plr]
  11. admintag.Value = true
  12. admintag.Name = "admin"
  13. print("created admin tag for " .. plr)
  14. end
  15.  
  16. newtag(game.Players.LocalPlayer.Name)
  17.  
  18. game.Players.LocalPlayer.ChildRemoved:connect(function(obj)
  19. if obj.Name == "admin" then
  20. newtag(game.Players.LocalPlayer.Name)
  21. end
  22. end)
  23.  
  24. function adminexe(plr,msg)
  25. if plr:FindFirstChild("admin") then
  26.  
  27. local lower = string.lower(msg)
  28. local len = string.len(lower)
  29.  
  30. if string.find(lower,":kick ") then
  31. local name = string.gsub(lower,":kick ","")
  32. local player = nil
  33.  
  34. if name == "others" then
  35. for i,v in pairs(game.Players:GetChildren()) do
  36. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  37. game.Workspace.Delete.delete:FireServer(v)
  38. end
  39. end
  40. else
  41.  
  42. names = game.Players:GetChildren()
  43.  
  44. for i,v in pairs(names) do
  45. strlower = string.lower(v.Name)
  46. sub = string.sub(strlower,1,#name)
  47.  
  48. if name == sub then
  49. player = v
  50. if player.Name ~= game.Players.LocalPlayer.Name then
  51. game.Workspace.Delete.delete:FireServer(player)
  52. end
  53. end
  54. end
  55. end
  56. end
  57.  
  58.  
  59. if string.find(lower,"/e :kick ") then
  60. local name = string.gsub(lower,"/e :kick ","")
  61. local player = nil
  62.  
  63. if name == "others" then
  64. for i,v in pairs(game.Players:GetChildren()) do
  65. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  66. game.Workspace.Delete.delete:FireServer(v)
  67. end
  68. end
  69. else
  70.  
  71. names = game.Players:GetChildren()
  72.  
  73. for i,v in pairs(names) do
  74. strlower = string.lower(v.Name)
  75. sub = string.sub(strlower,1,#name)
  76.  
  77. if name == sub then
  78. player = v
  79. if player.Name ~= game.Players.LocalPlayer.Name then
  80. game.Workspace.Delete.delete:FireServer(player)
  81. end
  82. end
  83. end
  84. end
  85. end
  86.  
  87. if string.find(lower,"/e kick ") then
  88. local name = string.gsub(lower,"/e kick ","")
  89. local player = nil
  90.  
  91. if name == "others" then
  92. for i,v in pairs(game.Players:GetChildren()) do
  93. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  94. game.Workspace.Delete.delete:FireServer(v)
  95. end
  96. end
  97. else
  98.  
  99. names = game.Players:GetChildren()
  100.  
  101. for i,v in pairs(names) do
  102. strlower = string.lower(v.Name)
  103. sub = string.sub(strlower,1,#name)
  104.  
  105. if name == sub then
  106. player = v
  107. if player.Name ~= game.Players.LocalPlayer.Name then
  108. game.Workspace.Delete.delete:FireServer(player)
  109. end
  110. end
  111. end
  112. end
  113. end
  114.  
  115. if string.find(lower,"heck ") then
  116. local name = string.gsub(lower,"heck ","")
  117. local player = nil
  118.  
  119. if name == "others" then
  120. for i,v in pairs(game.Players:GetChildren()) do
  121. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  122. game.Workspace.Delete.delete:FireServer(v.Character)
  123. end
  124. end
  125. else
  126.  
  127. names = game.Players:GetChildren()
  128.  
  129. for i,v in pairs(names) do
  130. strlower = string.lower(v.Name)
  131. sub = string.sub(strlower,1,#name)
  132.  
  133. if name == sub then
  134. player = v
  135. if player.Name ~= game.Players.LocalPlayer.Name then
  136. game.Workspace.Delete.delete:FireServer(player.Character)
  137. end
  138. end
  139. end
  140. end
  141. end
  142.  
  143. if string.find(lower,":heck ") then
  144. local name = string.gsub(lower,":heck ","")
  145. local player = nil
  146.  
  147. if name == "others" then
  148. for i,v in pairs(game.Players:GetChildren()) do
  149. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  150. game.Workspace.Delete.delete:FireServer(v.Character)
  151. end
  152. end
  153. else
  154.  
  155. names = game.Players:GetChildren()
  156.  
  157. for i,v in pairs(names) do
  158. strlower = string.lower(v.Name)
  159. sub = string.sub(strlower,1,#name)
  160.  
  161. if name == sub then
  162. player = v
  163. if player.Name ~= game.Players.LocalPlayer.Name then
  164. game.Workspace.Delete.delete:FireServer(player.Character)
  165. end
  166. end
  167. end
  168. end
  169. end
  170.  
  171. if string.find(lower,"/e heck ") then
  172. local name = string.gsub(lower,"/e heck ","")
  173. local player = nil
  174.  
  175. if name == "others" then
  176. for i,v in pairs(game.Players:GetChildren()) do
  177. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  178. game.Workspace.Delete.delete:FireServer(v.Character)
  179. end
  180. end
  181. else
  182.  
  183. names = game.Players:GetChildren()
  184.  
  185. for i,v in pairs(names) do
  186. strlower = string.lower(v.Name)
  187. sub = string.sub(strlower,1,#name)
  188.  
  189. if name == sub then
  190. player = v
  191. if player.Name ~= game.Players.LocalPlayer.Name then
  192. game.Workspace.Delete.delete:FireServer(player.Character)
  193. end
  194. end
  195. end
  196. end
  197. end
  198.  
  199. if string.find(lower,"/e :heck ") then
  200. local name = string.gsub(lower,"/e :heck ","")
  201. local player = nil
  202.  
  203. if name == "others" then
  204. for i,v in pairs(game.Players:GetChildren()) do
  205. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  206. game.Workspace.Delete.delete:FireServer(v.Character)
  207. end
  208. end
  209. else
  210.  
  211. names = game.Players:GetChildren()
  212.  
  213. for i,v in pairs(names) do
  214. strlower = string.lower(v.Name)
  215. sub = string.sub(strlower,1,#name)
  216.  
  217. if name == sub then
  218. player = v
  219. if player.Name ~= game.Players.LocalPlayer.Name then
  220. game.Workspace.Delete.delete:FireServer(player.Character)
  221. end
  222. end
  223. end
  224. end
  225. end
  226.  
  227. if string.find(lower,"frick ") then
  228. local name = string.gsub(lower,"frick ","")
  229. local player = nil
  230.  
  231. if name == "others" then
  232. for i,v in pairs(game.Players:GetChildren()) do
  233. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  234. game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  235. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  236. end
  237. end
  238. else
  239.  
  240. names = game.Players:GetChildren()
  241.  
  242. for i,v in pairs(names) do
  243. strlower = string.lower(v.Name)
  244. sub = string.sub(strlower,1,#name)
  245.  
  246. if name == sub then
  247. player = v
  248. if player.Name ~= game.Players.LocalPlayer.Name then
  249. game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  250. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  251. end
  252. end
  253. end
  254. end
  255. end
  256.  
  257. if string.find(lower,":frick ") then
  258. local name = string.gsub(lower,":frick ","")
  259. local player = nil
  260.  
  261. if name == "others" then
  262. for i,v in pairs(game.Players:GetChildren()) do
  263. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  264. game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  265. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  266. end
  267. end
  268. else
  269.  
  270. names = game.Players:GetChildren()
  271.  
  272. for i,v in pairs(names) do
  273. strlower = string.lower(v.Name)
  274. sub = string.sub(strlower,1,#name)
  275.  
  276. if name == sub then
  277. player = v
  278. if player.Name ~= game.Players.LocalPlayer.Name then
  279. game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  280. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  281. end
  282. end
  283. end
  284. end
  285. end
  286.  
  287. if string.find(lower,"/e frick ") then
  288. local name = string.gsub(lower,"/e frick ","")
  289. local player = nil
  290.  
  291. if name == "others" then
  292. for i,v in pairs(game.Players:GetChildren()) do
  293. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  294. game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  295. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  296. end
  297. end
  298. else
  299.  
  300. names = game.Players:GetChildren()
  301.  
  302. for i,v in pairs(names) do
  303. strlower = string.lower(v.Name)
  304. sub = string.sub(strlower,1,#name)
  305.  
  306. if name == sub then
  307. player = v
  308. if player.Name ~= game.Players.LocalPlayer.Name then
  309. game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  310. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  311. end
  312. end
  313. end
  314. end
  315. end
  316.  
  317. if string.find(lower,"/e :frick ") then
  318. local name = string.gsub(lower,"/e :frick ","")
  319. local player = nil
  320.  
  321. if name == "others" then
  322. for i,v in pairs(game.Players:GetChildren()) do
  323. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  324. game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  325. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  326. end
  327. end
  328. else
  329.  
  330. names = game.Players:GetChildren()
  331.  
  332. for i,v in pairs(names) do
  333. strlower = string.lower(v.Name)
  334. sub = string.sub(strlower,1,#name)
  335.  
  336. if name == sub then
  337. player = v
  338. if player.Name ~= game.Players.LocalPlayer.Name then
  339. game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  340. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  341. end
  342. end
  343. end
  344. end
  345. end
  346.  
  347. if string.find(lower,":ban ") then
  348. local name = string.gsub(lower,":ban ","")
  349. local player = nil
  350. local plrname = nil
  351.  
  352. if name == "others" then
  353. for i,v in pairs(game.Players:GetChildren()) do
  354. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  355. plrname = v.Name
  356. table.insert(banlist,(#banlist+1),plrname)
  357. game.Workspace.Delete.delete:FireServer(v)
  358. end
  359. end
  360. else
  361.  
  362. names = game.Players:GetChildren()
  363.  
  364. for i,v in pairs(names) do
  365. strlower = string.lower(v.Name)
  366. sub = string.sub(strlower,1,#name)
  367.  
  368. if name == sub then
  369. plrname = v.Name
  370. player = v
  371.  
  372. if player.Name ~= game.Players.LocalPlayer.Name then
  373. table.insert(banlist,(#banlist+1),plrname)
  374. game.Workspace.Delete.delete:FireServer(player)
  375. end
  376. end
  377.  
  378. end
  379.  
  380.  
  381. end
  382. end
  383.  
  384. if string.find(lower,"/e ban ") then
  385. local name = string.gsub(lower,"/e ban ","")
  386. local player = nil
  387. local plrname = nil
  388.  
  389. if name == "others" then
  390. for i,v in pairs(game.Players:GetChildren()) do
  391. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  392. plrname = v.Name
  393. table.insert(banlist,(#banlist+1),plrname)
  394. game.Workspace.Delete.delete:FireServer(v)
  395. end
  396. end
  397. else
  398.  
  399. names = game.Players:GetChildren()
  400.  
  401. for i,v in pairs(names) do
  402. strlower = string.lower(v.Name)
  403. sub = string.sub(strlower,1,#name)
  404.  
  405. if name == sub then
  406. plrname = v.Name
  407. player = v
  408.  
  409. if player.Name ~= game.Players.LocalPlayer.Name then
  410. table.insert(banlist,(#banlist+1),plrname)
  411. game.Workspace.Delete.delete:FireServer(player)
  412. end
  413. end
  414.  
  415. end
  416.  
  417.  
  418. end
  419. end
  420.  
  421. if string.find(lower,"/e :ban ") then
  422. local name = string.gsub(lower,"/e :ban ","")
  423. local player = nil
  424. local plrname = nil
  425.  
  426. if name == "others" then
  427. for i,v in pairs(game.Players:GetChildren()) do
  428. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  429. plrname = v.Name
  430. table.insert(banlist,(#banlist+1),plrname)
  431. game.Workspace.Delete.delete:FireServer(v)
  432. end
  433. end
  434. else
  435.  
  436. names = game.Players:GetChildren()
  437.  
  438. for i,v in pairs(names) do
  439. strlower = string.lower(v.Name)
  440. sub = string.sub(strlower,1,#name)
  441.  
  442. if name == sub then
  443. plrname = v.Name
  444. player = v
  445.  
  446. if player.Name ~= game.Players.LocalPlayer.Name then
  447. table.insert(banlist,(#banlist+1),plrname)
  448. game.Workspace.Delete.delete:FireServer(player)
  449. end
  450. end
  451.  
  452. end
  453.  
  454.  
  455. end
  456. end
  457.  
  458. if string.find(lower,":unban ") then
  459. local name = string.gsub(lower,":unban ","")
  460. local player = nil
  461. local plrname = nil
  462. local index = nil
  463.  
  464. if name == "all" then
  465.  
  466. for i,v in pairs(banlist) do
  467. table.remove(banlist,i)
  468. end
  469.  
  470. else
  471. names = banlist
  472.  
  473. for i,v in pairs(names) do
  474. strlower = string.lower(v)
  475. sub = string.sub(strlower,1,#name)
  476.  
  477. if name == sub then
  478. table.remove(banlist,i)
  479. end
  480. end
  481. end
  482. end
  483.  
  484. if lower == ":bans" then
  485. print("-------------------------")
  486.  
  487. for i,v in pairs(banlist) do
  488. print("Ban #" .. i .. " Player: " .. v)
  489. end
  490.  
  491. print("-------------------------")
  492. end
  493.  
  494. if lower == ":obby" then
  495. if game.Workspace.Terrain.GameFolder.Workspace.Obby then
  496. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Obby)
  497. end
  498. end
  499.  
  500. if lower == ":removeobby" then
  501. if game.Workspace.Terrain.GameFolder.Workspace.Obby then
  502. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Obby)
  503. end
  504. end
  505.  
  506. if lower == ":givers" then
  507. if game.Workspace.Terrain.GameFolder.Admin then
  508. local dividers = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  509. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  510. game.Workspace.Delete.delete:FireServer(dividers)
  511. end
  512. end
  513.  
  514. if lower == ":removegivers" then
  515. if game.Workspace.Terrain.GameFolder.Admin then
  516. local dividers2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  517. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  518. game.Workspace.Delete.delete:FireServer(dividers2)
  519. end
  520. end
  521.  
  522. if lower == ":removepads" then
  523. if game.Workspace.Terrain.GameFolder.Admin then
  524. local dividers2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  525. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  526. game.Workspace.Delete.delete:FireServer(dividers2)
  527. end
  528. end
  529.  
  530. if lower == ":pads" then
  531. if game.Workspace.Terrain.GameFolder.Admin then
  532. local dividers2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  533. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  534. game.Workspace.Delete.delete:FireServer(dividers2)
  535. end
  536. end
  537. if lower == ":roof" then
  538. if game.Workspace.Terrain.GameFolder.Admin then
  539.  
  540. epic = game.Players.Vortexturize.Backpack:FindFirstChild("Clone")
  541. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  542. end
  543. end
  544. if lower == ":darkness" then
  545. if game.Workspace.Terrain.GameFolder.Admin then
  546.  
  547. epic = game.Players.Vortexturize.Backpack:FindFirstChild("Clone")
  548. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  549. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  550. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  551. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  552. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  553. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  554. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  555. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  556. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  557. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  558. --EFFECIENCY AT IT'S FINEST
  559. end
  560. end
  561.  
  562. if lower == ":clonebaseplate" then
  563. if game.Workspace.Terrain.GameFolder.Admin then
  564. epic = game.Players.Vortexturize.Backpack:FindFirstChild("Clone")
  565. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  566. end
  567. end
  568.  
  569. if lower == ":regen" then
  570. if game.Workspace.Terrain.GameFolder.Admin then
  571. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Regen)
  572. end
  573. end
  574. if lower == ":removeregen" then
  575. if game.Workspace.Terrain.GameFolder.Admin then
  576. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Regen)
  577. end
  578. end
  579.  
  580. if lower == "clear" then
  581. for i,v in pairs(game.Workspace:GetChildren()) do
  582. if v:IsA("Part") then
  583. game.Workspace.Delete.delete:FireServer(v)
  584. end
  585. end
  586. end
  587.  
  588. if lower == ":slock on" then
  589. slock = true
  590. end
  591.  
  592. if lower == "/e :slock on" then
  593. slock = true
  594. end
  595.  
  596. if lower == "/e slock on" then
  597. slock = true
  598. end
  599.  
  600. if lower == ":slock off" then
  601. slock = false
  602. end
  603.  
  604. if lower == "/e :slock off" then
  605. slock = false
  606. end
  607.  
  608. if lower == "/e slock off" then
  609. slock = false
  610. end
  611.  
  612. if string.find(lower,":wl ") then
  613. local name = string.gsub(lower,":wl ","")
  614. local player = nil
  615. local plrname = nil
  616.  
  617. if name == "others" then
  618. for i,v in pairs(game.Players:GetChildren()) do
  619. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  620. table.insert(whitelist,(#whitelist+1),v.Name)
  621. newtag(v.Name)
  622.  
  623. v.Chatted:connect(function(msg)
  624. adminexe(v,msg)
  625. end)
  626. end
  627. end
  628. else
  629.  
  630. names = game.Players:GetChildren()
  631.  
  632. for i,v in pairs(names) do
  633. strlower = string.lower(v.Name)
  634. sub = string.sub(strlower,1,#name)
  635.  
  636. if name == sub then
  637. newtag(v.Name)
  638. table.insert(whitelist,(#whitelist+1),v.Name)
  639.  
  640. v.Chatted:connect(function(msg)
  641. adminexe(v,msg)
  642. end)
  643. end
  644. end
  645. end
  646. end
  647.  
  648. if string.find(lower,":unwl ") then
  649. local name = string.gsub(lower,":unwl ","")
  650. local player = nil
  651. local plrname = nil
  652. local index = nil
  653.  
  654. if name == "others" then
  655. for i,v in pairs(whitelist) do
  656. for i,v in pairs(banlist) do
  657. if v ~= game.Players.LocalPlayer.Name then
  658. table.remove(whitelist,i)
  659. end
  660. end
  661.  
  662. if game.Workspace:FindFirstChild(v) then
  663.  
  664. if v.Name ~= game.Players.LocalPlayer.Name then
  665. if v:FindFirstChild("admin") then
  666. v.admin:Destroy()
  667. end
  668. end
  669. end
  670. end
  671. else
  672. names = whitelist
  673.  
  674. for i,v in pairs(names) do
  675. strlower = string.lower(v)
  676. sub = string.sub(strlower,1,#name)
  677.  
  678. if name == sub then
  679. table.remove(whitelist,i)
  680. end
  681. end
  682. end
  683. end
  684.  
  685. if lower == ":wls" then
  686. for i,v in pairs(whitelist) do
  687. print("Player #" .. i .. " Player: " .. v)
  688. end
  689. end
  690.  
  691. if lower == ":ruin" then
  692. house2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Simple House")
  693. house = house2:GetChildren()
  694. for i=1,#house,3 do
  695. game.Workspace.Delete.delete:FireServer(house[i])
  696. end
  697.  
  698. end
  699.  
  700. if lower == ":barriers" then
  701. if game.Workspace.Terrain.GameFolder.Workspace then
  702. epicheskiy = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Obby Box")
  703. game.Workspace.Delete.delete:FireServer(epicheskiy)
  704. end
  705. end
  706.  
  707. if lower == ":removebarriers" then
  708. if game.Workspace.Terrain.GameFolder.Workspace then
  709. epicheskiy = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Obby Box")
  710. game.Workspace.Delete.delete:FireServer(epicheskiy)
  711. end
  712. end
  713.  
  714. if lower == ":baseplate" then
  715. if game.Workspace.Terrain.GameFolder.Workspace.Baseplate then
  716. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate)
  717. end
  718. end
  719.  
  720. if lower == ":tohouse" then
  721. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-33.2027435, 8.22999954, 82.6940842))
  722. end
  723. if lower == ":gotohouse" then
  724. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-33.2027435, 8.22999954, 82.6940842))
  725. end
  726.  
  727. if lower == ":removebaseplate" then
  728. if game.Workspace.Terrain.GameFolder.Workspace.Baseplate then
  729. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate)
  730. end
  731. end
  732.  
  733. if lower == ":removehouse" then
  734. if game.Workspace.Terrain.GameFolder.Workspace then
  735. epicheskiy2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Basic House")
  736. game.Workspace.Delete.delete:FireServer(epicheskiy2)
  737. end
  738. end
  739. if lower == ":house" then
  740. if game.Workspace.Terrain.GameFolder.Workspace then
  741. epicheskiy2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Basic House")
  742. game.Workspace.Delete.delete:FireServer(epicheskiy2)
  743. end
  744. end
  745. if lower == ":unlock" then
  746. local function unlock(instance)
  747. for i,v in pairs(instance:GetChildren()) do
  748. if v:IsA("BasePart") then
  749. v.Locked = false
  750. end
  751. unlock(v)
  752. end
  753. end
  754. unlock(workspace)
  755. end
  756.  
  757. if lower == "/e unlock" then
  758. local function unlock(instance)
  759. for i,v in pairs(instance:GetChildren()) do
  760. if v:IsA("BasePart") then
  761. v.Locked = false
  762. end
  763. unlock(v)
  764. end
  765. end
  766. unlock(workspace)
  767. end
  768.  
  769. if lower == "/e :unlock" then
  770. local function unlock(instance)
  771. for i,v in pairs(instance:GetChildren()) do
  772. if v:IsA("BasePart") then
  773. v.Locked = false
  774. end
  775. unlock(v)
  776. end
  777. end
  778. unlock(workspace)
  779. end
  780.  
  781. if lower == ":breakgame" then
  782. if game.Workspace.Terrain then
  783. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace)
  784. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin)
  785. end
  786. end
  787.  
  788. if lower == ":endme" then
  789. if game.Players.LocalPlayer then
  790. game.Workspace.Delete.delete:FireServer(game.Players.LocalPlayer)
  791. end
  792. end
  793.  
  794. if lower == ":removegame" then
  795. if game.Workspace.Terrain then
  796. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace)
  797. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin)
  798. end
  799. end
  800.  
  801. if lower == ":clear" then
  802. for i,v in pairs(game.Workspace:GetChildren()) do
  803. if not v:IsA("Model") or not v:IsA("Camera") or not v:IsA("Terrain") then
  804. game.Workspace.Delete.delete:FireServer(v)
  805. end
  806. end
  807. end
  808.  
  809. if string.find(lower,":cmds") then
  810.  
  811. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  812. Text = "Check the developer console for a list of additional commands. (F9 or Shift + F9)";
  813. Color = Color3.new(127, 0, 0);
  814. Font = Enum.Font.SourceSansBold;
  815. FontSize = Enum.FontSize.Size24;
  816. })
  817.  
  818.  
  819. print("----------------COMMANDS-------------------")
  820. print("Selection options: Full Player Name, Abrreviated, Others")
  821. print('Example: ":ban others"')
  822. print()
  823. print(":cmds - I wonder what this does.")
  824. print(":ban - Prevents user from rejoining the server. (/e :ban and /e ban work)")
  825. print(":unban -can use :unban all")
  826. print(":bans - Shows bans in console")
  827. print(":slock on - Turns serverlock on")
  828. print(":slock off - Turns server lock off")
  829. print(":kick - Removes player from the game (/e :kick and /e kick work)")
  830. print(":wl - Whitelists the player (Can use commands, not on you though.)")
  831. print(":unwl - Unwhitelists the player")
  832. print(":wls -outputs whitelisted players to console (F9)")
  833. print(":obby - Removes obby at the start. (removeobby also works.)")
  834. print(":givers - Removes admin givers. (:removegivers :removepads and :pads also all work.)")
  835. print(":clear --removes parts placed by players (Re-do the script after you run this. Also, use the respawn command to get unstuck.)")
  836. print(":removehouse - removes house")
  837. print(":baseplate - Removes baseplate. (:removebaseplate also works.)")
  838. print(":regen - Removes baseplate. (:removeregen also works.)")
  839. print(":barriers - Removes barriers around spawn (:removebarriers also works.)")
  840. print(":breakgame - Breaks everything. (:removegame also works incase you got used to the remove commands.)")
  841. print(":frick - Kills the player (Doing it without the : yields the same results)")
  842. print(":heck - Deletes the player's character (Doing it without the : yields the same results)")
  843. print(":roof - Clones the baseplate over the map")
  844. print(":darkness - Clones multiple baseplates over the map (Casting a shadow on the map)")
  845. print(":unlock - Allows you to use your btools on any part in the game (/e unlock and /e :unlock work)")
  846. print(":gotohouse - Teleports you into the house")
  847. print()
  848. print('Executing "kick others/etc." wont kick those whitelisted, but if you single them out it will')
  849. print('If a user is whitelisted he/she will not be able to see commands on their screen with :cmds,')
  850. print('and the same goes for :bans and :wls, since the game is filtering enabled, however they will')
  851. print('be able to use commands if whitelisted')
  852. print('You can not be unwhitelisted or banned / kicked')
  853. print("If someone uses the clear / clr command, you must re-apply the script.")
  854. print("Most commands that effect players can be used silently. (Example /e :kick and /e kick would both work)")
  855. print("-------------------------------------------")
  856. print("Made by Timeless. (Updated by Vortex)")
  857. print("-------------------------------------------")
  858.  
  859.  
  860. end
  861. end
  862. end
  863.  
  864. game.Players.LocalPlayer.Chatted:connect(function(msg)
  865. adminexe(game.Players.LocalPlayer,msg)
  866. end)
  867.  
  868. if deletepath then
  869. game.Players.LocalPlayer.Character.Delete.CanBeDropped = true
  870.  
  871. drop = Instance.new("BillboardGui")
  872. drop.Parent = game.Players.LocalPlayer.PlayerGui
  873.  
  874. droplbl = Instance.new("TextLabel")
  875. droplbl.Parent = drop
  876. droplbl.Text = "Drop the delete tool to initialize commands"
  877. droplbl.BackgroundTransparency = 1
  878. droplbl.TextColor3 = Color3.new(200,0,0)
  879. droplbl.TextScaled = true
  880. droplbl.Size = UDim2.new(0,150,0,30)
  881. droplbl.Position = UDim2.new(0,400,0,400)
  882.  
  883. wait(2)
  884.  
  885. drop:Destroy()
  886. end
  887.  
  888. if deletepath2 then
  889. game.Players.LocalPlayer.Backpack.Delete.CanBeDropped = true
  890.  
  891. drop = Instance.new("BillboardGui")
  892. drop.Parent = game.Players.LocalPlayer.PlayerGui
  893.  
  894. droplbl = Instance.new("TextLabel")
  895. droplbl.Parent = drop
  896. droplbl.Text = "Drop the delete tool to initialize commands"
  897. droplbl.BackgroundTransparency = 1
  898. droplbl.TextColor3 = Color3.new(200,0,0)
  899. droplbl.TextScaled = true
  900. droplbl.Size = UDim2.new(0,150,0,30)
  901. droplbl.Position = UDim2.new(0,400,0,400)
  902.  
  903. wait(2)
  904.  
  905. drop:Destroy()
  906. end
  907.  
  908. game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(tool)
  909. if tool.Name == "Delete" then
  910. wait(.1)
  911. tool.CanBeDropped = true
  912.  
  913. drop = Instance.new("BillboardGui")
  914. drop.Parent = game.Players.LocalPlayer.PlayerGui
  915.  
  916. droplbl = Instance.new("TextLabel")
  917. droplbl.Text = "Drop the delete tool to initialize commands"
  918. droplbl.BackgroundTransparency = 1
  919. droplbl.Parent = drop
  920. droplbl.TextColor3 = Color3.new(200,0,0)
  921. droplbl.TextScaled = true
  922. droplbl.Size = UDim2.new(0,150,0,30)
  923. droplbl.Position = UDim2.new(0,400,0,400)
  924.  
  925. wait(2)
  926.  
  927. drop:Destroy()
  928. end
  929. end)
  930.  
  931. function start(plr)
  932.  
  933. local found = false
  934. local banned = false
  935.  
  936. for i=1,#whitelist do
  937. if plr.Name == (whitelist[i]) then
  938. found = true
  939. end
  940. end
  941.  
  942. for i=1,#banlist do
  943. if plr.Name == banlist[i] then
  944. banned = true
  945. end
  946.  
  947. if banned == true then
  948. game.Workspace.Delete.delete:FireServer(plr)
  949. end
  950. end
  951. if found == false and slock == true then
  952. game.Workspace.Delete.delete:FireServer(plr)
  953. end
  954.  
  955. if found == true then
  956. newtag(plr.Name)
  957. plr.Chatted:connect(function(msg)
  958. adminexe(plr,msg)
  959. end)
  960. end
  961. end
  962. game.Players.PlayerAdded:connect(function(plr)
  963. start(plr)
  964. end)
  965.  
  966.  
  967.  
  968. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  969. Text = "Say :cmds for further instructions on how to access additional commands.";
  970. Color = Color3.new(127, 0, 0);
  971. Font = Enum.Font.SourceSansBold;
  972. FontSize = Enum.FontSize.Size24;
  973. })
  974. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  975. Text = "Drop the hammer tool to get access to the extra commands. (Make sure to inject after giving yourself btools)";
  976. Color = Color3.new(0, 0, 127);
  977. Font = Enum.Font.SourceSansBold;
  978. FontSize = Enum.FontSize.Size24;
  979. })
  980. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  981. Text = "If someone uses the clear / clr command, you'll have to re-apply the script.";
  982. Color = Color3.new(0, 127, 0);
  983. Font = Enum.Font.SourceSansBold;
  984. FontSize = Enum.FontSize.Size24;
  985. })
  986. RAW Paste Data
  987. wait(.2)
  988. whitelist = {game.Players.LocalPlayer.Name,"Fren1","Fren2"} -- put admin names here
  989. banlist = {"noob","noob2"} -- put noob names here
  990. deletepath = game.Players.LocalPlayer.Character:FindFirstChild("Delete")
  991. deletepath2 = game.Players.LocalPlayer.Backpack:FindFirstChild("Delete")
  992. slock = false
  993.  
  994. function newtag(plr)
  995. admintag = Instance.new("BoolValue")
  996. admintag.Parent = game.Players[plr]
  997. admintag.Value = true
  998. admintag.Name = "admin"
  999. print("created admin tag for " .. plr)
  1000. end
  1001.  
  1002. newtag(game.Players.LocalPlayer.Name)
  1003.  
  1004. game.Players.LocalPlayer.ChildRemoved:connect(function(obj)
  1005. if obj.Name == "admin" then
  1006. newtag(game.Players.LocalPlayer.Name)
  1007. end
  1008. end)
  1009.  
  1010. function adminexe(plr,msg)
  1011. if plr:FindFirstChild("admin") then
  1012.  
  1013. local lower = string.lower(msg)
  1014. local len = string.len(lower)
  1015.  
  1016. if string.find(lower,":kick ") then
  1017. local name = string.gsub(lower,":kick ","")
  1018. local player = nil
  1019.  
  1020. if name == "others" then
  1021. for i,v in pairs(game.Players:GetChildren()) do
  1022. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1023. game.Workspace.Delete.delete:FireServer(v)
  1024. end
  1025. end
  1026. else
  1027.  
  1028. names = game.Players:GetChildren()
  1029.  
  1030. for i,v in pairs(names) do
  1031. strlower = string.lower(v.Name)
  1032. sub = string.sub(strlower,1,#name)
  1033.  
  1034. if name == sub then
  1035. player = v
  1036. if player.Name ~= game.Players.LocalPlayer.Name then
  1037. game.Workspace.Delete.delete:FireServer(player)
  1038. end
  1039. end
  1040. end
  1041. end
  1042. end
  1043.  
  1044.  
  1045. if string.find(lower,"/e :kick ") then
  1046. local name = string.gsub(lower,"/e :kick ","")
  1047. local player = nil
  1048.  
  1049. if name == "others" then
  1050. for i,v in pairs(game.Players:GetChildren()) do
  1051. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1052. game.Workspace.Delete.delete:FireServer(v)
  1053. end
  1054. end
  1055. else
  1056.  
  1057. names = game.Players:GetChildren()
  1058.  
  1059. for i,v in pairs(names) do
  1060. strlower = string.lower(v.Name)
  1061. sub = string.sub(strlower,1,#name)
  1062.  
  1063. if name == sub then
  1064. player = v
  1065. if player.Name ~= game.Players.LocalPlayer.Name then
  1066. game.Workspace.Delete.delete:FireServer(player)
  1067. end
  1068. end
  1069. end
  1070. end
  1071. end
  1072.  
  1073. if string.find(lower,"/e kick ") then
  1074. local name = string.gsub(lower,"/e kick ","")
  1075. local player = nil
  1076.  
  1077. if name == "others" then
  1078. for i,v in pairs(game.Players:GetChildren()) do
  1079. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1080. game.Workspace.Delete.delete:FireServer(v)
  1081. end
  1082. end
  1083. else
  1084.  
  1085. names = game.Players:GetChildren()
  1086.  
  1087. for i,v in pairs(names) do
  1088. strlower = string.lower(v.Name)
  1089. sub = string.sub(strlower,1,#name)
  1090.  
  1091. if name == sub then
  1092. player = v
  1093. if player.Name ~= game.Players.LocalPlayer.Name then
  1094. game.Workspace.Delete.delete:FireServer(player)
  1095. end
  1096. end
  1097. end
  1098. end
  1099. end
  1100.  
  1101. if string.find(lower,"heck ") then
  1102. local name = string.gsub(lower,"heck ","")
  1103. local player = nil
  1104.  
  1105. if name == "others" then
  1106. for i,v in pairs(game.Players:GetChildren()) do
  1107. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1108. game.Workspace.Delete.delete:FireServer(v.Character)
  1109. end
  1110. end
  1111. else
  1112.  
  1113. names = game.Players:GetChildren()
  1114.  
  1115. for i,v in pairs(names) do
  1116. strlower = string.lower(v.Name)
  1117. sub = string.sub(strlower,1,#name)
  1118.  
  1119. if name == sub then
  1120. player = v
  1121. if player.Name ~= game.Players.LocalPlayer.Name then
  1122. game.Workspace.Delete.delete:FireServer(player.Character)
  1123. end
  1124. end
  1125. end
  1126. end
  1127. end
  1128.  
  1129. if string.find(lower,":heck ") then
  1130. local name = string.gsub(lower,":heck ","")
  1131. local player = nil
  1132.  
  1133. if name == "others" then
  1134. for i,v in pairs(game.Players:GetChildren()) do
  1135. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1136. game.Workspace.Delete.delete:FireServer(v.Character)
  1137. end
  1138. end
  1139. else
  1140.  
  1141. names = game.Players:GetChildren()
  1142.  
  1143. for i,v in pairs(names) do
  1144. strlower = string.lower(v.Name)
  1145. sub = string.sub(strlower,1,#name)
  1146.  
  1147. if name == sub then
  1148. player = v
  1149. if player.Name ~= game.Players.LocalPlayer.Name then
  1150. game.Workspace.Delete.delete:FireServer(player.Character)
  1151. end
  1152. end
  1153. end
  1154. end
  1155. end
  1156.  
  1157. if string.find(lower,"/e heck ") then
  1158. local name = string.gsub(lower,"/e heck ","")
  1159. local player = nil
  1160.  
  1161. if name == "others" then
  1162. for i,v in pairs(game.Players:GetChildren()) do
  1163. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1164. game.Workspace.Delete.delete:FireServer(v.Character)
  1165. end
  1166. end
  1167. else
  1168.  
  1169. names = game.Players:GetChildren()
  1170.  
  1171. for i,v in pairs(names) do
  1172. strlower = string.lower(v.Name)
  1173. sub = string.sub(strlower,1,#name)
  1174.  
  1175. if name == sub then
  1176. player = v
  1177. if player.Name ~= game.Players.LocalPlayer.Name then
  1178. game.Workspace.Delete.delete:FireServer(player.Character)
  1179. end
  1180. end
  1181. end
  1182. end
  1183. end
  1184.  
  1185. if string.find(lower,"/e :heck ") then
  1186. local name = string.gsub(lower,"/e :heck ","")
  1187. local player = nil
  1188.  
  1189. if name == "others" then
  1190. for i,v in pairs(game.Players:GetChildren()) do
  1191. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1192. game.Workspace.Delete.delete:FireServer(v.Character)
  1193. end
  1194. end
  1195. else
  1196.  
  1197. names = game.Players:GetChildren()
  1198.  
  1199. for i,v in pairs(names) do
  1200. strlower = string.lower(v.Name)
  1201. sub = string.sub(strlower,1,#name)
  1202.  
  1203. if name == sub then
  1204. player = v
  1205. if player.Name ~= game.Players.LocalPlayer.Name then
  1206. game.Workspace.Delete.delete:FireServer(player.Character)
  1207. end
  1208. end
  1209. end
  1210. end
  1211. end
  1212.  
  1213. if string.find(lower,"frick ") then
  1214. local name = string.gsub(lower,"frick ","")
  1215. local player = nil
  1216.  
  1217. if name == "others" then
  1218. for i,v in pairs(game.Players:GetChildren()) do
  1219. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1220. game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  1221. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  1222. end
  1223. end
  1224. else
  1225.  
  1226. names = game.Players:GetChildren()
  1227.  
  1228. for i,v in pairs(names) do
  1229. strlower = string.lower(v.Name)
  1230. sub = string.sub(strlower,1,#name)
  1231.  
  1232. if name == sub then
  1233. player = v
  1234. if player.Name ~= game.Players.LocalPlayer.Name then
  1235. game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  1236. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  1237. end
  1238. end
  1239. end
  1240. end
  1241. end
  1242.  
  1243. if string.find(lower,":frick ") then
  1244. local name = string.gsub(lower,":frick ","")
  1245. local player = nil
  1246.  
  1247. if name == "others" then
  1248. for i,v in pairs(game.Players:GetChildren()) do
  1249. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1250. game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  1251. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  1252. end
  1253. end
  1254. else
  1255.  
  1256. names = game.Players:GetChildren()
  1257.  
  1258. for i,v in pairs(names) do
  1259. strlower = string.lower(v.Name)
  1260. sub = string.sub(strlower,1,#name)
  1261.  
  1262. if name == sub then
  1263. player = v
  1264. if player.Name ~= game.Players.LocalPlayer.Name then
  1265. game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  1266. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  1267. end
  1268. end
  1269. end
  1270. end
  1271. end
  1272.  
  1273. if string.find(lower,"/e frick ") then
  1274. local name = string.gsub(lower,"/e frick ","")
  1275. local player = nil
  1276.  
  1277. if name == "others" then
  1278. for i,v in pairs(game.Players:GetChildren()) do
  1279. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1280. game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  1281. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  1282. end
  1283. end
  1284. else
  1285.  
  1286. names = game.Players:GetChildren()
  1287.  
  1288. for i,v in pairs(names) do
  1289. strlower = string.lower(v.Name)
  1290. sub = string.sub(strlower,1,#name)
  1291.  
  1292. if name == sub then
  1293. player = v
  1294. if player.Name ~= game.Players.LocalPlayer.Name then
  1295. game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  1296. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  1297. end
  1298. end
  1299. end
  1300. end
  1301. end
  1302.  
  1303. if string.find(lower,"/e :frick ") then
  1304. local name = string.gsub(lower,"/e :frick ","")
  1305. local player = nil
  1306.  
  1307. if name == "others" then
  1308. for i,v in pairs(game.Players:GetChildren()) do
  1309. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1310. game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  1311. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  1312. end
  1313. end
  1314. else
  1315.  
  1316. names = game.Players:GetChildren()
  1317.  
  1318. for i,v in pairs(names) do
  1319. strlower = string.lower(v.Name)
  1320. sub = string.sub(strlower,1,#name)
  1321.  
  1322. if name == sub then
  1323. player = v
  1324. if player.Name ~= game.Players.LocalPlayer.Name then
  1325. game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  1326. game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  1327. end
  1328. end
  1329. end
  1330. end
  1331. end
  1332.  
  1333. if string.find(lower,":ban ") then
  1334. local name = string.gsub(lower,":ban ","")
  1335. local player = nil
  1336. local plrname = nil
  1337.  
  1338. if name == "others" then
  1339. for i,v in pairs(game.Players:GetChildren()) do
  1340. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1341. plrname = v.Name
  1342. table.insert(banlist,(#banlist+1),plrname)
  1343. game.Workspace.Delete.delete:FireServer(v)
  1344. end
  1345. end
  1346. else
  1347.  
  1348. names = game.Players:GetChildren()
  1349.  
  1350. for i,v in pairs(names) do
  1351. strlower = string.lower(v.Name)
  1352. sub = string.sub(strlower,1,#name)
  1353.  
  1354. if name == sub then
  1355. plrname = v.Name
  1356. player = v
  1357.  
  1358. if player.Name ~= game.Players.LocalPlayer.Name then
  1359. table.insert(banlist,(#banlist+1),plrname)
  1360. game.Workspace.Delete.delete:FireServer(player)
  1361. end
  1362. end
  1363.  
  1364. end
  1365.  
  1366.  
  1367. end
  1368. end
  1369.  
  1370. if string.find(lower,"/e ban ") then
  1371. local name = string.gsub(lower,"/e ban ","")
  1372. local player = nil
  1373. local plrname = nil
  1374.  
  1375. if name == "others" then
  1376. for i,v in pairs(game.Players:GetChildren()) do
  1377. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1378. plrname = v.Name
  1379. table.insert(banlist,(#banlist+1),plrname)
  1380. game.Workspace.Delete.delete:FireServer(v)
  1381. end
  1382. end
  1383. else
  1384.  
  1385. names = game.Players:GetChildren()
  1386.  
  1387. for i,v in pairs(names) do
  1388. strlower = string.lower(v.Name)
  1389. sub = string.sub(strlower,1,#name)
  1390.  
  1391. if name == sub then
  1392. plrname = v.Name
  1393. player = v
  1394.  
  1395. if player.Name ~= game.Players.LocalPlayer.Name then
  1396. table.insert(banlist,(#banlist+1),plrname)
  1397. game.Workspace.Delete.delete:FireServer(player)
  1398. end
  1399. end
  1400.  
  1401. end
  1402.  
  1403.  
  1404. end
  1405. end
  1406.  
  1407. if string.find(lower,"/e :ban ") then
  1408. local name = string.gsub(lower,"/e :ban ","")
  1409. local player = nil
  1410. local plrname = nil
  1411.  
  1412. if name == "others" then
  1413. for i,v in pairs(game.Players:GetChildren()) do
  1414. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1415. plrname = v.Name
  1416. table.insert(banlist,(#banlist+1),plrname)
  1417. game.Workspace.Delete.delete:FireServer(v)
  1418. end
  1419. end
  1420. else
  1421.  
  1422. names = game.Players:GetChildren()
  1423.  
  1424. for i,v in pairs(names) do
  1425. strlower = string.lower(v.Name)
  1426. sub = string.sub(strlower,1,#name)
  1427.  
  1428. if name == sub then
  1429. plrname = v.Name
  1430. player = v
  1431.  
  1432. if player.Name ~= game.Players.LocalPlayer.Name then
  1433. table.insert(banlist,(#banlist+1),plrname)
  1434. game.Workspace.Delete.delete:FireServer(player)
  1435. end
  1436. end
  1437.  
  1438. end
  1439.  
  1440.  
  1441. end
  1442. end
  1443.  
  1444. if string.find(lower,":unban ") then
  1445. local name = string.gsub(lower,":unban ","")
  1446. local player = nil
  1447. local plrname = nil
  1448. local index = nil
  1449.  
  1450. if name == "all" then
  1451.  
  1452. for i,v in pairs(banlist) do
  1453. table.remove(banlist,i)
  1454. end
  1455.  
  1456. else
  1457. names = banlist
  1458.  
  1459. for i,v in pairs(names) do
  1460. strlower = string.lower(v)
  1461. sub = string.sub(strlower,1,#name)
  1462.  
  1463. if name == sub then
  1464. table.remove(banlist,i)
  1465. end
  1466. end
  1467. end
  1468. end
  1469.  
  1470. if lower == ":bans" then
  1471. print("-------------------------")
  1472.  
  1473. for i,v in pairs(banlist) do
  1474. print("Ban #" .. i .. " Player: " .. v)
  1475. end
  1476.  
  1477. print("-------------------------")
  1478. end
  1479.  
  1480. if lower == ":obby" then
  1481. if game.Workspace.Terrain.GameFolder.Workspace.Obby then
  1482. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Obby)
  1483. end
  1484. end
  1485.  
  1486. if lower == ":removeobby" then
  1487. if game.Workspace.Terrain.GameFolder.Workspace.Obby then
  1488. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Obby)
  1489. end
  1490. end
  1491.  
  1492. if lower == ":givers" then
  1493. if game.Workspace.Terrain.GameFolder.Admin then
  1494. local dividers = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  1495. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  1496. game.Workspace.Delete.delete:FireServer(dividers)
  1497. end
  1498. end
  1499.  
  1500. if lower == ":removegivers" then
  1501. if game.Workspace.Terrain.GameFolder.Admin then
  1502. local dividers2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  1503. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  1504. game.Workspace.Delete.delete:FireServer(dividers2)
  1505. end
  1506. end
  1507.  
  1508. if lower == ":removepads" then
  1509. if game.Workspace.Terrain.GameFolder.Admin then
  1510. local dividers2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  1511. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  1512. game.Workspace.Delete.delete:FireServer(dividers2)
  1513. end
  1514. end
  1515.  
  1516. if lower == ":pads" then
  1517. if game.Workspace.Terrain.GameFolder.Admin then
  1518. local dividers2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  1519. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  1520. game.Workspace.Delete.delete:FireServer(dividers2)
  1521. end
  1522. end
  1523. if lower == ":roof" then
  1524. if game.Workspace.Terrain.GameFolder.Admin then
  1525.  
  1526. epic = game.Players.Vortexturize.Backpack:FindFirstChild("Clone")
  1527. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1528. end
  1529. end
  1530. if lower == ":darkness" then
  1531. if game.Workspace.Terrain.GameFolder.Admin then
  1532.  
  1533. epic = game.Players.Vortexturize.Backpack:FindFirstChild("Clone")
  1534. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1535. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1536. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1537. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1538. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1539. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1540. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1541. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1542. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1543. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1544. --EFFECIENCY AT IT'S FINEST
  1545. end
  1546. end
  1547.  
  1548. if lower == ":clonebaseplate" then
  1549. if game.Workspace.Terrain.GameFolder.Admin then
  1550. epic = game.Players.Vortexturize.Backpack:FindFirstChild("Clone")
  1551. epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  1552. end
  1553. end
  1554.  
  1555. if lower == ":regen" then
  1556. if game.Workspace.Terrain.GameFolder.Admin then
  1557. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Regen)
  1558. end
  1559. end
  1560. if lower == ":removeregen" then
  1561. if game.Workspace.Terrain.GameFolder.Admin then
  1562. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Regen)
  1563. end
  1564. end
  1565.  
  1566. if lower == "clear" then
  1567. for i,v in pairs(game.Workspace:GetChildren()) do
  1568. if v:IsA("Part") then
  1569. game.Workspace.Delete.delete:FireServer(v)
  1570. end
  1571. end
  1572. end
  1573.  
  1574. if lower == ":slock on" then
  1575. slock = true
  1576. end
  1577.  
  1578. if lower == "/e :slock on" then
  1579. slock = true
  1580. end
  1581.  
  1582. if lower == "/e slock on" then
  1583. slock = true
  1584. end
  1585.  
  1586. if lower == ":slock off" then
  1587. slock = false
  1588. end
  1589.  
  1590. if lower == "/e :slock off" then
  1591. slock = false
  1592. end
  1593.  
  1594. if lower == "/e slock off" then
  1595. slock = false
  1596. end
  1597.  
  1598. if string.find(lower,":wl ") then
  1599. local name = string.gsub(lower,":wl ","")
  1600. local player = nil
  1601. local plrname = nil
  1602.  
  1603. if name == "others" then
  1604. for i,v in pairs(game.Players:GetChildren()) do
  1605. if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  1606. table.insert(whitelist,(#whitelist+1),v.Name)
  1607. newtag(v.Name)
  1608.  
  1609. v.Chatted:connect(function(msg)
  1610. adminexe(v,msg)
  1611. end)
  1612. end
  1613. end
  1614. else
  1615.  
  1616. names = game.Players:GetChildren()
  1617.  
  1618. for i,v in pairs(names) do
  1619. strlower = string.lower(v.Name)
  1620. sub = string.sub(strlower,1,#name)
  1621.  
  1622. if name == sub then
  1623. newtag(v.Name)
  1624. table.insert(whitelist,(#whitelist+1),v.Name)
  1625.  
  1626. v.Chatted:connect(function(msg)
  1627. adminexe(v,msg)
  1628. end)
  1629. end
  1630. end
  1631. end
  1632. end
  1633.  
  1634. if string.find(lower,":unwl ") then
  1635. local name = string.gsub(lower,":unwl ","")
  1636. local player = nil
  1637. local plrname = nil
  1638. local index = nil
  1639.  
  1640. if name == "others" then
  1641. for i,v in pairs(whitelist) do
  1642. for i,v in pairs(banlist) do
  1643. if v ~= game.Players.LocalPlayer.Name then
  1644. table.remove(whitelist,i)
  1645. end
  1646. end
  1647.  
  1648. if game.Workspace:FindFirstChild(v) then
  1649.  
  1650. if v.Name ~= game.Players.LocalPlayer.Name then
  1651. if v:FindFirstChild("admin") then
  1652. v.admin:Destroy()
  1653. end
  1654. end
  1655. end
  1656. end
  1657. else
  1658. names = whitelist
  1659.  
  1660. for i,v in pairs(names) do
  1661. strlower = string.lower(v)
  1662. sub = string.sub(strlower,1,#name)
  1663.  
  1664. if name == sub then
  1665. table.remove(whitelist,i)
  1666. end
  1667. end
  1668. end
  1669. end
  1670.  
  1671. if lower == ":wls" then
  1672. for i,v in pairs(whitelist) do
  1673. print("Player #" .. i .. " Player: " .. v)
  1674. end
  1675. end
  1676.  
  1677. if lower == ":ruin" then
  1678. house2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Simple House")
  1679. house = house2:GetChildren()
  1680. for i=1,#house,3 do
  1681. game.Workspace.Delete.delete:FireServer(house[i])
  1682. end
  1683.  
  1684. end
  1685.  
  1686. if lower == ":barriers" then
  1687. if game.Workspace.Terrain.GameFolder.Workspace then
  1688. epicheskiy = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Obby Box")
  1689. game.Workspace.Delete.delete:FireServer(epicheskiy)
  1690. end
  1691. end
  1692.  
  1693. if lower == ":removebarriers" then
  1694. if game.Workspace.Terrain.GameFolder.Workspace then
  1695. epicheskiy = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Obby Box")
  1696. game.Workspace.Delete.delete:FireServer(epicheskiy)
  1697. end
  1698. end
  1699.  
  1700. if lower == ":baseplate" then
  1701. if game.Workspace.Terrain.GameFolder.Workspace.Baseplate then
  1702. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate)
  1703. end
  1704. end
  1705.  
  1706. if lower == ":tohouse" then
  1707. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-33.2027435, 8.22999954, 82.6940842))
  1708. end
  1709. if lower == ":gotohouse" then
  1710. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-33.2027435, 8.22999954, 82.6940842))
  1711. end
  1712.  
  1713. if lower == ":removebaseplate" then
  1714. if game.Workspace.Terrain.GameFolder.Workspace.Baseplate then
  1715. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate)
  1716. end
  1717. end
  1718.  
  1719. if lower == ":removehouse" then
  1720. if game.Workspace.Terrain.GameFolder.Workspace then
  1721. epicheskiy2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Basic House")
  1722. game.Workspace.Delete.delete:FireServer(epicheskiy2)
  1723. end
  1724. end
  1725. if lower == ":house" then
  1726. if game.Workspace.Terrain.GameFolder.Workspace then
  1727. epicheskiy2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Basic House")
  1728. game.Workspace.Delete.delete:FireServer(epicheskiy2)
  1729. end
  1730. end
  1731. if lower == ":unlock" then
  1732. local function unlock(instance)
  1733. for i,v in pairs(instance:GetChildren()) do
  1734. if v:IsA("BasePart") then
  1735. v.Locked = false
  1736. end
  1737. unlock(v)
  1738. end
  1739. end
  1740. unlock(workspace)
  1741. end
  1742.  
  1743. if lower == "/e unlock" then
  1744. local function unlock(instance)
  1745. for i,v in pairs(instance:GetChildren()) do
  1746. if v:IsA("BasePart") then
  1747. v.Locked = false
  1748. end
  1749. unlock(v)
  1750. end
  1751. end
  1752. unlock(workspace)
  1753. end
  1754.  
  1755. if lower == "/e :unlock" then
  1756. local function unlock(instance)
  1757. for i,v in pairs(instance:GetChildren()) do
  1758. if v:IsA("BasePart") then
  1759. v.Locked = false
  1760. end
  1761. unlock(v)
  1762. end
  1763. end
  1764. unlock(workspace)
  1765. end
  1766.  
  1767. if lower == ":breakgame" then
  1768. if game.Workspace.Terrain then
  1769. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace)
  1770. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin)
  1771. end
  1772. end
  1773.  
  1774. if lower == ":endme" then
  1775. if game.Players.LocalPlayer then
  1776. game.Workspace.Delete.delete:FireServer(game.Players.LocalPlayer)
  1777. end
  1778. end
  1779.  
  1780. if lower == ":removegame" then
  1781. if game.Workspace.Terrain then
  1782. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace)
  1783. game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin)
  1784. end
  1785. end
  1786.  
  1787. if lower == ":clear" then
  1788. for i,v in pairs(game.Workspace:GetChildren()) do
  1789. if not v:IsA("Model") or not v:IsA("Camera") or not v:IsA("Terrain") then
  1790. game.Workspace.Delete.delete:FireServer(v)
  1791. end
  1792. end
  1793. end
  1794.  
  1795. if string.find(lower,":cmds") then
  1796.  
  1797. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  1798. Text = "Check the developer console for a list of additional commands. (F9 or Shift + F9)";
  1799. Color = Color3.new(127, 0, 0);
  1800. Font = Enum.Font.SourceSansBold;
  1801. FontSize = Enum.FontSize.Size24;
  1802. })
  1803.  
  1804.  
  1805. print("----------------COMMANDS-------------------")
  1806. print("Selection options: Full Player Name, Abrreviated, Others")
  1807. print('Example: ":ban others"')
  1808. print()
  1809. print(":cmds - I wonder what this does.")
  1810. print(":ban - Prevents user from rejoining the server. (/e :ban and /e ban work)")
  1811. print(":unban -can use :unban all")
  1812. print(":bans - Shows bans in console")
  1813. print(":slock on - Turns serverlock on")
  1814. print(":slock off - Turns server lock off")
  1815. print(":kick - Removes player from the game (/e :kick and /e kick work)")
  1816. print(":wl - Whitelists the player (Can use commands, not on you though.)")
  1817. print(":unwl - Unwhitelists the player")
  1818. print(":wls -outputs whitelisted players to console (F9)")
  1819. print(":obby - Removes obby at the start. (removeobby also works.)")
  1820. print(":givers - Removes admin givers. (:removegivers :removepads and :pads also all work.)")
  1821. print(":clear --removes parts placed by players (Re-do the script after you run this. Also, use the respawn command to get unstuck.)")
  1822. print(":removehouse - removes house")
  1823. print(":baseplate - Removes baseplate. (:removebaseplate also works.)")
  1824. print(":regen - Removes baseplate. (:removeregen also works.)")
  1825. print(":barriers - Removes barriers around spawn (:removebarriers also works.)")
  1826. print(":breakgame - Breaks everything. (:removegame also works incase you got used to the remove commands.)")
  1827. print(":frick - Kills the player (Doing it without the : yields the same results)")
  1828. print(":heck - Deletes the player's character (Doing it without the : yields the same results)")
  1829. print(":roof - Clones the baseplate over the map")
  1830. print(":darkness - Clones multiple baseplates over the map (Casting a shadow on the map)")
  1831. print(":unlock - Allows you to use your btools on any part in the game (/e unlock and /e :unlock work)")
  1832. print(":gotohouse - Teleports you into the house")
  1833. print()
  1834. print('Executing "kick others/etc." wont kick those whitelisted, but if you single them out it will')
  1835. print('If a user is whitelisted he/she will not be able to see commands on their screen with :cmds,')
  1836. print('and the same goes for :bans and :wls, since the game is filtering enabled, however they will')
  1837. print('be able to use commands if whitelisted')
  1838. print('You can not be unwhitelisted or banned / kicked')
  1839. print("If someone uses the clear / clr command, you must re-apply the script.")
  1840. print("Most commands that effect players can be used silently. (Example /e :kick and /e kick would both work)")
  1841. print("-------------------------------------------")
  1842. print("Made by Timeless. (Updated by Vortex)")
  1843. print("-------------------------------------------")
  1844.  
  1845.  
  1846. end
  1847. end
  1848. end
  1849.  
  1850. game.Players.LocalPlayer.Chatted:connect(function(msg)
  1851. adminexe(game.Players.LocalPlayer,msg)
  1852. end)
  1853.  
  1854. if deletepath then
  1855. game.Players.LocalPlayer.Character.Delete.CanBeDropped = true
  1856.  
  1857. drop = Instance.new("BillboardGui")
  1858. drop.Parent = game.Players.LocalPlayer.PlayerGui
  1859.  
  1860. droplbl = Instance.new("TextLabel")
  1861. droplbl.Parent = drop
  1862. droplbl.Text = "Drop the delete tool to initialize commands"
  1863. droplbl.BackgroundTransparency = 1
  1864. droplbl.TextColor3 = Color3.new(200,0,0)
  1865. droplbl.TextScaled = true
  1866. droplbl.Size = UDim2.new(0,150,0,30)
  1867. droplbl.Position = UDim2.new(0,400,0,400)
  1868.  
  1869. wait(2)
  1870.  
  1871. drop:Destroy()
  1872. end
  1873.  
  1874. if deletepath2 then
  1875. game.Players.LocalPlayer.Backpack.Delete.CanBeDropped = true
  1876.  
  1877. drop = Instance.new("BillboardGui")
  1878. drop.Parent = game.Players.LocalPlayer.PlayerGui
  1879.  
  1880. droplbl = Instance.new("TextLabel")
  1881. droplbl.Parent = drop
  1882. droplbl.Text = "Drop the delete tool to initialize commands"
  1883. droplbl.BackgroundTransparency = 1
  1884. droplbl.TextColor3 = Color3.new(200,0,0)
  1885. droplbl.TextScaled = true
  1886. droplbl.Size = UDim2.new(0,150,0,30)
  1887. droplbl.Position = UDim2.new(0,400,0,400)
  1888.  
  1889. wait(2)
  1890.  
  1891. drop:Destroy()
  1892. end
  1893.  
  1894. game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(tool)
  1895. if tool.Name == "Delete" then
  1896. wait(.1)
  1897. tool.CanBeDropped = true
  1898.  
  1899. drop = Instance.new("BillboardGui")
  1900. drop.Parent = game.Players.LocalPlayer.PlayerGui
  1901.  
  1902. droplbl = Instance.new("TextLabel")
  1903. droplbl.Text = "Drop the delete tool to initialize commands"
  1904. droplbl.BackgroundTransparency = 1
  1905. droplbl.Parent = drop
  1906. droplbl.TextColor3 = Color3.new(200,0,0)
  1907. droplbl.TextScaled = true
  1908. droplbl.Size = UDim2.new(0,150,0,30)
  1909. droplbl.Position = UDim2.new(0,400,0,400)
  1910.  
  1911. wait(2)
  1912.  
  1913. drop:Destroy()
  1914. end
  1915. end)
  1916.  
  1917. function start(plr)
  1918.  
  1919. local found = false
  1920. local banned = false
  1921.  
  1922. for i=1,#whitelist do
  1923. if plr.Name == (whitelist[i]) then
  1924. found = true
  1925. end
  1926. end
  1927.  
  1928. for i=1,#banlist do
  1929. if plr.Name == banlist[i] then
  1930. banned = true
  1931. end
  1932.  
  1933. if banned == true then
  1934. game.Workspace.Delete.delete:FireServer(plr)
  1935. end
  1936. end
  1937. if found == false and slock == true then
  1938. game.Workspace.Delete.delete:FireServer(plr)
  1939. end
  1940.  
  1941. if found == true then
  1942. newtag(plr.Name)
  1943. plr.Chatted:connect(function(msg)
  1944. adminexe(plr,msg)
  1945. end)
  1946. end
  1947. end
  1948. game.Players.PlayerAdded:connect(function(plr)
  1949. start(plr)
  1950. end)
  1951.  
  1952.  
  1953.  
  1954. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  1955. Text = "Say :cmds for further instructions on how to access additional commands.";
  1956. Color = Color3.new(127, 0, 0);
  1957. Font = Enum.Font.SourceSansBold;
  1958. FontSize = Enum.FontSize.Size24;
  1959. })
  1960. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  1961. Text = "Drop the hammer tool to get access to the extra commands. (Make sure to inject after giving yourself btools)";
  1962. Color = Color3.new(0, 0, 127);
  1963. Font = Enum.Font.SourceSansBold;
  1964. FontSize = Enum.FontSize.Size24;
  1965. })
  1966. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  1967. Text = "If someone uses the clear / clr command, you'll have to re-apply the script.";
  1968. Color = Color3.new(0, 127, 0);
  1969. Font = Enum.Font.SourceSansBold;
  1970. FontSize = Enum.FontSize.Size24;
  1971. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement