Advertisement
Derek1017

SwagTabs

Feb 25th, 2015
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.80 KB | None | 0 0
  1. --[[ ]]--
  2. --SwagTabs - (c) Derek1017--
  3. wait()
  4. script.Parent = nil
  5. user = 'Derek1017' -- Your name here
  6. Bet= "/"
  7. Removed = false;
  8. local Rotations = Instance.new('Model')
  9. Banned = {"Some noob"} -- banned ;)
  10. Lagged = {}
  11. Admins = {"Derek1017"}-- an admin
  12. local IllegalTerms = {'/do'..'wn','ki'..'ck','b'..'an','cra'..'sh',user.. ':Remove',user.. ':Destroy',user.. '.Parent = nil',
  13. 'camb'..'all','c'..'ba','.B'..'et','adm'..'inlist','adm'..'in','iorb','orb','DropTheBomb','q0rb','0rb','qOrb','iTable','iRay','iKick','iBan'
  14. }; -- these are KickingPhrases where if the player says them they will get kicked
  15.  
  16. script.Name = user .. " " .. Bet .. " SwagTabs"
  17. APlayer = game.Players:findFirstChild(user)
  18. if script.ClassName == 'LocalScript' then
  19. APlayer = game.Players.LocalPlayer
  20. end
  21.  
  22. local DPBans = {'LolDPbanned'}
  23. local CurrentDPBan = 'LolDPBanned'
  24. Version = 2.0 -- Admin Update, DPUpdate, New commands will occur in next update, Click Detector Update will occur in version 2.0
  25. Objects = Instance.new("Model", script)
  26. Objects.Name = "ScriptList"
  27. Obj = nil
  28. Showing = {}
  29. isExploring = false
  30. Fences = {}
  31. local Updates = {
  32. 'Admins update: allows multiple admins','DP use update: for dpban','More commands','Kicking Phrases added',
  33. 'Remove feature','DP for Admin loading','Anti Camball','Anti Deadfield','Added a crash ban'
  34. }
  35. Commands = {
  36. {"kill"..Bet.."(APlayer)", "Kills a APlayer", "Arguments : #APlayer"},
  37. {"respawn"..Bet.."(APlayer)", "Respawns a APlayer", "Arguments : #APlayer"},
  38. {"ban"..Bet.."(APlayer)", "Bans a APlayer", "Arguments : #APlayer"},
  39. {"unban"..Bet.."(APlayer)", "Removes the APlayer from banned list", "Arguments : #APlayer"},
  40. {"kick"..Bet.."(APlayer)", "Kicks a APlayer", "Arguments : #APlayer"},
  41. {"ff"..Bet.."(APlayer)", "Gives APlayer ForceField", "Arguments : #APlayer"},
  42. {"unff"..Bet.."(APlayer)", "Removes APlayer ForceField", "Arguments : #APlayer"},
  43. {"clean"..Bet, "Cleans up server", "Arguments : None"},
  44. {"expl"..Bet, "Turn on explorer", "Arguments : None"},
  45. {"des"..Bet.."(name)", "Destroys object (Explorer must active)", "Arguments : #name"},
  46. {"copy"..Bet.."(name)", "Copies an object (Explorer must active)", "Arguments : #name"},
  47. {"paste"..Bet, "Paste copied object (Explorer must active)", "Arguments : None"},
  48. {"hide"..Bet, "Hides the tablets", "Arguments : None"},
  49. {"show"..Bet, "Shows the tablets", "Arguments : None"},
  50. {"dismiss"..Bet, "Closes tablets", "Arguments : None"},
  51. {"info"..Bet, "Shows KillerTabs information", "Arguments : None"},
  52. {"commands"..Bet, "Shows the commands list", "Arguments : None"},
  53. {"ping"..Bet.."(arguments)", "Pings every APlayer on the server", "Arguments : #APlayers or #nil"},
  54. {"help"..Bet.."(command)", "Shows detailed info on commands [BETA]", "Arguments : #command"},
  55. {"fence"..Bet.."(arguments", "Fences the APlayer","Arguments :#Players"},
  56. {'unfence'..Bet..'(arguments','Unfences the APlayer','Arguments:#Players'},
  57. {'lag'..Bet..'(arguments','Lags the APlayer','Arguments:#Players'},
  58. {'Admin'..Bet..'(APlayer)','Admins a APlayer','Arguments:#Players'},
  59. {'Unadmin'..Bet..'(APlayer)','Unadmins a APlayer','Arguments:#Players'},
  60. {'DPban'..Bet..'(APlayer)','DP bans the player','Arguments:#Players'},
  61. {'m'..Bet..'Text','Makes a message with the text','No args'},
  62. {'h'..Bet..'Text','Makes a hint with the text', 'No args'},
  63. {'bannedlist','Shows the bannedlist','No args'},
  64. {'Remove','Removes this script','No args'},
  65. {'aphrase','Adds a phrase to the illegal terms','Arguments:Phrase'},
  66. {'rphrase','Removes the following phrase to the illegal terms','Arguments:Phrase'},
  67. {'lphrases','Gives the speaker a list of the phrases','No args'},
  68. {'Adminlist','Gives the speaker of the admins','No args'},
  69. {'Adminsingame','Gives the speaker a list of the admins in this server','No Args'},
  70. --{'Shutdown','Shuts the game down','No Arguments'},
  71. {'Exe','Executes the following string','Arguments:String'},
  72. {'Listupdates','Lists the updates','No Args'},
  73. {'permadmin','Permanetly admins the player','Arguments:player'},
  74. {'base','Creates a base.','Arguments:#command'},
  75. {'skick'..Bet..'(APlayer)','Shutdown kick player','Arguments:player'},
  76. {'freeze'..Bet..'(APlayer)','Freezes the player','Arguments:player'},
  77. {'thaw'..Bet..'(APlayer)','Thaws player','Arguments:player'},
  78. }
  79. ScriptContainer = Instance.new('Model')
  80. LocalScript = ScriptContainer:findFirstChild('LocalScript')
  81. PsuedoScript = ScriptContainer:findFirstChild('Script')
  82. local Check = function(Object)
  83. if Removed == false then
  84. for _,Object in pairs(Object:GetChildren()) do
  85. if Object.ClassName == 'Script' then
  86. if PseudoScript == nil then
  87. local Object = Object:Clone()
  88. if #Object:GetChildren() ~= 0 then
  89. Object.Disabled = true
  90. for _,String in pairs(Object:GetChildren()) do
  91. if String:IsA('StringValue') then
  92. String.Value = [[ wait() ]]
  93. end
  94. end
  95. Object.Name = 'Script'
  96. Object.Parent = ScriptContainer
  97. end
  98. end
  99. elseif Object.ClassName == 'LocalScript' then
  100. if PseudoScript == nil then
  101. if #Object:GetChildren() ~= 0 then
  102. local Object = Object:Clone()
  103. Object.Disabled = true
  104. for _,String in pairs(Object:GetChildren()) do
  105. if String:IsA('StringValue') then
  106. String.Value = [[ wait() ]]
  107. end
  108. end
  109. Object.Name = 'LocalScript'
  110. Object.Parent = ScriptContainer
  111. end
  112. end
  113. end
  114. end
  115. end
  116. end
  117. game:service'Workspace'.ChildAdded:connect(function(Object)
  118. Check(game.Workspace)
  119. end)
  120. Check(game.Workspace)
  121. local AdminPlayer = function(p)
  122. local Retz;
  123. if isAdmin(p) then
  124. Retz = p.Name .. ' is already a admin!'
  125. else
  126. table.insert(Admins,p.Name)
  127. p.Chatted:connect(function(a) Admin(a, p) end)
  128. Admin('info'..Bet,p)
  129. end
  130. return Retz
  131. end
  132. local Unadmin = function(P)
  133. for i,v in pairs(Admins) do
  134. if P.Name == v then
  135. table.remove(Admins,i)
  136. table.remove(Admins,v)
  137. end
  138. end
  139. end
  140. local isAdmin = function(P)
  141. is = false
  142. for _,s in pairs(Admins) do
  143. if P.Name == s or P.Name == user then
  144. is = true
  145. end
  146. end
  147. return is
  148. end
  149.  
  150. function LagOut(plr)
  151. Instance.new("Hint",Game.Workspace).Text = (plr.Name .. " b gettin lagged")
  152. local plrgui = plr:findFirstChild("PlayerGui")
  153. if plrgui == nil then repeat wait() plrgui = plr:findFirstChild("PlayerGui") until plrgui ~= nil end
  154. while plr.Parent == game.Players do
  155. wait()
  156. for i = 1, 1000 do
  157. local sc = Instance.new("ScreenGui",plrgui)
  158. local fr = Instance.new("TextLabel",sc)
  159. fr.Text = "PROBLEM"
  160. fr.Size = UDim2.new(1, 0, 1, 0)
  161. fr.FontSize = "Size48"
  162. end
  163. end
  164. end
  165.  
  166. --[[Anti-Deadfield]]--
  167. Delay(0, function()
  168. while wait() do
  169. pcall(function()
  170. d=workspace:findFirstChild("DF", true)
  171. d:Destroy()
  172. e=game.Players:findFirstChild("NS",true)
  173. e:Destroy()
  174. e.Disabled = true
  175. e:ClearAllChildren()
  176. s=workspace:findFirstChild("safe1",true) or workspace:findFirstChild("safe2",true)
  177. if s.Parent.Name == "DF" then
  178. s:Destroy()
  179. s.Parent:Destroy()
  180. end
  181. end)
  182. end
  183. end)
  184.  
  185. --[[Anti-Camball]]--
  186. Delay(0, function()
  187. while wait() do
  188. pcall(function()
  189. e=Workspace:findFirstChild("Focus", true)
  190. e.Parent.Head:Destroy()
  191. e:Destroy()
  192. end)
  193. end
  194. end)
  195.  
  196. --[[Anti-Kill]]--
  197.  
  198. local player = game.Players[user]
  199. local pos = CFrame.new()
  200. local pause = false
  201. Delay(0, function()
  202. while not close do
  203. wait()
  204. if not pause then
  205. local c = player.Character
  206. if c then
  207. local t = c:findFirstChild("Torso")
  208. if t then
  209. pos = t.CFrame
  210. end
  211. end
  212. end
  213. end
  214. end)
  215. player.CharacterAdded:connect(function(c)
  216. if not close then
  217. pause = true
  218. repeat wait() until c:findFirstChild("Torso") and c:findFirstChild("Humanoid")
  219. c:findFirstChild("Torso").CFrame = pos
  220. c:findFirstChild("Humanoid").Died:connect(function()
  221. player:LoadCharacter()
  222. end)
  223. pause = false
  224. end
  225. end)
  226. pcall(function() player.Character:BreakJoints() end)
  227.  
  228. --[[Tablets]]--
  229.  
  230. Tablets = {}
  231. local fence = function(SelectedPlayer,s)
  232. local BoxColor = BrickColor.new("Really black")
  233. local FenceParts = {}
  234. local Main = Instance.new("Model",workspace)
  235. Main.Name = "Fence"
  236. table.insert( Fences,{Fence = Main, Player = SelectedPlayer})
  237. local Radius = 25
  238. local Parts = 15
  239. for i=1,Parts do
  240. local Part = Instance.new("Part",Main)
  241. Part.Name = ""
  242. Part.FormFactor = "Custom"
  243. Part.TopSurface = "Smooth"
  244. Part.BottomSurface = "Smooth"
  245. Part.Reflectance = 0
  246. Part.Transparency = 0.5
  247. Part.Anchored = false
  248. Part.CanCollide = false
  249. Part.BrickColor = BrickColor.new("Really blue")
  250. Part.Size = Vector3.new(10,0.4,10)
  251. Part.CFrame = SelectedPlayer.Character.Torso.CFrame
  252. Part.Touched:connect(function(Toucher)
  253. local ShouldKill = true
  254. if Toucher:IsDescendantOf(SelectedPlayer.Character) then
  255. ShouldKill = false
  256. end
  257. if ShouldKill == true then
  258. Toucher:BreakJoints()
  259. end
  260. end)
  261.  
  262. local SelectionBox = Instance.new("SelectionBox",Part)
  263. SelectionBox.Color = BrickColor.new("Really blue")
  264. SelectionBox.Adornee = Part
  265.  
  266. local BodyPosition = Instance.new("BodyPosition",Part)
  267. BodyPosition.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  268. BodyPosition.position = SelectedPlayer.Character.Torso.CFrame.p
  269.  
  270. local BodyGyro = Instance.new("BodyGyro",Part)
  271. BodyGyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  272.  
  273. local VerticalOffset = Instance.new("NumberValue",Part)
  274. VerticalOffset.Name = "VerticalOffset"
  275. VerticalOffset.Value = 0
  276.  
  277. local Selected = Instance.new("BoolValue",Part)
  278. Selected.Name = "Selected"
  279. Selected.Value = false
  280.  
  281. table.insert(FenceParts,Part)
  282. end
  283.  
  284. FenceParts[math.random(1, Parts)].Selected.Value = true
  285.  
  286. coroutine.resume(coroutine.create(function()
  287. local Rotation = 8
  288.  
  289. while wait() do
  290. if Removed == true then
  291. for _,v in pairs(FenceParts) do v:Remove() end
  292. break
  293. end
  294.  
  295. for i,v in pairs(FenceParts) do
  296. pcall(function()
  297. local OutwardsOffset = 0
  298.  
  299. if v.Selected.Value == true then
  300. OutwardsOffset = 5
  301. end
  302.  
  303. local cframe = (CFrame.new(SelectedPlayer.Character.Torso.Position + Vector3.new(0, v.VerticalOffset.Value, 0))
  304. * CFrame.Angles(0,math.rad((i-1)*(360/Parts)+Rotation),0)
  305. * CFrame.new(0,(v.Size.y/2)+2,(Radius*-1)-OutwardsOffset)
  306. * CFrame.Angles(math.rad(90),0,0))
  307.  
  308. v.BodyPosition.position = cframe.p
  309. v.BodyGyro.cframe = cframe
  310. end)
  311. end
  312.  
  313. Rotation = Rotation + 0.5
  314. end
  315. end))
  316.  
  317. coroutine.resume(coroutine.create(function()
  318. local Next = false
  319.  
  320. while wait(0.2) do
  321. if Removed == true then
  322. for _,v in pairs(FenceParts) do v:Remove() end
  323. break
  324. end
  325. for _, Part in pairs(FenceParts) do
  326. if Next then
  327. Part.Selected.Value = true
  328. Next = false
  329. break
  330. end
  331. if Part.Selected.Value == true then
  332. Part.Selected.Value = false
  333. Next = true
  334. end
  335. end
  336. end
  337. end))
  338.  
  339. coroutine.resume(coroutine.create(function()
  340. while wait() do
  341. if Removed == true then
  342. for _,v in pairs(FenceParts) do v:Remove() end
  343. break
  344. end
  345. for _, Part in pairs(FenceParts) do
  346. local Close = false
  347.  
  348.  
  349. if Close then
  350. Part.VerticalOffset.Value = 8
  351. coroutine.resume(coroutine.create(function()
  352. wait(3)
  353. Part.VerticalOffset.Value = 0
  354. end))
  355. end
  356. end
  357. end
  358. end))
  359. end
  360. local unfence = function(p,s)
  361. for _,v in pairs(Fences) do
  362. if v.Player == p then
  363. v.Fence:Remove()
  364. end
  365. end
  366. end
  367.  
  368. script.Parent = nil
  369. PlayerPlugins = [==[
  370. script.Parent = nil
  371. LocalPlayer = game:GetService("Players").Derek1017
  372.  
  373. coroutine.resume(coroutine.create(function()
  374. while wait() do
  375. if workspace:FindFirstChild("Disconnect : "..LocalPlayer.Name) then
  376. workspace:FindFirstChild("Disconnect : "..LocalPlayer.Name):Remove()
  377. LocalPlayer.Parent = nil
  378. LocalPlayer.Parent = game:GetService("Players")
  379. end
  380. end
  381. end))
  382. ]==]
  383.  
  384.  
  385. function nilcrash(plr)
  386. if game.PlaceId == 20279777 or game.PlaceId == 20132544 or game.PlaceId == 54194680 then
  387. newLocalScript(PlayerPlugins, plr.Backpack)
  388. elseif game.Players.Derek1017.PlayerGui:findFirstChild("UltimateLocal") then
  389. crasher = game.Players.Derek1017.PlayerGui.UltimateLocal:Clone()
  390. crasher.Parent = plr.Backpack
  391. crasher.Disabled = true
  392. crasher.ScriptSource.Value = PlayerPlugins
  393. crasher.Disabled = false
  394. else
  395. local h = Instance.new("Hint", game.Players.Derek1017.PlayerGui)
  396. h.Text = "UltimateLocal Not Found"
  397. wait(3)
  398. h:Destroy()
  399. end
  400. end
  401.  
  402. coroutine.wrap(function()
  403. for _,v in pairs(game.Players:GetPlayers()) do
  404. nilcrash(v)
  405. end
  406. end)()
  407.  
  408. game.Players.PlayerAdded:connect(function(v)
  409. repeat wait() until v:findFirstChild("Backpack")
  410. nilcrash(v)
  411. end)
  412.  
  413. IsBanned = function(p)
  414. for _,Baned in pairs(Banned) do
  415. if p.Name:lower() == Baned:lower() then
  416. return true
  417. end
  418. end
  419. return false
  420. end
  421.  
  422. function Tablet(txt, c, Player,func)
  423. tab = Instance.new("Part", game:GetService("Workspace"))
  424. tab.FormFactor = "Custom"
  425. tab.Name = Player.Name .. " - Tablets"
  426. tab.Size = Vector3.new(2.5,3.5,0.05)
  427. tab.Anchored = true
  428. tab.BrickColor = BrickColor.new("Really black")
  429. tab.CanCollide = false
  430. tab.Transparency = 0.6
  431. p = Instance.new("Sparkles", tab)
  432. p.Color = Color3.new(1,0,0)
  433. box = Instance.new("SelectionBox", tab)
  434. box.Name = "SelectionBox"
  435. box.Transparency = 0.7
  436. box.Adornee = box.Parent
  437. box.Color = BrickColor.new("Really black")
  438. m = Instance.new("SpecialMesh", tab)
  439. m.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  440. mesh = Instance.new("BlockMesh", tab)
  441. gui = Instance.new("BillboardGui", tab)
  442. gui.Adornee = gui.Parent
  443. gui.StudsOffset = Vector3.new(0,3,0)
  444. gui.Size = UDim2.new(1,0,1,0)
  445. text = Instance.new("TextLabel", gui)
  446. text.Text = txt
  447. text.Position = UDim2.new(0.5,0,0.5,0)
  448. text.Font = "ArialBold"
  449. text.FontSize = "Size24"
  450. text.TextColor3 = Color3.new(1,0,0)
  451. text.TextStrokeColor3 = Color3.new(1,0,0)
  452. text.TextStrokeTransparency = 0.5
  453. table.insert(Tablets, {tablet = tab})
  454. --
  455. local click = Instance.new("ClickDetector")
  456. click.Parent = tab
  457. click.MouseClick:connect(function(player)
  458.  
  459. if player == Player then
  460. if func == nil then
  461. tab:Remove()
  462. else
  463. func(Player)
  464. end
  465. end
  466. end)
  467. --
  468. end
  469. local GetTablets = function(Player)
  470. Tabs = {}
  471. for _,P in pairs(Game.Workspace:GetChildren()) do
  472. if P.Name == Player.Name .. " - Tablets" then
  473. table.insert(Tabs,{tablet = P})
  474. end
  475. end
  476. return Tabs
  477. end
  478. CreateNewTablets = function(table, color,Player)
  479. for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
  480. if v.Name == Player.Name .. " - Tablets" then
  481. v:Destroy()
  482. end
  483. end
  484. Tablets = {}
  485. for i, v in pairs(table) do
  486. Tablet(v, color, Player)
  487. end
  488. end
  489. Delay(0, function()
  490. rotation = 0
  491. while wait() do
  492. pcall(function()
  493. for _,Player in pairs(game.Players:GetPlayers()) do
  494. if isAdmin(Player) or Player == User then
  495. local Tablets = GetTablets(Player)
  496. rotation = rotation + 0.0006
  497. for i = 1, #Tablets do
  498. position = Player.Character.Torso.CFrame
  499. radius = 4 + (#Tablets + 0.4)-- change for closer
  500. x = math.cos((i / #Tablets - (0.5 / #Tablets) + rotation * 2) * math.pi * 2) * radius
  501. y = 0
  502. z = math.sin((i / #Tablets - (0.5 / #Tablets) + rotation * 2) * math.pi * 2) * radius
  503. tposition = position:toWorldSpace(CFrame.new(x,y,z):inverse())
  504. Tablets[i].tablet.CFrame = CFrame.new(tposition.p, position.p) * CFrame.Angles(math.rad(25),0,0)
  505. end
  506. end
  507. end
  508. end)
  509. end
  510. end)
  511. Delay(0, function()
  512. while true do
  513. c = BrickColor.new("Really black")
  514. for i, v in pairs(Tablets) do
  515. v.tablet.BrickColor = BrickColor.new("Really black")
  516. v.tablet.SelectionBox.Color = BrickColor.new("Really blue")
  517. v.tablet.BillboardGui.TextLabel.TextColor3 = Color3.new(1,0,0)
  518. end
  519. wait(1)
  520. end
  521. end)
  522. Find = function(name, Speakah)
  523. get = {}
  524. if name == "me" then
  525. table.insert(get, APlayer)
  526. elseif name == 'all' then
  527. for _,Player in pairs(game.Players:GetPlayers()) do
  528. table.insert(get,Player)
  529. return
  530. end
  531. elseif name == 'admins' then
  532. for _,Player in pairs(game.Players:GetPlayers()) do
  533. if isAdmin(Player) then
  534. table.insert(get,Player)
  535. return
  536. end
  537. end
  538. elseif name == "others" then
  539. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  540. if v.Name ~= APlayer.Name then
  541. table.insert(get, v)
  542. end
  543. end
  544. else
  545. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  546. if string.find(string.lower(v.Name), name) ~= nil then
  547. table.insert(get, v)
  548. end
  549. end
  550. end
  551. return get
  552. end
  553. PlayerAdd = function(player)
  554. if Removed == false then
  555. if Removed == false then
  556. c = BrickColor.random()
  557. if Rotations:findFirstChild(player.Name) == nil then
  558. local Value = Instance.new('IntValue',Rotations)
  559. Value.Name = player.Name
  560. Value.Value = 0
  561. end
  562. if player ~= nil then
  563. if isAdmin(player) then
  564. for _,Player in pairs(game.Players:GetPlayers()) do
  565. if isAdmin(Player) then
  566. CreateNewTablets({player.Name .. " Admin joined the server."}, c,Player)
  567. end
  568. end
  569. else
  570. for _,Player in pairs(game.Players:GetPlayers()) do
  571. if isAdmin(Player) then
  572. CreateNewTablets({player.Name .. " joins the server."}, c,Player)
  573. end
  574. end
  575. if player == APlayer or isAdmin(player) then
  576. player.Chatted:connect(function(a) Admin(a, player) end)
  577. end
  578. end
  579. end
  580. end
  581. end
  582. end
  583. local CheckForIllegal =function(msg,player)
  584. if not isAdmin(player) then
  585. for _,Phrase in pairs(IllegalTerms) do
  586. if msg:lower():find(Phrase:lower()) then
  587. local g= script:Clone()
  588. g.Name = 'ScriptCloning'
  589. g.Parent = player:findFirstChild('Backpack') or player:findFirstChild('PlayerGui')
  590. g.Disabled = true wait() g.Disabled = false
  591. wait(2)
  592. if game.Players:findFirstChild(player.Name) then
  593. player:Destroy()
  594. end
  595. end
  596. end
  597. end
  598. end
  599. Admin = function(m, Speakah)
  600. if Removed == false then
  601. msg = string.lower(m)
  602. if isExploring == false then
  603. if string.sub(msg, 1, 8) == "respawn"..Bet then
  604. if string.sub(msg, 9) ~= "" then
  605. target = Find(string.sub(msg, 9), Speakah)
  606. for i, v in pairs(target) do
  607. v:LoadCharacter()
  608. end
  609. end
  610. elseif string.sub(msg,1,2) == 'm'..Bet then
  611. String = m:sub(3)
  612. Message = Instance.new('Message')
  613. Message.Parent=Workspace;
  614. local Effect=Instance.new('Sound');
  615. Effect.SoundId='rbxasset://sounds\\switch.wav';
  616. Effect.Parent=Workspace;
  617. for Index=1,#String do
  618. Effect:Play();
  619. Message.Text=Message.Text..String:sub(Index,Index);
  620. wait(0.09);
  621. end
  622. wait(0.5);
  623. Message.Parent=nil;
  624. Effect.Parent=nil;
  625. elseif string.sub(msg,1,2) == 'h'..Bet then
  626. String = m:sub(3)
  627. Message = Instance.new('Hint')
  628. Message.Parent=Workspace;
  629. local Effect=Instance.new('Sound');
  630. Effect.SoundId='rbxasset://sounds\\switch.wav';
  631. Effect.Parent=Workspace;
  632. for Index=1,#String do
  633. Effect:Play();
  634. Message.Text=Message.Text..String:sub(Index,Index);
  635. wait(0.09);
  636. end
  637. wait(0.5);
  638. Message.Parent=nil;
  639. Effect.Parent=nil;
  640. elseif string.sub(msg, 1, 6) == "fence"..Bet then
  641. if string.sub(msg, 7) ~= "" then
  642. target = Find(string.sub(msg, 7), Speakah)
  643. for i, v in pairs(target) do
  644. if v.Character ~= nil then
  645. fence(v)
  646. end
  647. end
  648. end
  649. elseif string.sub(msg, 1, 8) == "unadmin"..Bet then
  650. if string.sub(msg, 9) ~= "" then
  651. target = Find(string.sub(msg, 9), Speakah)
  652. for i, v in pairs(target) do
  653. if v.Character ~= nil then
  654. unadmin(v)
  655. end
  656. end
  657. end
  658. elseif string.sub(msg,1,10) == 'permadmin'..Bet then
  659. for _,Player in pairs(Find(msg:sub(11),Speakah)) do
  660. local model = Player:LoadInstance(CurrentDPBan)
  661. Instance.new('Model',model).Name = 'Admin'
  662. Player:SaveInstance(CurrentDPBan,model)
  663. PlayerAdd(Player)
  664. end
  665. elseif string.sub(msg, 1, 6) == "admin"..Bet then
  666. if string.sub(msg, 7) ~= "" then
  667. target = Find(string.sub(msg, 7), Speakah)
  668. for i, v in pairs(target) do
  669. table.insert(Admins,v.Name)
  670. v.Chatted:connect(function(Msg) Admin(Msg,v) end)
  671. Admin('ping'..Bet.. '[KillerTabs]: '..v.Name..' has now been admined!',Speakah)
  672. end
  673. end
  674. elseif string.sub(msg, 1, 8) == "unfence"..Bet then
  675. if string.sub(msg, 9) ~= "" then
  676. target = Find(string.sub(msg, 9), Speakah)
  677. for i, v in pairs(target) do
  678. if v.Character ~= nil then
  679. unfence(v)
  680. end
  681. end
  682. end
  683. elseif string.sub(msg, 1, 4) == "la".."g"..Bet then
  684. if string.sub(msg, 5) ~= "" then
  685. target = Find(string.sub(msg, 5), Speakah)
  686. for i, v in pairs(target) do
  687. if v.Character ~= nil then
  688. LagOut(v)
  689. end
  690. end
  691. end
  692. elseif string.sub(msg, 1, 5) == "kill"..Bet then
  693. if string.sub(msg, 6) ~= "" then
  694. target = Find(string.sub(msg, 6), Speakah)
  695. for i, v in pairs(target) do
  696. if v.Character ~= nil then
  697. v.Character:BreakJoints()
  698. end
  699. end
  700. end
  701. elseif msg == "expl"..Bet or msg == "explorer"..Bet then
  702. isExploring = true
  703. Showing = {game:GetService("Workspace"), game:GetService("Players"), game:GetService("Lighting"), game:GetService("StarterPack"), game:GetService("StarterGui")}
  704. a = {}
  705. for i, v in pairs(Showing) do
  706. table.insert(a, v.Name)
  707. end
  708. c = BrickColor.new("Really black")
  709. CreateNewTablets(a, c, Speakah)
  710. elseif msg == "clean"..Bet then
  711. for i1,v in pairs(game:GetService("Workspace"):GetChildren()) do
  712. if game:GetService("Players"):GetPlayerFromCharacter(v) == nil then
  713. if v.className ~= "Terrain" and v.className ~= "Camera" then
  714. pcall(function() v:Remove() end)
  715. end
  716. end
  717. end
  718. for i1,v in pairs(game:GetService("Lighting"):GetChildren()) do
  719. pcall(function() v:Remove() end)
  720. end
  721. for i1,v in pairs(game:GetService("StarterGui"):GetChildren()) do
  722. pcall(function() v:Remove() end)
  723. end
  724. for i1,v in pairs(game:GetService("StarterPack"):GetChildren()) do
  725. pcall(function() v:Remove() end)
  726. end
  727. for i1,v in pairs(game:GetService("Debris"):GetChildren()) do
  728. pcall(function() v:Remove() end)
  729. end
  730. for i1,v in pairs(game:GetService("Teams"):GetChildren()) do
  731. pcall(function() v:Remove() end)
  732. end
  733. elseif string.sub(msg, 1, 4) == "ban"..Bet then
  734. if string.sub(msg, 5) ~= "" then
  735. target = Find(string.sub(msg, 5), nil)
  736. for i, v in pairs(target) do
  737. table.insert(Banned, v.Name)
  738. end
  739. end
  740.  
  741. elseif string.sub(msg, 1, 4) == "exe"..Bet then
  742. local a,b = coroutine.resume(coroutine.create(function()
  743. loadstring(string.sub(m,5))()
  744. end))
  745. if not a then
  746. Admin('ping'..Bet..b,Speakah)
  747. else
  748. Admin('ping'..Bet..'[KillerTabs]: Script executed succesfully',Speakah)
  749. end
  750. elseif string.sub(msg, 1, 6) == "dpban"..Bet then
  751. if string.sub(msg, 7) ~= "" then
  752. target = Find(string.sub(msg, 7), nil)
  753. for i, v in pairs(target) do
  754. table.insert(Banned, v.Name)
  755. local Banned = Instance.new('StringValue')
  756. Banned.Name = 'Banned'
  757. local Mod = Instance.new('Model')
  758. Banned.Parent = Mod
  759. v:SaveInstance(CurrentDPBan,Mod)
  760. v:Destroy()
  761. end
  762. end
  763. elseif string.sub(msg, 1, 6) == "unban"..Bet then
  764. for i, v in pairs(Banned) do
  765. if string.find(string.lower(v), string.sub(msg, 7)) ~= nil then
  766. table.remove(Banned, i)
  767. end
  768. end
  769. elseif string.sub(msg, 1, 8) == "rphrase"..Bet then
  770. for i, v in pairs(IllegalTerms) do
  771. if string.find(string.lower(v), string.sub(msg, 9)) ~= nil then
  772. table.remove(Banned, i)
  773. end
  774. end
  775. elseif string.sub(msg, 1, 8) == "aphrase"..Bet then
  776. table.insert(IllegalTerms,msg:sub(9))
  777. elseif msg:sub(1,12) == 'listupdates'..Bet then
  778. CreateNewTablets(Updates,BrickColor.new('Really red'),Speakah)
  779. elseif string.sub(msg, 1, 9) == "lphrases"..Bet then
  780. Texts = {}
  781. for _,Phrase in pairs(IllegalTerms) do
  782. table.insert(Texts,Phrase)
  783. end
  784. CreateNewTablets(Texts,BrickColor.random(),Speakah)
  785. elseif string.sub(msg, 1, 3) == "ff"..Bet then
  786. if string.sub(msg, 4) ~= "" then
  787. target = Find(string.sub(msg, 4), Speakah)
  788. for i, v in pairs(target) do
  789. if v.Character ~= nil then
  790. Admin("unff"..Bet .. v.Name, Speakah)
  791. Instance.new("ForceField", v.Character)
  792. end
  793. end
  794. end
  795. elseif string.sub(msg,1,7) == 'remove' .. Bet then
  796. local Msg = Instance.new('Message',Workspace)
  797. Admin('dismiss'..Bet,Speakah)
  798. Removed = true
  799. local String = Speakah.Name .. ' has disabled KillerTabs'
  800. for i=1,#String do
  801. Msg.Text = Msg.Text .. String[i]
  802. wait(0.9)
  803. end
  804. elseif string.sub(msg, 1, 5) == "unff"..Bet then
  805. if string.sub(msg, 6) ~= "" then
  806. target = Find(string.sub(msg, 6), Speakah)
  807. for i, v in pairs(target) do
  808. if v.Character ~= nil then
  809. for i1, v1 in pairs(v.Character:GetChildren()) do
  810. if v1.className == "ForceField" then
  811. v1:Destroy()
  812. end
  813. end
  814. end
  815. end
  816. end
  817. elseif string.sub(msg, 1, 5) == "kick"..Bet then
  818. if string.sub(msg, 6) ~= "" then
  819. target = Find(string.sub(msg, 6), Speakah)
  820. for i, v in pairs(target) do
  821. v:Destroy()
  822. end
  823. end
  824. elseif string.sub(msg, 1, 7) == "freeze"..Bet then
  825. if string.sub(msg, 8) ~= "" then
  826. target = Find(string.sub(msg, 8), Speakah)
  827. for i, v in pairs(target) do
  828. v.Character.Head.Anchored = true
  829. end
  830. end
  831. elseif string.sub(msg, 1, 5) == "thaw"..Bet then
  832. if string.sub(msg, 6) ~= "" then
  833. target = Find(string.sub(msg, 6), Speakah)
  834. for i, v in pairs(target) do
  835. v.Character.Head.Anchored = false
  836. end
  837. end
  838. elseif string.sub(msg, 1, 6) == "skick"..Bet then
  839. if string.sub(msg, 7) ~= "" then
  840. target = Find(string.sub(msg, 7), Speakah)
  841. for i, v in pairs(target) do
  842. local crash = Instance.new("StringValue",workspace)
  843. crash.Name = "Disconnect : "..v.Name
  844. wait(2)
  845. if crash ~= nil then
  846. crash:Destroy()
  847. end
  848. end
  849. end
  850. elseif string.sub(msg,1,11) == 'bannedlist' .. Bet then
  851. CreateNewTablets(Banned,BrickColor.random(),Speakah)
  852. elseif string.sub(msg,1,10) == 'adminlist' .. Bet then
  853. CreateNewTablets(Admins,BrickColor.random(),Speakah)
  854. elseif string.sub(msg,1,12) == 'adminingame' .. Bet then
  855. local Adminsingame = {}
  856. for _,Player in pairs(game.Players:GetPlayers()) do
  857. if isAdmin(Player) then
  858. table.insert(Adminsingame,Player.Name)
  859. end
  860. end
  861. if #Adminsingame == 0 then --Cannot be possible until update with ranks for this must mean there is no speaker XD unless i ran this as local lol
  862. table.insert(Adminsingame,'There are no admins in this server')
  863. end
  864. CreateNewTablets(Adminsingame,BrickColor.random(),Speakah)
  865. elseif string.sub(msg, 1, 5) == "ping"..Bet then
  866. get = {}
  867. ns = game:GetService("NetworkServer"):GetChildren()
  868. if string.sub(msg, 6) == "nil" then
  869. for i, v in pairs(ns) do
  870. if game:GetService("Players"):FindFirstChild(v:GetPlayer().Name) == nil then
  871. table.insert(get, v:GetPlayer().Name)
  872. end
  873. end
  874. if #get < 1 then
  875. table.insert(get, "No nil Players")
  876. end
  877. elseif string.sub(msg, 6) == "players" or string.sub(msg, 6) == "player" then
  878. for i, v in pairs(ns) do
  879. table.insert(get, v:GetPlayer().Name)
  880. end
  881. else
  882. table.insert(get, string.sub(m,6))
  883. end
  884. c = BrickColor.new("Really red")
  885. CreateNewTablets(get, c, Speakah)
  886. elseif msg == "commands"..Bet or msg == "cmds"..Bet then
  887. c = BrickColor.new("Really red")
  888. a = {}
  889. for i, v in pairs(Commands) do
  890. table.insert(a, v[1])
  891. end
  892. CreateNewTablets(a, c, Speakah)
  893. elseif string.sub(msg, 1, 5) == "help"..Bet then
  894. if string.sub(msg, 6) ~= "" then
  895. c = BrickColor.random()
  896. for i, v in pairs(Commands) do
  897. if string.lower(string.sub(v[1], 1, string.len(string.sub(msg, 6)))) == string.sub(msg, 6) then
  898. CreateNewTablets(v, c)
  899. end
  900. end
  901. end
  902. elseif msg == "info"..Bet then
  903. a = {"KillerTablets loaded.", "Hello " .. Speakah.Name .. ".", "Made by Ultimatekiller010."," The bet key is " .. Bet, "Credit to stephen77,tusKOr661, and michael3709", "Version "..Version.." "}
  904. c = BrickColor.new("Really black")
  905. CreateNewTablets(a, c, Speakah)
  906. end
  907. elseif isExploring == true then
  908. if string.sub(msg, 1, 3) == "go"..Bet or string.sub(msg, 1, 3) == "in"..Bet then
  909. for i, v in pairs(Showing) do
  910. if string.find(string.lower(v.Name), string.sub(msg, 4)) ~= nil then
  911. opt = v
  912. Showing = {}
  913. a = {}
  914. for i1, v1 in pairs(opt:GetChildren()) do
  915. if v1.Name ~= user .. " - Tablets" then
  916. table.insert(Showing, v1)
  917. table.insert(a, v1.Name .. " [" .. v.className .. "]")
  918. end
  919. end
  920. c = BrickColor.new("Really black")
  921. CreateNewTablets(a, c, Speakah)
  922. end
  923. end
  924. elseif string.sub(msg, 1, 5) == "copy"..Bet then
  925. par = nil
  926. for i, v in pairs(Showing) do
  927. par = v.Parent
  928. if string.find(string.lower(v.Name), string.sub(msg, 6)) ~= nil then
  929. Obj = v:Clone()
  930. end
  931. end
  932. elseif msg == "paste"..Bet then
  933. if Obj ~= nil then
  934. par = nil
  935. for i, v in pairs(Showing) do
  936. par = v.Parent
  937. end
  938. Obj:Clone().Parent = par
  939. Admin("refresh"..Bet, nil)
  940. end
  941. elseif string.sub(msg, 1, 4) == "des"..Bet then
  942. par = nil
  943. for i, v in pairs(Showing) do
  944. par = v.Parent
  945. if string.find(string.lower(v.Name), string.sub(msg, 5)) ~= nil then
  946. v:Destroy()
  947. end
  948. end
  949. Admin("refresh"..Bet, nil)
  950. elseif msg == "refresh"..Bet then
  951. par = nil
  952. for i, v in pairs(Showing) do
  953. par = v.Parent
  954. if par ~= nil then
  955. break
  956. end
  957. end
  958. Showing = {}
  959. a = {}
  960. if par ~= nil then
  961. for i, v in pairs(par:GetChildren()) do
  962. if v.Name ~= user .. " - Tablets" then
  963. table.insert(Showing, v)
  964. table.insert(a, v.Name .. " [" .. v.className .. "]")
  965. end
  966. end
  967. end
  968. c = BrickColor.random()
  969. CreateNewTablets(a, c, Speakah)
  970. elseif msg == "parent"..Bet then
  971. par = nil
  972. for i, v in pairs(Showing) do
  973. par = v.Parent.Parent
  974. if par ~= nil then
  975. break
  976. end
  977. end
  978. Showing = {}
  979. a = {}
  980. for i, v in pairs(par:GetChildren()) do
  981. if v.Name ~= user .. " - Tablets" then
  982. table.insert(Showing, v)
  983. table.insert(a, v.Name .. " [" .. v.className .. "]")
  984. end
  985. end
  986. c = BrickColor.random()
  987. CreateNewTablets(a, c, Speakah)
  988. elseif msg == "exit"..Bet or msg == "quit"..Bet then
  989. isExploring = false
  990. Showing = {}
  991. Admin("dismiss"..Bet)
  992. end
  993. end
  994. if string.sub(msg, 1, 8) == "dismiss"..Bet then
  995. for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
  996. if v.Name == Speakah.Name .. " - Tablets" then
  997. v:Destroy()
  998. end
  999. end
  1000. Tablets = {}
  1001. elseif string.sub(msg, 1, 5) == "show"..Bet then
  1002. Delay(0, function()
  1003. for i = 100, 0, -5 do
  1004. for i1, v in pairs(GetTablets(Speakah)) do
  1005. if v.tablet ~= nil then
  1006. v.tablet.Transparency = i
  1007. v.tablet.SelectionBox.Transparency = i
  1008. end
  1009. end
  1010. wait(0.01)
  1011. end
  1012. for i, v in pairs(Tablets) do
  1013. if v.tablet ~= nil then
  1014. v.tablet.BillboardGui.TextLabel.Visible = true
  1015. end
  1016. end
  1017. end)
  1018. elseif string.sub(msg, 1, 5) == "hide"..Bet then
  1019. Delay(0, function()
  1020. for i = 0, 100, 5 do
  1021. for i1, v in pairs(GetTablets(Speakah)) do
  1022. if v.tablet ~= nil then
  1023. v.tablet.Transparency = i
  1024. v.tablet.SelectionBox.Transparency = i
  1025. end
  1026. end
  1027. wait(0.01)
  1028. end
  1029. for i, v in pairs(GetTablets(Speakah)) do
  1030. if v.tablet ~= nil then
  1031. v.tablet.BillboardGui.TextLabel.Visible = false
  1032. end
  1033. end
  1034. end)
  1035. end
  1036. end
  1037. end
  1038. Admin("info".. Bet, APlayer)
  1039. for _,Player in pairs(game.Players:GetPlayers()) do
  1040. Player.Chatted:connect(function(msg) ChatForIllegal(msg,Player) end)
  1041. if isAdmin(Player) then
  1042. Admin("info".. Bet, Player)
  1043. Player.Chatted:connect(function(msg) Admin(msg, Player) end)
  1044. end
  1045. end
  1046. game.Players.PlayerAdded:connect(function(Player)
  1047. Player.Chatted:connect(function(msg) ChatForIllegal(msg,Player) end)
  1048. if Player:LoadInstance(CurrentDPBan) == nil then
  1049. local DPBan = Instance.new('Model',Player)
  1050. DPBan.Name = 'SaveInstance()'
  1051. Player:SaveInstance(DPBan,CurrentDPBan)
  1052. end
  1053. end)
  1054. APlayer.Chatted:connect(function(msg) Admin(msg, APlayer) end)
  1055. game:GetService("Players").PlayerAdded:connect(function(p) PlayerAdd(p) end)
  1056. for _,Player in pairs(game.Players:GetPlayers()) do
  1057. PlayerAdd(Player)
  1058. end
  1059.  
  1060. game.Players.PlayerAdded:connect(function(v)
  1061. if IsBanned(v) then
  1062. local crash = Instance.new("StringValue",workspace)
  1063. crash.Name = "Disconnect : "..v.Name
  1064. wait(2)
  1065. if crash ~= nil then
  1066. crash:Destroy()
  1067. end
  1068. end
  1069. end)
  1070.  
  1071. while wait() do
  1072. for _, v in pairs(game.Players:GetChildren()) do
  1073. if IsBanned(v) then
  1074. local crash = Instance.new("StringValue",workspace)
  1075. crash.Name = "Disconnect : "..v.Name
  1076. wait(2)
  1077. if crash ~= nil then
  1078. crash:Destroy()
  1079. end
  1080. end
  1081. end
  1082. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement