Advertisement
edik1340

Untitled

Jul 13th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.96 KB | None | 0 0
  1. script.Parent = nil
  2. PermaAdmins = {"Computer1326","Corecii","edvardsonic"} --Add your name how those are.
  3. Ban = {} --Banned players
  4. Loopkill = {} --Loopkilled
  5. AdminedRestrictions = {"permaadmin","admin","loopkill","ban","kick","loopkill","ff","unff","c"} --People who are admined cannot use these.
  6. Admins = {} --Add to this like you do PermaAdmins, Admins cannot use any of the commands above.
  7. AdminItemId = {} --Go to the item you want players to need to get admin. Copy the ID at the end of the Adress/URL. This can be a T-Shirt, Shirt, Pants, Badge, Model, Image, Hat, Gear, Head, Face, Package, Decal. Add it to the table.
  8. FrontZ = {"adminc","cycommands","commands","admin"} --Add here so you can say things like(example): /sc\kick/Name or adminc\kick/name
  9. --The above can be used to allow this script to not interfere with other command scripts.
  10.  
  11. -----Do not edit anything below.
  12.  
  13. Scripts = {}
  14. --[[for j, v in pairs(PermaAdmins) do
  15. table.insert(Admins,v)
  16. end]]
  17.  
  18.  
  19. --[[
  20. = function(p,P)
  21. for j, v in pairs(CheckPerson(P,p[1])) do
  22.  
  23. end
  24. end,
  25. ]]
  26. Commands = {
  27. newteam = function(p,P)
  28. pcall(function()
  29. local TEAMC = BrickColor.new(p[2])
  30. local I = Instance.new("Team",game:GetService("Teams"))
  31. I.Name = tostring(p[1])
  32. I.TeamColor = TEAMC
  33. I.AutoAssignable = false
  34. end)
  35. end,
  36. changeteam = function(p,P)
  37. pcall(function()
  38. local TEAMC = game:GetService("Teams"):findFirstChild(p[2])
  39. if not TEAMC or not TEAMC:IsA("Team") then return end
  40. for j, v in pairs(CheckPerson(P,p[1])) do
  41. v.TeamColor = TEAMC.TeamColor
  42. end
  43. end)
  44. end,
  45. removeteam = function(p,P)
  46. for j, v in pairs(p) do
  47. pcall(function() game:GetService("Teams")[v]:remove() end)
  48. end
  49. end,
  50. kill = function(p,P)
  51. for j, v in pairs(CheckPerson(P,p[1])) do
  52. pcall(function() v.Character:BreakJoints() end)
  53. end
  54. end,
  55. kick = function(p,P)
  56. for j, v in pairs(CheckPerson(P,p[1])) do
  57. pcall(function() if IsIn(PermaAdmins,v.Name:lower()) then return end v:remove() end)
  58. end
  59. end,
  60. ban = function(p,P)
  61. for j, v in pairs(CheckPerson(P,p[1])) do
  62. pcall(function()
  63. if IsIn(PermaAdmins,v.Name:lower()) then return end
  64. if not IsIn(PermaAdmins,P.Name:lower()) and IsIn(Admins,v.Name:lower()) then return end
  65. table.insert(ban,v.Name:lower())
  66. v:lower()
  67. end)
  68. end
  69. end,
  70. unban = function(p,P)
  71. newlist = {}
  72. for j, v in pairs(Ban) do
  73. pcall(function() if v:sub(1,#p[1]):lower() ~= v:lower() then table.insert(newlist,v) end end)
  74. end
  75. Ban = newlist
  76. end,
  77. ff = function(p,P)
  78. for j, v in pairs(CheckPerson(P,p[1])) do
  79. pcall(function() local I = Instance.new("ForceField") I.Parent = v.Character I.Name = "CommandsForceField" end)
  80. end
  81. end,
  82. unff = function(p,P)
  83. for j, v in pairs(CheckPerson(P,p[1])) do
  84. pcall(function() for m,n in pairs(v.Character:GetChildren()) do if n:IsA("ForceField") then n:remove() end end end)
  85. end
  86. end,
  87. loopkill = function(p,P)
  88. for j, v in pairs(CheckPerson(P,p[1])) do
  89. pcall(function() table.insert(Loopkill,v.Name:lower()) end)
  90. end
  91. end,
  92. unloopkill = function(p,P)
  93. newlist = {}
  94. for j, v in pairs(Loopkill) do
  95. for m, n in pairs(CheckPerson(P,p[1])) do
  96. pcall(function() if n:lower() ~= v:lower() then table.insert(newlist,v) end end)
  97. end
  98. end
  99. Loopkill = newlist
  100. end,
  101. admin= function(p,P)
  102. for j, v in pairs(CheckPerson(P,p[1])) do
  103. pcall(function() table.insert(Admins,v.Name:lower()) end)
  104. end
  105. end,
  106. permaadmin= function(p,P)
  107. for j, v in pairs(CheckPerson(P,p[1])) do
  108. pcall(function() table.insert(PermaAdmins,v.Name:lower()) end)
  109. end
  110. end,
  111. unadmin = function(p,P)
  112. newlist = {}
  113. for j, v in pairs(Admins) do
  114. for m, n in pairs(CheckPerson(P,p[1])) do
  115. pcall(function() if n:lower() ~= v:lower() then table.insert(newlist,v) end end)
  116. end
  117. end
  118. Loopkill = newlist
  119. end,
  120. explode = function(p,P)
  121. for j, v in pairs(CheckPerson(P,p[1])) do
  122. pcall(function() local I = Instance.new("Explosion") I.Parent = v.Character I.Position = v.Character.Torso.Position end)
  123. end
  124. end,
  125. rocket = function(p,P)
  126. for j, v in pairs(CheckPerson(P,p[1])) do
  127. local I = nil
  128. pcall(function() I = Instance.new("Part") I.Size = Vector3.new(1,8,1) I.TopSurface = "Inlet" local i = Instance.new("Weld") i.Part0 = v.Character.Torso i.Part1 = I i.C0 = CFrame.new(0,0,1) I.Parent = v.Character i.Parent = I local J = Instance.new("BodyForce") J.force = Vector3.new(0,7000,0) J.Parent = I end)
  129. if I ~= nil then
  130. Delay(6,function() local i = Instance.new("Explosion",Workspace) i.Position = I.Position I:remove() end)
  131. end
  132. end
  133. end,
  134. punish = function(p,P)
  135. for j, v in pairs(CheckPerson(P,p[1])) do
  136. pcall(function() v.Character.Parent = game.Lighting end)
  137. end
  138. end,
  139. unpunish = function(p,P)
  140. for j, v in pairs(CheckPerson(P,p[1])) do
  141. pcall(function() v.Character.Parent = Workspace v.Character:MakeJoints() v.Character.Animate.Disabled = true v.Character.Animate.Disabled = false end)
  142. end
  143. end,
  144. sit = function(p,P)
  145. for j, v in pairs(CheckPerson(P,p[1])) do
  146. pcall(function() v.Character.Humanoid.Sit = true end)
  147. end
  148. end,
  149. jump = function(p,P)
  150. for j, v in pairs(CheckPerson(P,p[1])) do
  151. pcall(function() v.Character.Humanoid.Jump = true end)
  152. end
  153. end,
  154. stand = function(p,P)
  155. for j, v in pairs(CheckPerson(P,p[1])) do
  156. pcall(function() v.Character.Humanoid.PlatformStand = true end)
  157. end
  158. end,
  159. sparkle = function(p,P)
  160. for j, v in pairs(CheckPerson(P,p[1])) do
  161. pcall(function() local I = Instance.new("Sparkles") I.Parent = v.Character.Torso I.Name = "CommandsSparkle" end)
  162. end
  163. end,
  164. unsparkle = function(p,P)
  165. for j, v in pairs(CheckPerson(P,p[1])) do
  166. pcall(function() for m,n in pairs(v.Character.Torso:GetChildren()) do if n:IsA("Sparkles") then n:remove() end end end)
  167. end
  168. end,
  169. flame = function(p,P)
  170. for j, v in pairs(CheckPerson(P,p[1])) do
  171. pcall(function() local I = Instance.new("Fire") I.Parent = v.Character.Torso I.Name = "CommandsSparkle" end)
  172. end
  173. end,
  174. unflame = function(p,P)
  175. for j, v in pairs(CheckPerson(P,p[1])) do
  176. pcall(function() for m, n in pairs(v.Character.Torso:GetChildren()) do if n:IsA("Fire") then n:remove() end end end)
  177. end
  178. end,
  179. extinguish = function(p,P)
  180. for j, v in pairs(CheckPerson(P,p[1])) do
  181. pcall(function() for m, n in pairs(v.Character.Torso:GetChildren()) do if n:IsA("Fire") or n:IsA("Smoke") or n:IsA("Sparkles") then n:remove() end end end)
  182. end
  183. end,
  184. smoke = function(p,P)
  185. for j, v in pairs(CheckPerson(P,p[1])) do
  186. pcall(function() local I = Instance.new("Smoke",v.Character.Torso) I.Name = "CommandsSparkle" end)
  187. end
  188. end,
  189. unsmoke = function(p,P)
  190. for j, v in pairs(CheckPerson(P,p[1])) do
  191. pcall(function() for m, n in pairs(v.Character.Torso:GetChildren()) do if n:IsA("Smoke") then n:removre() end end end)
  192. end
  193. end,
  194. invisible = function(p,P)
  195. for m,n in pairs(CheckPerson(P,p[1])) do
  196. pcall(function()
  197. for j, v in pairs(getAll(n.Character)) do
  198. if v:IsA("BasePart") then
  199. v.Transparency = 1
  200. end
  201. end
  202. end)
  203. end
  204. end,
  205. visible = function(p,P)
  206. for m,n in pairs(CheckPerson(P,p[1])) do
  207. pcall(function()
  208. for j, v in pairs(getAll(n.Character)) do
  209. if v:IsA("BasePart") then
  210. v.Transparency = 0
  211. end
  212. end
  213. end)
  214. end
  215. end,
  216. heal = function(p,P)
  217. for j, v in pairs(CheckPerson(P,p[1])) do
  218. pcall(function() v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth end)
  219. end
  220. end,
  221. damage = function(p,P)
  222. for j, v in pairs(CheckPerson(P,p[1])) do
  223. pcall(function() v.Character.Humanoid.Health = v.Character.Humanoid.Health-tonumber(p[2]) end)
  224. end
  225. end,
  226. health = function(p,P)
  227. for j, v in pairs(CheckPerson(P,p[1])) do
  228. pcall(function() v.Character.Humanoid.MaxHealth = p[2] v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth end)
  229. end
  230. end,
  231. removetools = function(p,P)
  232. for j, v in pairs(CheckPerson(P,p[1])) do
  233. pcall(function() for m,n in pairs(v.Backpack:GetChildren()) do n:remove() end for m,n in pairs(v.Character:GetChildren()) do if n:IsA("Tool") or n:IsA("HopperBin") then n:remove() end end end)
  234. end
  235. end,
  236. givetools = function(p,P)
  237. for j, v in pairs(CheckPerson(P,p[1])) do
  238. pcall(function() for m, n in pairs(game.StarterPack:GetChildren()) do n:clone().Parent = v.Backpack end end)
  239. end
  240. end,
  241. part = function(p,P)
  242. pcall(function() local I = Instance.new("Part") I.Name = "CommandsPart" I.Size = Vector3.new(tonumber(p[1]),tonumber(p[2]),tonumber(p[3])) I.Parent = Workspace I.Position = P.Character.Torso.Position+Vector3.new(0,5+(p[2]/2),0) end)
  243. end,
  244. respawn = function(p,P)
  245. for j, v in pairs(CheckPerson(P,p[1])) do
  246. pcall(function() local I = Instance.new("Part") I.Anchored = true I.CanCollide = false I.Transparency = 1 I.Position = Vector3.new(0,0,0) I.Name = "Head" local i = Instance.new("Model") I.Parent = i local II = Instance.new("Humanoid") II.Health = 0 II.Parent = i i.Parent = Workspace v.Character = i end)
  247. end
  248. end,
  249. merge = function(p,P)
  250. for j, v in pairs(CheckPerson(P,p[1])) do
  251. pcall(function() v.Character = CheckPerson(P,p[2])[1].Character end)
  252. end
  253. end,
  254. teleport = function(p,P)
  255. for j, v in pairs(CheckPerson(P,p[1])) do
  256. pcall(function() v.Character.Torso.CFrame = CheckPerson(P,p[2])[1].Character.Torso.CFrame end)
  257. end
  258. end,
  259. control = function(p,P)
  260. pcall(function() P.Character = CheckPerson(P,p[1])[1].Character end)
  261. end,
  262. change = function(p,P)
  263. for j, v in pairs(CheckPerson(P,p[1])) do
  264. pcall(function() for j, v in pairs(v.leaderstats:GetChildren()) do if v.Name:lower():sub(1,#p[2]) == p[2]:lower() then v.Value = tonumber(p[3]) end end end)
  265. end
  266. end,
  267. give = function(p,P)
  268. for j, v in pairs(CheckPerson(P,p[1])) do
  269. pcall(function() for m, I in pairs(game.Lighting:GetChildren()) do if I:IsA("Tool") or I:IsA("Hopperbin") then if p[2]:lower() == "all" or I.Name:lower():sub(1,#p[2]) == p[2]:lower() then I:clone().Parent = v.Backpack end end end end)
  270. end
  271. end,
  272. time = function(p,P)
  273. if not p[2] then p[2] = "0" p[3] = "0" elseif not p[3] then p[3] = "0" end
  274. pcall(function() game.Lighting.TimeOfDay = p[1]..":"..p[2]..":"..p[3] end)
  275. end,
  276. ambient = function(p,P)
  277. if not p[2] then p[2] = "0" p[3] = "0" elseif not p[3] then p[3] = "0" end
  278. pcall(function() game.Lighting.Ambient = Color3.new(tonumber(p[1])*(1/255),tonumber(p[2])*(1/255),tonumber(p[3])*(1/225)) end)
  279. end,
  280. brightness = function(p,P)
  281. pcall(function() game:Getservice("Lighting").Brightness = tonumber(p[1]) end)
  282. end,
  283. maxplayers = function(p,P)
  284. pcall(function() game.Players.MaxPlayers = tonumber(p[1]) end)
  285. end,
  286. antigrav = function(p,P)
  287. for j, v in pairs(CheckPerson(P,p[1])) do
  288. pcall(function() local I = Instance.new("BodyForce") I.force = Vector3.new(0,3000,0) I.Parent = v.Character.Torso end)
  289. end
  290. end,
  291. grav = function(p,P)
  292. for j, v in pairs(CheckPerson(P,p[1])) do
  293. pcall(function() for m, n in pairs(v.Character.Torso:GetChildren()) do if n:IsA("BodyForce") then n:remove() end end end)
  294. end
  295. end,
  296. setgrav = function(p,P)
  297. for j, v in pairs(CheckPerson(P,p[1])) do
  298. pcall(function() local I = Instance.new("BodyForce") I.force = Vector3.new(0,tonumber(p[2]),0) I.Parent = v.Character.Torso end)
  299. end
  300. end,
  301. trip = function(p,P)
  302. for j, v in pairs(CheckPerson(P,p[1])) do
  303. pcall(function() v.Character.Torso.CFrame = v.Character.Torso.CFrame*CFrame.Angles(math.pi,0,0) end)
  304. end
  305. end,
  306. walkspeed = function(p,P)
  307. for j, v in pairs(CheckPerson(P,p[1])) do
  308. pcall(function() v.Character.Humanoid.WalkSpeed = tonumber(p[2]) end)
  309. end
  310. end,
  311. freeze = function(p,P)
  312. for j, v in pairs(CheckPerson(P,p[1])) do
  313. pcall(function() for m,n in pairs(getAll(v.Character)) do if n:IsA("BasePart") then n.Anchored = true end end end)
  314. end
  315. end,
  316. thaw = function(p,P)
  317. for j, v in pairs(CheckPerson(P,p[1])) do
  318. pcall(function() for m,n in pairs(getAll(v.Character)) do if n:IsA("BasePart") then n.Anchored = false end end end)
  319. end
  320. end,
  321. unlock = function(p,P)
  322. for j, v in pairs(CheckPerson(P,p[1])) do
  323. pcall(function() for m,n in pairs(getAll(v.Character)) do if n:IsA("BasePart") then n.Locked = false end end end)
  324. end
  325. end,
  326. lock = function(p,P)
  327. for j, v in pairs(CheckPerson(P,p[1])) do
  328. pcall(function() for m,n in pairs(getAll(v.Character)) do if n:IsA("BasePart") then n.Locked = true end end end)
  329. end
  330. end,
  331. ["nil"] = function(p,P)
  332. for j, v in pairs(CheckPerson(P,p[1])) do
  333. pcall(function() v.Character = nil end)
  334. end
  335. end,
  336. null = function(p,P)
  337. for j, v in pairs(CheckPerson(P,p[1])) do
  338. pcall(function() v.Character = nil end)
  339. end
  340. end,
  341. m = function(p,P)
  342. pcall(function() local I = Instance.new("Message") I.Parent = Workspace I.Text = p[1] game.Debris:AddItem(I,5) end)
  343. end,
  344. c = function(p,P)
  345. pcall(function()
  346. local STR = ""
  347. for j, v in pairs(p) do
  348. STR = STR..v.."/"
  349. end
  350. --STR = STR:sub(1,#STR-1)
  351. STR = STR:sub(1,#STR-1)
  352. local I = script.CScr:clone()
  353. I.MySource.Value = STR
  354. I.Disabled = false
  355. I.Parent = Workspace
  356. table.insert(Scripts,I)
  357. end)
  358. end,
  359. clear = function(p,P)
  360. for j, v in pairs(Scripts) do
  361. pcall(function() v.Disabled = true v:remove() end)
  362. end
  363. Scripts = {}
  364. end,
  365. }
  366. --[[ = function(p,P)
  367. for j, v in pairs(CheckPerson(P,p[1])) do
  368. pcall(function() l end)
  369. end
  370. end,]]
  371.  
  372. getAll = function(Place)
  373. local T = {}
  374. for j, v in pairs(Place:GetChildren()) do
  375. table.insert(T,v)
  376. for m, n in pairs(getAll(v)) do
  377. table.insert(T,n)
  378. end
  379. end
  380. return T
  381. end
  382.  
  383. for j, v in pairs(PermaAdmins) do
  384. PermaAdmins[j] = v:lower()
  385. end
  386. for j, v in pairs(Ban) do
  387. Ban[j] = v:lower()
  388. end
  389. for j, v in pairs(AdminedRestrictions) do
  390. AdminedRestrictions[j] = v:lower()
  391. end
  392.  
  393. GetBan = function(T,P)
  394. for j, v in pairs(T) do
  395. if tostring(v):lower():sub(1,#P) == P:lower() then
  396. return j
  397. end
  398. end
  399. end
  400. GetCmd = function(T,P)
  401. for j, v in pairs(T) do
  402. if tostring(j):lower() == P:lower() then
  403. return v
  404. end
  405. end
  406. end
  407. GetPlyr = function(N)
  408. local N = N:lower()
  409. Possible = {}
  410. for j ,v in pairs(game.Players:GetPlayers()) do
  411. if v.Name:lower():sub(1,#N) == N then
  412. table.insert(Possible,v)
  413. end
  414. end
  415. return Possible
  416. end
  417.  
  418. GetIn = function(SString,S)
  419. local SString = SString..S
  420. local NumAmount = 0
  421. for k = 1, #SString do
  422. if SString:sub(k,k) == S then
  423. NumAmount = NumAmount+1
  424. end
  425. end
  426. local Pieces = {}
  427. local Last = 0
  428. for k = 1, NumAmount do
  429. local String2 = ""
  430. local Num2, _ = string.find(SString:sub(Last+1),S)
  431. Num2 = Num2+Last
  432. local Num1 = Last
  433. String2 = SString:sub(Num1+1,Num2-1)
  434. table.insert(Pieces,String2)
  435. Last = Num2
  436. end
  437. return Pieces
  438. end
  439.  
  440. IsIn = function(List, Human)
  441. local j = 0
  442. for _,v in pairs(List) do
  443. if List ~= Admins and List ~= PermaAdmins and Human == v then
  444. return true
  445. elseif Human:lower() == v:lower() then
  446. return true
  447. end
  448. end
  449. return false
  450. end
  451.  
  452. CheckPerson = function(p,c)
  453. print(c)
  454. print(type(c))
  455. local PersonP = {}
  456. if c == "me" then
  457. PersonP = {p}
  458. elseif c == "others" then
  459. local Tble = {}
  460. for j, v in pairs(game.Players:GetPlayers()) do
  461. if v ~= p then
  462. table.insert(Tble,v)
  463. end
  464. end
  465. PersonP = Tble
  466. elseif c == "all" then
  467. PersonP = game.Players:GetPlayers()
  468. elseif c == "random" then
  469. PersonP = {game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]}
  470. elseif string.sub(c,1,5) == "team " then
  471. local Tble = {}
  472. for j, v in pairs(game.Players:GetChildren()) do
  473. if tostring(v.TeamColor):lower() == c:sub(6) then
  474. table.insert(Tble,v)
  475. end
  476. end
  477. PersonP = Tble
  478. elseif c == "nonadmins" then
  479. local Tble = {}
  480. for j, v in pairs(game.Players:GetPlayers()) do
  481. if IsIn(Admins,v.Name:lower()) == false then
  482. table.insert(Tble,v)
  483. end
  484. end
  485. PersonP = Tble
  486. elseif c == "admins" then
  487. local Tble = {}
  488. for j, v in pairs(game.Players:GetPlayers()) do
  489. if IsIn(Admins,v.Name:lower()) then
  490. table.insert(Tble,v)
  491. end
  492. end
  493. PersonP = Tble
  494. elseif not c:find(":") then
  495. local Tble = {}
  496. for j, v in pairs(GetPlyr(c)) do
  497. table.insert(Tble,v)
  498. end
  499. PersonP = Tble
  500. else
  501. local Tble = {}
  502. for j, v in pairs(GetIn(c,":")) do
  503. pcall(function()
  504. local I = CheckPerson(p,v)
  505. for m, n in pairs(I) do
  506. table.insert(Tble,n)
  507. end
  508. end)
  509. end
  510. PersonP = Tble
  511. end
  512.  
  513. local RemoveP = {}
  514. local DLT = GetIn(c,"-")
  515. if DLT[2] then
  516. for k = 2, #DLT do
  517. print(DLT[k])
  518. print(type(DLT[k]))
  519. for j, v in pairs(CheckPerson(p,DLT[k])) do
  520. table.insert(RemoveP,v)
  521. end
  522. end
  523. end
  524. local Fix = {}
  525. for j, v in pairs(PersonP) do
  526. if not IsIn(RemoveP,v) then
  527. table.insert(Fix,v)
  528. end
  529. end
  530. --[[local Fix = {}
  531. for j, v in pairs(PersonP) do
  532. table.inser
  533. end]]
  534.  
  535.  
  536. return Fix
  537. end
  538.  
  539. Chatted = function(p)
  540. local Connection = p.Chatted:connect(function(m)
  541. print(p.Name.." Chatted")
  542. if not IsIn(PermaAdmins,p.Name:lower()) and not IsIn(Admins,p.Name:lower()) then return end
  543. print("IsAdmin")
  544. RunCommands = GetIn(m,"\\")
  545. do
  546. local C = {}
  547. if IsIn(FrontZ,RunCommands[1]) then
  548. print("StarterZ:",RunCommands[1])
  549. if not RunCommands[2] then print("No Arguments") return end
  550. for k = 2, #RunCommands do
  551. C[k-1] = RunCommands[k]
  552. end
  553. RunCommands = C
  554. end
  555. end
  556.  
  557. for j, v in pairs(RunCommands) do
  558. print("Command Running Number: ",j," -- ",v)
  559. local Send = GetIn(v,"/")
  560. local Arguments = {}
  561. if Send[2] then
  562. for k = 2, #Send do
  563. Arguments[k-1] = Send[k]
  564. end
  565. else
  566. Arguments[1] = ""
  567. end
  568.  
  569. print(Send[1]:lower())
  570. print("Is A Command: ",GetCmd(Commands,Send[1]:lower()))
  571.  
  572. if GetCmd(Commands,Send[1]:lower()) then
  573. if not IsIn(AdminedRestrictions,Send[1]:lower()) or IsIn(PermaAdmins,p.Name:lower()) then
  574. GetCmd(Commands,Send[1]:lower())(Arguments,p)
  575. end
  576. end
  577. end
  578. end)
  579. repeat wait() until not Connection.connected
  580. local I = Instance.new("Message",Workspace)
  581. I.Name = "ErroredAdmin"
  582. I.Text = "Cy's Administration Script: Admin errored on "..p:GetFullName()..". Making new event connection."
  583. game:GetService("Debris"):AddItem(I,5)
  584. Chatted(p)
  585. end
  586. for j, p in pairs(game.Players:GetChildren()) do
  587. Spawn(function()
  588. for j, v in pairs(AdminItemId) do
  589. if (v and type(v):lower() == "number" and game:GetService("BadgeService"):UserHasBadge(p.userId,v)) then table.insert(Admins,p.Name:lower()) end
  590. end
  591. Chatted(p)
  592. if IsIn(Ban,p.Name:lower()) then
  593. p:remove()
  594. end
  595. end)
  596. end
  597. game.Players.PlayerAdded:connect(function(p)
  598. for j, v in pairs(AdminItemId) do
  599. if (v and type(v):lower() == "number" and game:GetService("BadgeService"):UserHasBadge(p.userId,v)) then table.insert(Admins,p.Name:lower()) end
  600. end
  601. Chatted(p)
  602. if IsIn(Ban,p.Name:lower()) then p:remove() end
  603. end)
  604.  
  605. while true do
  606. for j, v in pairs(Loopkill) do
  607. pcall(function() game.Players[v].Character:BreakJoints() j.Character.Humanoid.Health = 0 end)
  608. end
  609. wait()
  610. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement