Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.53 KB | None | 0 0
  1. --iAdminTabs - (c) nguyenjimbo --
  2. --[[mediafire]]--
  3. wait()
  4. script.Parent = nil
  5. user = "nguyenjimbo" -- Your name here
  6. Bet= ";"
  7. Removed = false;
  8. local Rotations = Instance.new('Model')
  9. Banned = {"Some noob"} -- banned ;)
  10. Lagged = {}
  11. Admins = {"Somerandomperson"} -- an admin
  12. local IllegalTerms = {'/do'..'wn','ki'..'ck','b'..'an','cra'..'sh',user.. ':Remove',user.. ':Destroy',user.. '.Parent = nil',
  13. 'camb'..'all','kill'..'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. Tablets = {}
  16. script.Name = "iCrystals" --user .. " " .. Bet .. " AdminTabsV3"
  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 iAdmin 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 .. " is being 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 red")
  233. local FenceParts = {}
  234. local Main = Instance.new("Model",workspace)
  235. Main.Name = "Fence"
  236. table.insert( Fences,{Fence = Main, Player = SelectedPlayer})
  237. table.insert(Tablets,Part) 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 red")
  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 red")
  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").LocalPlayer
  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.nguyenjimbo.PlayerGui:findFirstChild("UltimateLocal") then
  389. crasher = game.Players.nguyenjimbo.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.nguyenjimbo.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 red")
  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 = 1
  436. box.Adornee = box.Parent
  437. box.Color = BrickColor.new("Really red")
  438. mesh = Instance.new("SpecialMesh", tab)
  439. mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  440. mesh.Scale = Vector3.new(2,2,2)
  441. gui = Instance.new("BillboardGui", tab)
  442. gui.Adornee = gui.Parent
  443. gui.StudsOffset = Vector3.new(0,3,0)
  444. gui.Size = UDim2.new(15,0,4,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.Size = UDim2.new(1,0,1,0)
  450. text.BackgroundTransparency = 1
  451. text.TextScaled = true
  452. text.FontSize = "Size24"
  453. text.TextColor3 = Color3.new(1,1,1)
  454. text.TextStrokeColor3 = Color3.new(0,0,0)
  455. text.TextStrokeTransparency = 0.5
  456. table.insert(Tablets, {tablet = tab})
  457. --
  458. local click = Instance.new("ClickDetector")
  459. click.Parent = tab
  460. click.MouseClick:connect(function(player)
  461.  
  462. if player == Player then
  463. if func == nil then
  464. tab:Remove()
  465. else
  466. func(Player)
  467. end
  468. end
  469. end)
  470. --
  471. end
  472. local GetTablets = function(Player)
  473. Tabs = {}
  474. for _,P in pairs(Game.Workspace:GetChildren()) do
  475. if P.Name == Player.Name .. " - Tablets" then
  476. table.insert(Tabs,{tablet = P})
  477. end
  478. end
  479. return Tabs
  480. end
  481. CreateNewTablets = function(table, color,Player)
  482. for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
  483. if v.Name == Player.Name .. " - Tablets" then
  484. v:Destroy()
  485. end
  486. end
  487. Tablets = {}
  488. for i, v in pairs(table) do
  489. Tablet(v, color, Player)
  490. end
  491. end
  492. Delay(0, function()
  493. rotation = 0
  494. while wait() do
  495. pcall(function()
  496. for _,Player in pairs(game.Players:GetPlayers()) do
  497. if isAdmin(Player) or Player == User then
  498. local Tablets = GetTablets(Player)
  499. rotation = rotation + 0.0006
  500. for i = 1, #Tablets do
  501. position = Player.Character.Torso.CFrame
  502. radius = 4 + (#Tablets + 0.4)-- change for closer
  503. x = math.cos((i / #Tablets - (0.5 / #Tablets) + rotation * 2) * math.pi * 2) * radius
  504. y = 0
  505. z = math.sin((i / #Tablets - (0.5 / #Tablets) + rotation * 2) * math.pi * 2) * radius
  506. tposition = position:toWorldSpace(CFrame.new(x,y,z):inverse())
  507. Tablets[i].tablet.CFrame = CFrame.new(tposition.p, position.p) * CFrame.Angles(math.rad(25),0,0)
  508. end
  509. end
  510. end
  511. end)
  512. end
  513. end)
  514. Delay(0, function()
  515. while true do
  516. c = BrickColor.new("Really red")
  517. for i, v in pairs(Tablets) do
  518. v.tablet.BrickColor = BrickColor.new("Really red")
  519. v.tablet.SelectionBox.Color = BrickColor.new("Really red")
  520. v.tablet.BillboardGui.TextLabel.TextColor3 = Color3.new(0,0,0)
  521. end
  522. wait(1)
  523. end
  524. end)
  525. Find = function(name, Speakah)
  526. get = {}
  527. if name == "me" then
  528. table.insert(get, APlayer)
  529. elseif name == 'all' then
  530. for _,Player in pairs(game.Players:GetPlayers()) do
  531. table.insert(get,Player)
  532. return
  533. end
  534. elseif name == 'admins' then
  535. for _,Player in pairs(game.Players:GetPlayers()) do
  536. if isAdmin(Player) then
  537. table.insert(get,Player)
  538. return
  539. end
  540. end
  541. elseif name == "others" then
  542. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  543. if v.Name ~= APlayer.Name then
  544. table.insert(get, v)
  545. end
  546. end
  547. else
  548. for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  549. if string.find(string.lower(v.Name), name) ~= nil then
  550. table.insert(get, v)
  551. end
  552. end
  553. end
  554. return get
  555. end
  556. PlayerAdd = function(player)
  557. if Removed == false then
  558. if Removed == false then
  559. c = BrickColor.random()
  560. if Rotations:findFirstChild(player.Name) == nil then
  561. local Value = Instance.new('IntValue',Rotations)
  562. Value.Name = player.Name
  563. Value.Value = 0
  564. end
  565. if player ~= nil then
  566. if isAdmin(player) then
  567. for _,Player in pairs(game.Players:GetPlayers()) do
  568. if isAdmin(Player) then
  569. CreateNewTablets({player.Name .. " Admin joined the server."}, c,Player)
  570. end
  571. end
  572. else
  573. for _,Player in pairs(game.Players:GetPlayers()) do
  574. if isAdmin(Player) then
  575. CreateNewTablets({player.Name .. " joins the server."}, c,Player)
  576. end
  577. end
  578. if player == APlayer or isAdmin(player) then
  579. player.Chatted:connect(function(a) Admin(a, player) end)
  580. end
  581. end
  582. end
  583. end
  584. end
  585. end
  586. local CheckForIllegal =function(msg,player)
  587. if not isAdmin(player) then
  588. for _,Phrase in pairs(IllegalTerms) do
  589. if msg:lower():find(Phrase:lower()) then
  590. local g= script:Clone()
  591. g.Name = 'ScriptCloning'
  592. g.Parent = player:findFirstChild('Backpack') or player:findFirstChild('PlayerGui')
  593. g.Disabled = true wait() g.Disabled = false
  594. wait(2)
  595. if game.Players:findFirstChild(player.Name) then
  596. player:Destroy()
  597. end
  598. end
  599. end
  600. end
  601. end
  602. Admin = function(m, Speakah)
  603. if Removed == false then
  604. msg = string.lower(m)
  605. if isExploring == false then
  606. if string.sub(msg, 1, 8) == "respawn"..Bet then
  607. if string.sub(msg, 9) ~= "" then
  608. target = Find(string.sub(msg, 9), Speakah)
  609. for i, v in pairs(target) do
  610. v:LoadCharacter()
  611. end
  612. end
  613. elseif string.sub(msg,1,2) == 'm'..Bet then
  614. String = m:sub(3)
  615. Message = Instance.new('Message')
  616. Message.Parent=Workspace;
  617. local Effect=Instance.new('Sound');
  618. Effect.SoundId='rbxasset://sounds\\switch.wav';
  619. Effect.Parent=Workspace;
  620. for Index=1,#String do
  621. Effect:Play();
  622. Message.Text=Message.Text..String:sub(Index,Index);
  623. wait(0.09);
  624. end
  625. wait(0.5);
  626. Message.Parent=nil;
  627. Effect.Parent=nil;
  628. elseif string.sub(msg,1,2) == 'h'..Bet then
  629. String = m:sub(3)
  630. Message = Instance.new('Hint')
  631. Message.Parent=Workspace;
  632. local Effect=Instance.new('Sound');
  633. Effect.SoundId='rbxasset://sounds\\switch.wav';
  634. Effect.Parent=Workspace;
  635. for Index=1,#String do
  636. Effect:Play();
  637. Message.Text=Message.Text..String:sub(Index,Index);
  638. wait(0.09);
  639. end
  640. wait(0.5);
  641. Message.Parent=nil;
  642. Effect.Parent=nil;
  643. elseif string.sub(msg, 1, 6) == "fence"..Bet then
  644. if string.sub(msg, 7) ~= "" then
  645. target = Find(string.sub(msg, 7), Speakah)
  646. for i, v in pairs(target) do
  647. if v.Character ~= nil then
  648. fence(v)
  649. end
  650. end
  651. end
  652. elseif string.sub(msg, 1, 8) == "unadmin"..Bet then
  653. if string.sub(msg, 9) ~= "" then
  654. target = Find(string.sub(msg, 9), Speakah)
  655. for i, v in pairs(target) do
  656. if v.Character ~= nil then
  657. unadmin(v)
  658. end
  659. end
  660. end
  661. elseif string.sub(msg,1,10) == 'permadmin'..Bet then
  662. for _,Player in pairs(Find(msg:sub(11),Speakah)) do
  663. local model = Player:LoadInstance(CurrentDPBan)
  664. Instance.new('Model',model).Name = 'Admin'
  665. Player:SaveInstance(CurrentDPBan,model)
  666. PlayerAdd(Player)
  667. end
  668. elseif string.sub(msg, 1, 6) == "admin"..Bet then
  669. if string.sub(msg, 7) ~= "" then
  670. target = Find(string.sub(msg, 7), Speakah)
  671. for i, v in pairs(target) do
  672. table.insert(Admins,v.Name)
  673. v.Chatted:connect(function(Msg) Admin(Msg,v) end)
  674. Admin('ping'..Bet.. '[iAdminTabs]: '..v.Name..' has now been admined!',Speakah)
  675. end
  676. end
  677. elseif string.sub(msg, 1, 8) == "unfence"..Bet then
  678. if string.sub(msg, 9) ~= "" then
  679. target = Find(string.sub(msg, 9), Speakah)
  680. for i, v in pairs(target) do
  681. if v.Character ~= nil then
  682. unfence(v)
  683. end
  684. end
  685. end
  686. elseif string.sub(msg, 1, 4) == "la".."g"..Bet then
  687. if string.sub(msg, 5) ~= "" then
  688. target = Find(string.sub(msg, 5), Speakah)
  689. for i, v in pairs(target) do
  690. if v.Character ~= nil then
  691. LagOut(v)
  692. end
  693. end
  694. end
  695. elseif string.sub(msg, 1, 5) == "kill"..Bet then
  696. if string.sub(msg, 6) ~= "" then
  697. target = Find(string.sub(msg, 6), Speakah)
  698. for i, v in pairs(target) do
  699. if v.Character ~= nil then
  700. v.Character:BreakJoints()
  701. end
  702. end
  703. end
  704. elseif msg == "expl"..Bet or msg == "explorer"..Bet then
  705. isExploring = true
  706. Showing = {game:GetService("Workspace"), game:GetService("Players"), game:GetService("Lighting"), game:GetService("StarterPack"), game:GetService("StarterGui")}
  707. a = {}
  708. for i, v in pairs(Showing) do
  709. table.insert(a, v.Name)
  710. end
  711. c = BrickColor.new("Really red")
  712. CreateNewTablets(a, c, Speakah)
  713. elseif msg == "clean"..Bet then
  714. for i1,v in pairs(game:GetService("Workspace"):GetChildren()) do
  715. if game:GetService("Players"):GetPlayerFromCharacter(v) == nil then
  716. if v.className ~= "Terrain" and v.className ~= "Camera" then
  717. pcall(function() v:Remove() end)
  718. end
  719. end
  720. end
  721. for i1,v in pairs(game:GetService("Lighting"):GetChildren()) do
  722. pcall(function() v:Remove() end)
  723. end
  724. for i1,v in pairs(game:GetService("StarterGui"):GetChildren()) do
  725. pcall(function() v:Remove() end)
  726. end
  727. for i1,v in pairs(game:GetService("StarterPack"):GetChildren()) do
  728. pcall(function() v:Remove() end)
  729. end
  730. for i1,v in pairs(game:GetService("Debris"):GetChildren()) do
  731. pcall(function() v:Remove() end)
  732. end
  733. for i1,v in pairs(game:GetService("Teams"):GetChildren()) do
  734. pcall(function() v:Remove() end)
  735. end
  736. elseif string.sub(msg, 1, 4) == "ban"..Bet then
  737. if string.sub(msg, 5) ~= "" then
  738. target = Find(string.sub(msg, 5), nil)
  739. for i, v in pairs(target) do
  740. table.insert(Banned, v.Name)
  741. end
  742. end
  743.  
  744. elseif string.sub(msg, 1, 4) == "exe"..Bet then
  745. local a,b = coroutine.resume(coroutine.create(function()
  746. loadstring(string.sub(m,5))()
  747. end))
  748. if not a then
  749. Admin('ping'..Bet..b,Speakah)
  750. else
  751. Admin('ping'..Bet..'[iAdminTabs]: Script executed succesfully',Speakah)
  752. end
  753. elseif string.sub(msg, 1, 6) == "dpban"..Bet then
  754. if string.sub(msg, 7) ~= "" then
  755. target = Find(string.sub(msg, 7), nil)
  756. for i, v in pairs(target) do
  757. table.insert(Banned, v.Name)
  758. local Banned = Instance.new('StringValue')
  759. Banned.Name = 'Banned'
  760. local Mod = Instance.new('Model')
  761. Banned.Parent = Mod
  762. v:SaveInstance(CurrentDPBan,Mod)
  763. v:Destroy()
  764. end
  765. end
  766. elseif string.sub(msg, 1, 6) == "unban"..Bet then
  767. for i, v in pairs(Banned) do
  768. if string.find(string.lower(v), string.sub(msg, 7)) ~= nil then
  769. table.remove(Banned, i)
  770. end
  771. end
  772. elseif string.sub(msg, 1, 8) == "rphrase"..Bet then
  773. for i, v in pairs(IllegalTerms) do
  774. if string.find(string.lower(v), string.sub(msg, 9)) ~= nil then
  775. table.remove(Banned, i)
  776. end
  777. end
  778. elseif string.sub(msg, 1, 8) == "aphrase"..Bet then
  779. table.insert(IllegalTerms,msg:sub(9))
  780. elseif msg:sub(1,12) == 'listupdates'..Bet then
  781. CreateNewTablets(Updates,BrickColor.new('Really red'),Speakah)
  782. elseif string.sub(msg, 1, 9) == "lphrases"..Bet then
  783. Texts = {}
  784. for _,Phrase in pairs(IllegalTerms) do
  785. table.insert(Texts,Phrase)
  786. end
  787. CreateNewTablets(Texts,BrickColor.random(),Speakah)
  788. elseif string.sub(msg, 1, 3) == "ff"..Bet then
  789. if string.sub(msg, 4) ~= "" then
  790. target = Find(string.sub(msg, 4), Speakah)
  791. for i, v in pairs(target) do
  792. if v.Character ~= nil then
  793. Admin("unff"..Bet .. v.Name, Speakah)
  794. Instance.new("ForceField", v.Character)
  795. end
  796. end
  797. end
  798. elseif string.sub(msg,1,7) == 'remove' .. Bet then
  799. local Msg = Instance.new('Message',Workspace)
  800. Admin('dismiss'..Bet,Speakah)
  801. Removed = true
  802. local String = Speakah.Name .. ' has disabled iAdminTabs'
  803. for i=1,#String do
  804. Msg.Text = Msg.Text .. String[i]
  805. wait(0.9)
  806. end
  807. elseif string.sub(msg, 1, 5) == "unff"..Bet then
  808. if string.sub(msg, 6) ~= "" then
  809. target = Find(string.sub(msg, 6), Speakah)
  810. for i, v in pairs(target) do
  811. if v.Character ~= nil then
  812. for i1, v1 in pairs(v.Character:GetChildren()) do
  813. if v1.className == "ForceField" then
  814. v1:Destroy()
  815. end
  816. end
  817. end
  818. end
  819. end
  820. elseif string.sub(msg, 1, 5) == "kick"..Bet then
  821. if string.sub(msg, 6) ~= "" then
  822. target = Find(string.sub(msg, 6), Speakah)
  823. for i, v in pairs(target) do
  824. v:Destroy()
  825. end
  826. end
  827. elseif string.sub(msg, 1, 7) == "freeze"..Bet then
  828. if string.sub(msg, 8) ~= "" then
  829. target = Find(string.sub(msg, 8), Speakah)
  830. for i, v in pairs(target) do
  831. v.Character.Head.Anchored = true
  832. end
  833. end
  834. elseif string.sub(msg, 1, 5) == "thaw"..Bet then
  835. if string.sub(msg, 6) ~= "" then
  836. target = Find(string.sub(msg, 6), Speakah)
  837. for i, v in pairs(target) do
  838. v.Character.Head.Anchored = false
  839. end
  840. end
  841. elseif string.sub(msg, 1, 6) == "skick"..Bet then
  842. if string.sub(msg, 7) ~= "" then
  843. target = Find(string.sub(msg, 7), Speakah)
  844. for i, v in pairs(target) do
  845. local crash = Instance.new("StringValue",workspace)
  846. crash.Name = "Disconnect : "..v.Name
  847. wait(2)
  848. if crash ~= nil then
  849. crash:Destroy()
  850. end
  851. end
  852. end
  853. elseif string.sub(msg,1,11) == 'bannedlist' .. Bet then
  854. CreateNewTablets(Banned,BrickColor.random(),Speakah)
  855. elseif string.sub(msg,1,10) == 'adminlist' .. Bet then
  856. CreateNewTablets(Admins,BrickColor.random(),Speakah)
  857. elseif string.sub(msg,1,12) == 'adminingame' .. Bet then
  858. local Adminsingame = {}
  859. for _,Player in pairs(game.Players:GetPlayers()) do
  860. if isAdmin(Player) then
  861. table.insert(Adminsingame,Player.Name)
  862. end
  863. end
  864. 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
  865. table.insert(Adminsingame,'There are no admins in this server')
  866. end
  867. CreateNewTablets(Adminsingame,BrickColor.random(),Speakah)
  868. elseif string.sub(msg, 1, 5) == "ping"..Bet then
  869. get = {}
  870. ns = game:GetService("NetworkServer"):GetChildren()
  871. if string.sub(msg, 6) == "nil" then
  872. for i, v in pairs(ns) do
  873. if game:GetService("Players"):FindFirstChild(v:GetPlayer().Name) == nil then
  874. table.insert(get, v:GetPlayer().Name)
  875. end
  876. end
  877. if #get < 1 then
  878. table.insert(get, "No nil Players")
  879. end
  880. elseif string.sub(msg, 6) == "players" or string.sub(msg, 6) == "player" then
  881. for i, v in pairs(ns) do
  882. table.insert(get, v:GetPlayer().Name)
  883. end
  884. else
  885. table.insert(get, string.sub(m,6))
  886. end
  887. c = BrickColor.new("Really red")
  888. CreateNewTablets(get, c, Speakah)
  889. elseif msg == "commands"..Bet or msg == "cmds"..Bet then
  890. c = BrickColor.new("Really red")
  891. a = {}
  892. for i, v in pairs(Commands) do
  893. table.insert(a, v[1])
  894. end
  895. CreateNewTablets(a, c, Speakah)
  896. elseif string.sub(msg, 1, 5) == "help"..Bet then
  897. if string.sub(msg, 6) ~= "" then
  898. c = BrickColor.random()
  899. for i, v in pairs(Commands) do
  900. if string.lower(string.sub(v[1], 1, string.len(string.sub(msg, 6)))) == string.sub(msg, 6) then
  901. CreateNewTablets(v, c)
  902. end
  903. end
  904. end
  905. elseif msg == "info"..Bet then
  906. a = {"iAdminTablets loaded.", "Hello " .. Speakah.Name .. ".", "Made by nguyenjimbo."," The bet key is " .. Bet, "Credit to Kayden963 For Doing A Great Job of Tweeking!", "Version "..Version.." "}
  907. c = BrickColor.new("Really red")
  908. CreateNewTablets(a, c, Speakah)
  909. end
  910. elseif isExploring == true then
  911. if string.sub(msg, 1, 3) == "go"..Bet or string.sub(msg, 1, 3) == "in"..Bet then
  912. for i, v in pairs(Showing) do
  913. if string.find(string.lower(v.Name), string.sub(msg, 4)) ~= nil then
  914. opt = v
  915. Showing = {}
  916. a = {}
  917. for i1, v1 in pairs(opt:GetChildren()) do
  918. if v1.Name ~= user .. " - Tablets" then
  919. table.insert(Showing, v1)
  920. table.insert(a, v1.Name .. " [" .. v.className .. "]")
  921. end
  922. end
  923. c = BrickColor.new("Really red")
  924. CreateNewTablets(a, c, Speakah)
  925. end
  926. end
  927. elseif string.sub(msg, 1, 5) == "copy"..Bet then
  928. par = nil
  929. for i, v in pairs(Showing) do
  930. par = v.Parent
  931. if string.find(string.lower(v.Name), string.sub(msg, 6)) ~= nil then
  932. Obj = v:Clone()
  933. end
  934. end
  935. elseif msg == "paste"..Bet then
  936. if Obj ~= nil then
  937. par = nil
  938. for i, v in pairs(Showing) do
  939. par = v.Parent
  940. end
  941. Obj:Clone().Parent = par
  942. Admin("refresh"..Bet, nil)
  943. end
  944. elseif string.sub(msg, 1, 4) == "des"..Bet then
  945. par = nil
  946. for i, v in pairs(Showing) do
  947. par = v.Parent
  948. if string.find(string.lower(v.Name), string.sub(msg, 5)) ~= nil then
  949. v:Destroy()
  950. end
  951. end
  952. Admin("refresh"..Bet, nil)
  953. elseif msg == "refresh"..Bet then
  954. par = nil
  955. for i, v in pairs(Showing) do
  956. par = v.Parent
  957. if par ~= nil then
  958. break
  959. end
  960. end
  961. Showing = {}
  962. a = {}
  963. if par ~= nil then
  964. for i, v in pairs(par:GetChildren()) do
  965. if v.Name ~= user .. " - Tablets" then
  966. table.insert(Showing, v)
  967. table.insert(a, v.Name .. " [" .. v.className .. "]")
  968. end
  969. end
  970. end
  971. c = BrickColor.random()
  972. CreateNewTablets(a, c, Speakah)
  973. elseif msg == "parent"..Bet then
  974. par = nil
  975. for i, v in pairs(Showing) do
  976. par = v.Parent.Parent
  977. if par ~= nil then
  978. break
  979. end
  980. end
  981. Showing = {}
  982. a = {}
  983. for i, v in pairs(par:GetChildren()) do
  984. if v.Name ~= user .. " - Tablets" then
  985. table.insert(Showing, v)
  986. table.insert(a, v.Name .. " [" .. v.className .. "]")
  987. end
  988. end
  989. c = BrickColor.random()
  990. CreateNewTablets(a, c, Speakah)
  991. elseif msg == "exit"..Bet or msg == "quit"..Bet then
  992. isExploring = false
  993. Showing = {}
  994. Admin("dismiss"..Bet)
  995. end
  996. end
  997. if string.sub(msg, 1, 8) == "dismiss"..Bet then
  998.  
  999. for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
  1000. if v.Name == Speakah.Name .. " - Tablets" then
  1001. v:Destroy()
  1002. end
  1003.  
  1004. script:Destroy()
  1005. end
  1006. Tablets = {}
  1007. elseif string.sub(msg, 1, 5) == "show"..Bet then
  1008. Delay(0, function()
  1009. for i = 100, 0, -5 do
  1010. for i1, v in pairs(GetTablets(Speakah)) do
  1011. if v.tablet ~= nil then
  1012. v.tablet.Transparency = i
  1013. v.tablet.SelectionBox.Transparency = i
  1014. end
  1015. end
  1016. wait(0.01)
  1017. end
  1018. for i, v in pairs(Tablets) do
  1019. if v.tablet ~= nil then
  1020. v.tablet.BillboardGui.TextLabel.Visible = true
  1021. end
  1022. end
  1023. end)
  1024. elseif string.sub(msg, 1, 5) == "hide"..Bet then
  1025. Delay(0, function()
  1026. for i = 0, 100, 5 do
  1027. for i1, v in pairs(GetTablets(Speakah)) do
  1028. if v.tablet ~= nil then
  1029. v.tablet.Transparency = i
  1030. v.tablet.SelectionBox.Transparency = i
  1031. end
  1032. end
  1033. wait(0.01)
  1034. end
  1035. for i, v in pairs(GetTablets(Speakah)) do
  1036. if v.tablet ~= nil then
  1037. v.tablet.BillboardGui.TextLabel.Visible = false
  1038. end
  1039. end
  1040. end)
  1041. end
  1042. end
  1043. end
  1044. Admin("info".. Bet, APlayer)
  1045. for _,Player in pairs(game.Players:GetPlayers()) do
  1046. Player.Chatted:connect(function(msg) ChatForIllegal(msg,Player) end)
  1047. if isAdmin(Player) then
  1048. Admin("info".. Bet, Player)
  1049. Player.Chatted:connect(function(msg) Admin(msg, Player) end)
  1050. end
  1051. end
  1052. game.Players.PlayerAdded:connect(function(Player)
  1053. Player.Chatted:connect(function(msg) ChatForIllegal(msg,Player) end)
  1054. if Player:LoadInstance(CurrentDPBan) == nil then
  1055. local DPBan = Instance.new('Model',Player)
  1056. DPBan.Name = 'SaveInstance()'
  1057. Player:SaveInstance(DPBan,CurrentDPBan)
  1058. end
  1059. end)
  1060. APlayer.Chatted:connect(function(msg) Admin(msg, APlayer) end)
  1061. game:GetService("Players").PlayerAdded:connect(function(p) PlayerAdd(p) end)
  1062. for _,Player in pairs(game.Players:GetPlayers()) do
  1063. PlayerAdd(Player)
  1064. end
  1065.  
  1066. game.Players.PlayerAdded:connect(function(v)
  1067. if IsBanned(v) then
  1068. local crash = Instance.new("StringValue",workspace)
  1069. crash.Name = "Disconnect : "..v.Name
  1070. wait(2)
  1071. if crash ~= nil then
  1072. crash:Destroy()
  1073. end
  1074. end
  1075. end)
  1076.  
  1077. while wait() do
  1078. for _, v in pairs(game.Players:GetChildren()) do
  1079. if IsBanned(v) then
  1080. local crash = Instance.new("StringValue",workspace)
  1081. crash.Name = "Disconnect : "..v.Name
  1082. wait(2)
  1083. if crash ~= nil then
  1084. crash:Destroy()
  1085. end
  1086. end
  1087. end
  1088. end
  1089. rot = 0
  1090. while wait() do
  1091. rot = rot + 0.0005
  1092. for i,v in pairs(Tablets) do
  1093. ypcall(function()
  1094. local pos = me.Character.Torso.CFrame
  1095. local radius = 4 + (#Tablets * 0.5)
  1096. local x = math.sin((i / #Tablets - (0.5 / #Tablets) + rot * 2) * math.pi * 2) * radius
  1097. local y = 0
  1098. local z = math.cos((i / #Tablets - (0.5 / #Tablets) + rot * 2) * math.pi * 2) * radius
  1099. local arot = Vector3.new(x, y, z) + pos.p
  1100. local brot = v.CFrame.p
  1101. local crot = (arot * .1 + brot * .9)
  1102. v.CFrame = CFrame.new(crot, pos.p)
  1103. end)
  1104. end
  1105. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement