Advertisement
SirDivine

admin

Nov 28th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.82 KB | None | 0 0
  1. Admins = {
  2. ["SirDivine"] = 3, ---NAME HERE <<<<<, and also go to line 824 and erase name and put urs
  3. ["SirDivine"] = 3,------There is also a admin script at the bottom. if you find the ie to put ur name ull have admin abilities.
  4. ["SirDivine"] = 3,
  5. [""] = 3
  6. }
  7. local Levels = {
  8. [0] = {"Peasant", BrickColor.new("Medium stone grey")};
  9. [1] = {"Knight", BrickColor.new("Bright red")};
  10. [2] = {"Lord", BrickColor.new("Navy blue")};
  11. [3] = {"King", BrickColor.new("Really black")}
  12. }
  13. Players = Game:GetService("Players")
  14. Workspace = Game:GetService("Workspace")
  15. Debris = Game:GetService("Debris")
  16. Lighting = Game:GetService("Lighting")
  17. Teams = Game:GetService("Teams")
  18. MR = math.rad
  19. MD = math.deg
  20. IPStore = {}
  21. IPBans = {}
  22. Banned = {"Network Server"}
  23. PrivateServer = {}
  24. PrivateServerWarnings = {}
  25. function IncommingConnection(IPAddress, Replicator)
  26. local IP = IPAddress:sub(1, IPAddress:find(":")-1)
  27. local ThePlayer
  28. Players.PlayerAdded:connect(function(NewPlayer)
  29. if not ThePlayer then
  30. ThePlayer = NewPlayer
  31. end
  32. end)
  33. repeat wait() until ThePlayer
  34. IPStore[ThePlayer.Name] = IP
  35. for i=1, #IPBans do
  36. if IPBans[i] == IP then
  37. ThePlayer:Remove()
  38. end
  39. end
  40. end
  41. function Round(Number, ToWhatExtent)
  42. if ToWhatExtent then
  43. return math.floor(Number/ToWhatExtent+0.5)*ToWhatExtent
  44. else
  45. return math.floor(Number + 0.5)
  46. end
  47. end
  48. Settings = {
  49. Color = BrickColor.new("New Yeller"), --Its bright red...
  50. Name = "ProLevi27 Scythe Admin",
  51. Version = "0.0.8"
  52. }
  53. function ShowInCircle(Prompter,...)
  54. local Args = {...}
  55. local Books = {}
  56. Args[#Args + 1] = "Dismiss"
  57. local Ans = nil
  58. local Rank = Admins[Prompter.Name]
  59. for i=1, #Args do
  60. local IsKings
  61. if Args[i]:find("(Kings Only)") then
  62. IsKings = true
  63. end
  64. local Book = Instance.new("Part", Game:GetService("Workspace"))
  65. Book.Anchored = false
  66. Book.Locked = true
  67. Book.CanCollide = false
  68. Book.TopSurface, Book.BottomSurface = 0, 0
  69. Book.Transparency = 0.5
  70. Book.FormFactor = Enum.FormFactor.Custom
  71. Book.Size = Vector3.new(2.3, 1, 3)
  72. if IsKings and Admins[Prompter.Name] < 3 then
  73. Book.BrickColor = BrickColor.new("Bright red")
  74. else
  75. Book.BrickColor = Settings.Color
  76. end
  77. table.insert(Books, Book)
  78. local Mesh = Instance.new("SpecialMesh", Book)
  79. Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
  80. Mesh.MeshType = "FileMesh"
  81. local BG = Instance.new("BodyGyro", Book)
  82. local BP = Instance.new("BodyPosition", Book)
  83. if (IsKings and Admins[Prompter.Name] == 3) or not IsKings then
  84. local Fire = Instance.new("Fire", Book)
  85. Fire.Heat = 0
  86. Fire.Color = Settings.Color.Color
  87. Fire.SecondaryColor = Settings.Color.Color
  88. end
  89. local Billboard = Instance.new("BillboardGui", Book)
  90. Billboard.Adornee = Book
  91. Billboard.Enabled = true
  92. Billboard.Active = true
  93. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  94. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  95. local Text = Instance.new("TextLabel", Billboard)
  96. Text.Text = Args[i]
  97. if IsKings and Admins[Prompter.Name] ~= 3 then
  98. Text.TextColor3 = BrickColor.new("White").Color
  99. else
  100. Text.TextColor3 = Settings.Color.Color
  101. end
  102. Text.BackgroundTransparency = 1
  103. Text.Size = UDim2.new(1, 0, 1, 0)
  104. local ClickDetector = Instance.new("ClickDetector", Book)
  105. ClickDetector.MouseClick:connect(function(Player)
  106. if Player == Prompter and Args[i] == "Dismiss" then
  107. Ans = Args[i]
  108. for _, v in pairs(Books) do
  109. v:Remove()
  110. end
  111. Books = {}
  112. end
  113. end)
  114. end
  115. coroutine.resume(coroutine.create(function()
  116. local radius = 3 + (#Books*.7)
  117. while wait() do
  118. if #Books == 0 then break end
  119. for _, Book in pairs(Books) do
  120. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  121. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  122. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  123. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  124. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  125. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- cos
  126. local y = 0
  127. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- sin
  128. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  129. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  130. end
  131. end
  132. end))
  133. end
  134. function Prompt(Prompter, ...)
  135. local Args = {...}
  136. local Books = {} --Dismiss sounds cooler :3
  137. Args[#Args + 1] = "Dismiss"
  138. local Ans = nil
  139. for i=1, #Args do
  140. local Book = Instance.new("Part", Game:GetService("Workspace"))
  141. Book.Anchored = false
  142. Book.Locked = true
  143. Book.CanCollide = false
  144. Book.TopSurface, Book.BottomSurface = 0, 0
  145. Book.Transparency = 0.5
  146. Book.FormFactor = Enum.FormFactor.Custom
  147. Book.Size = Vector3.new(2.3, 1, 3)
  148. Book.BrickColor = Settings.Color
  149. table.insert(Books, Book)
  150. local Mesh = Instance.new("SpecialMesh", Book)
  151. Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
  152. Mesh.MeshType = "FileMesh"
  153. local Fire = Instance.new("Fire", Book)
  154. Fire.Heat = 0
  155. Fire.Color = Settings.Color.Color
  156. Fire.SecondaryColor = Settings.Color.Color
  157. local Billboard = Instance.new("BillboardGui", Book)
  158. Billboard.Adornee = Book
  159. Billboard.Enabled = true
  160. Billboard.Active = true
  161. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  162. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  163. local Text = Instance.new("TextLabel", Billboard)
  164. Text.Text = Args[i]
  165. Text.TextColor3 = Settings.Color.Color
  166. Text.BackgroundTransparency = 1
  167. Text.Size = UDim2.new(1, 0, 1, 0)
  168. local AttemptToFixPrompt = i
  169. local ClickDetector = Instance.new("ClickDetector", Book)
  170. ClickDetector.MouseClick:connect(function(Player)
  171. if Player == Prompter then
  172. Ans = Args[i]
  173. local BackupBooks = Books
  174. Books = {}
  175. local AnimationOver
  176. pcall(function() BP.Position = Player.Character.Torso.Position end)
  177. Book.Touched:connect(function(zPart)
  178. pcall(function()
  179. if zPart == Player.Character.Torso then
  180. AnimationOver = true
  181. end
  182. end)
  183. end)
  184. delay(5, function() AnimationOver = true end)
  185. for _, v in pairs(BackupBooks) do
  186. v:Remove()
  187. end
  188. BackupBooks = nil
  189. return AttemptToFixPrompt
  190. end
  191. end)
  192. end
  193. coroutine.resume(coroutine.create(function()
  194. local radius = 3 + (#Books)
  195. while wait() do
  196. if #Books == 0 then break end
  197. for _, Book in pairs(Books) do
  198. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  199. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  200. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  201. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  202. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  203. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- cos
  204. local y = 0
  205. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- sin
  206. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  207. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  208. end
  209. end
  210. end))
  211. while (Ans == nil) and (#Books > 0) do
  212. wait()
  213. end
  214. return Ans
  215. end
  216. function ParseMessage(Message)
  217. Message = Message:gsub("lego%s", "")
  218. Message = Message:gsub("runescape%s", "")
  219. Message = Message:gsub("minecraft%s", "")
  220. local Command
  221. local Args = {}
  222. for Word in Message:gmatch("%w+") do
  223. if not Command then
  224. Command = Word
  225. else
  226. table.insert(Args, Word)
  227. end
  228. end
  229. return Command, Args
  230. end
  231. function ErrorHandler(Error)
  232. print(Error)
  233. local Message = Instance.new("Message", Workspace)
  234. Message.Text = "!ERROR!: " .. Error:gsub("(.-:)","")
  235. Game:GetService("Debris"):AddItem(Message, 5)
  236. end
  237. function onPlayerAdded(NewPlayer)
  238. for b=1, #Banned do
  239. if NewPlayer.Name == Banned[b] then
  240. coroutine.resume(coroutine.create(function()
  241. for i=1, 25 do
  242. pcall(function() NewPlayer:Destroy() end)
  243. wait(0.5)
  244. end
  245. end))
  246. end
  247. end
  248. NewPlayer.Chatted:connect(function(C)
  249. xpcall(function()
  250. local a, b = coroutine.resume(coroutine.create(function()
  251. onChat(NewPlayer, C)
  252. end))
  253. assert(a,b)
  254. end, ErrorHandler)
  255. end)
  256. end
  257. function onChat(player, message)
  258. local Command, Arguments = ParseMessage(message)
  259. if Admins[player.Name] ~= nil then
  260. if Command == "kickmenu" then
  261. local People = Game:GetService("Players"):GetPlayers()
  262. local Names = {}
  263. for _, v in pairs(People) do
  264. table.insert(Names, v.Name)
  265. end
  266. local OptionChoosen = Prompt(player, unpack(Names))
  267. print(OptionChoosen)
  268. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  269. game:GetService("Players") [OptionChoosen]:Destroy()
  270. else
  271. print("Player missing")
  272. end
  273. elseif Command == "privateserver" then
  274. local Option = Prompt(player, "Turn on", "Turn off", "Add name", "Remove name", "Remove all names")
  275. if Option == "Turn on" then
  276. PrivateServerOn = true
  277. local OnJoinCon = function(NewPlayer)
  278. if PrivateServer[NewPlayer.Name] == nil then
  279. NewPlayer:Remove()
  280. if PrivateServerWarnings[NewPlayer.Name] == nil then
  281. local AddHim = Prompt(player, "Click me to add " .. NewPlayer.Name .. " to the private server list")
  282. if AddHim == "Click me to add " .. NewPlayer.Name .. " to the private server list" then
  283. PrivateServer[NewPlayer.Name] = true
  284. end
  285. end
  286. end
  287. end
  288. while PrivateServerOn do wait() end
  289. OnJoinCon:disconnect()
  290. elseif Option == "Turn off" then
  291. PrivateServerOn = nil
  292. elseif Option == "Add name" then
  293. local Names = {}
  294. for _, v in pairs(Players:GetPlayers()) do
  295. table.insert(Names, v.Name)
  296. end
  297. local PlayerToAdd = Prompt(player, unpack(Names))
  298. if Players:FindFirstChild(PlayerToAdd) then
  299. PrivateServer[PlayerToAdd] = true
  300. end
  301. elseif Option == "Remove name" then
  302. local Names = {}
  303. for Name in pairs(PrivateServer) do
  304. table.insert(Names, Name)
  305. end
  306. local NameToRemove = Prompt(player, unpack(Names))
  307. if Names[NameToRemove] then
  308. Names[NameToRemove] = nil
  309. end
  310. elseif Option == "Remove all names" then
  311. PrivateServer = {}
  312. end
  313. elseif Command == "banmenu" then
  314. local People = Game:GetService("Players"):GetPlayers()
  315. local Names = {}
  316. for _, v in pairs(People) do
  317. table.insert(Names, v.Name)
  318. end
  319. local OptionChoosen = Prompt(player, unpack(Names))
  320. print(OptionChoosen)
  321. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  322. table.insert(Banned, OptionChoosen)
  323. game:GetService("Players") [OptionChoosen]:Destroy()
  324. else
  325. print("Player missing")
  326. end
  327. elseif Command == "rankset" and Admins[player.Name] == 3 then
  328. if Arguments[1] and tonumber(Arguments[1]) ~= nil then
  329. local RankSet
  330. if tonumber(Arguments[1]) == 0 then
  331. RankSet = nil
  332. else
  333. RankSet = tonumber(Arguments[1])
  334. end
  335. for i=2, #Arguments do
  336. local arg = Arguments[i]
  337. for z, vPlayer in pairs(Players:GetPlayers()) do
  338. if vPlayer.Name:lower():find(arg:lower()) == 1 then
  339. Admins[vPlayer.Name] = RankSet
  340. end
  341. end
  342. end
  343. end
  344. elseif message:sub(1, 5) == "load/" then
  345. xpcall(function()
  346. local c, d = coroutine.resume(coroutine.create(function()
  347. loadstring(message:sub(6))()
  348. end))
  349. assert(c, d)
  350. end, function(Error)
  351. local Hint = Instance.new("Message", Workspace)
  352. Hint.Text = "|QUICKSCRIPT ERROR|:| " .. Error:sub("(.-:)")
  353. wait(4)
  354. Hint:Remove()
  355. end)
  356. elseif Command == "cleanup" then
  357. for _, v in pairs(Workspace:GetChildren()) do
  358. if Players:GetPlayerFromCharacter(v) == nil and v.className ~= "Terrain" and v~=script then
  359. pcall(function() v:Remove() end)
  360. end
  361. end
  362. local Base = Instance.new("Part", Workspace)
  363. Base.Anchored = true
  364. Base.TopSurface = Enum.SurfaceType.Smooth
  365. Base.BottomSurface = Enum.SurfaceType.Smooth
  366. Base.FormFactor = Enum.FormFactor.Symmetric
  367. Base.BrickColor = BrickColor.new("Earth green")
  368. Base.Size = Vector3.new(1000, 1, 1000)
  369. Base.Name = "Base"
  370. Base.CFrame = CFrame.new(Vector3.new())
  371. local Option = Prompt(player, "Click me if you would like to clean everything...")
  372. if Option == "Click me if you would like to clean everything..." then
  373. pcall(function() Lighting:ClearAllChildren() end)
  374. pcall(function() Teams:ClearAllChildren() end)
  375. pcall(function() table.foreach(Players:GetPlayers(), function(_, v) v.Neutral = true end) end)
  376. end
  377. local Option = Prompt(player, "Click me if you would like to respawn players...")
  378. if Option == "Click me if you would like to respawn players..." then
  379. for _, v in pairs(Players:GetPlayers()) do
  380. pcall(function()
  381. local Model = Instance.new("Model", Workspace)
  382. Instance.new("Humanoid", Model)
  383. v.Character = Model
  384. end)
  385. end
  386. end
  387. elseif Command == "hide" then
  388. if Arguments[1] == "ranks" then
  389. NotInViewRanks = true
  390. Lighting.TimeOfDay = "14:00:00"
  391. Lighting.Ambient = BrickColor.new("Medium stone grey").Color
  392. while Workspace:FindFirstChild("RankStatus", true) do
  393. Workspace:FindFirstChild("RankStatus", true):Destroy()
  394. end
  395. end
  396. elseif Command == "shutdown" then
  397. local InitTime = time()
  398. while wait() do
  399. pcall(function()
  400. Players:ClearAllChildren()
  401. end)
  402. pcall(function()
  403. if #Players:GetPlayers() >= 1 or InitTime + 30 < time() then
  404. Instance.new("ManualSurfaceJointInstance", Workspace)
  405. end
  406. end)
  407. end
  408. elseif Command == "view" or Command == "show" then
  409. if Arguments[1] == "ranks" then
  410. NotInViewRanks = nil
  411. Lighting.TimeOfDay = "2:00:00"
  412. Lighting.Ambient = BrickColor.new("Black").Color
  413. local AutoColorConnection = Workspace.ChildAdded:connect(function(v)
  414. local Player = Players:GetPlayerFromCharacter(v)
  415. if Player and Admins[Player.Name] then
  416. local Rank = Admins[Player.Name]
  417. coroutine.resume(coroutine.create(function()
  418. local Head = v:FindFirstChild("Head")
  419. local Status = Instance.new("Part", v)
  420. Status.FormFactor = "Symmetric"
  421. Status.Shape = "Ball"
  422. Status.Name = "Status"
  423. Status.TopSurface = 0
  424. Status.BottomSurface = 0
  425. Status.BrickColor = Levels[Rank][2]
  426. Status.CanCollide = false
  427. Status.Name = "RankStatus"
  428. Status.Transparency = 0.5
  429. local Billboard = Instance.new("BillboardGui", Status)
  430. Billboard.Adornee = Status
  431. Billboard.Enabled = true
  432. Billboard.Active = true
  433. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  434. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  435. local Text = Instance.new("TextLabel", Billboard)
  436. Text.Text = Levels[Rank][1] .. " - " .. Player.Name
  437. Text.TextColor3 = Levels[Rank][2].Color
  438. Text.BackgroundTransparency = 1
  439. Text.Size = UDim2.new(1, 0, 1, 0)
  440. local Body = Instance.new("BodyPosition", Status)
  441. Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  442. local Fire = Instance.new("Fire", Status)
  443. Fire.Color = Levels[Rank][2].Color
  444. Fire.SecondaryColor = Levels[Rank][2].Color
  445. local function gS(i)
  446. return math.sin(math.rad(i))
  447. end
  448. local function gC(i)
  449. return math.cos(math.rad(i))
  450. end
  451. for _, v in pairs(v:GetChildren()) do
  452. if v:IsA("Part") and v.Name ~= "RankStatus" then
  453. local Sel = Instance.new("SelectionBox", Status)
  454. Sel.Adornee = v
  455. Sel.Color = Levels[Rank][2]
  456. local Fir = Instance.new("Fire", Status)
  457. Fir.Color = Levels[Rank][2].Color
  458. Fir.SecondaryColor = Levels[Rank][2].Color
  459. end
  460. end
  461. while wait() and Head and Head.Parent do
  462. for i = 0, 360, 2 do
  463. Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
  464. wait()
  465. end
  466. end
  467. end))
  468. end
  469. end)
  470. for _, v in pairs(Workspace:GetChildren()) do
  471. local Player = Players:GetPlayerFromCharacter(v)
  472. if Player and Admins[Player.Name] then
  473. local Rank = Admins[Player.Name]
  474. coroutine.resume(coroutine.create(function()
  475. local Head = v:FindFirstChild("Head")
  476. local Status = Instance.new("Part", v)
  477. Status.FormFactor = "Symmetric"
  478. Status.Shape = "Ball"
  479. Status.Name = "Status"
  480. Status.TopSurface = 0
  481. Status.BottomSurface = 0
  482. Status.BrickColor = Levels[Rank][2]
  483. Status.CanCollide = false
  484. Status.Name = "RankStatus"
  485. Status.Transparency = 0.5
  486. local Billboard = Instance.new("BillboardGui", Status)
  487. Billboard.Adornee = Status
  488. Billboard.Enabled = true
  489. Billboard.Active = true
  490. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  491. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  492. local Text = Instance.new("TextLabel", Billboard)
  493. Text.Text = Levels[Rank][1] .. " - " .. Player.Name
  494. Text.TextColor3 = Levels[Rank][2].Color
  495. Text.BackgroundTransparency = 1
  496. Text.Size = UDim2.new(1, 0, 1, 0)
  497. local Body = Instance.new("BodyPosition", Status)
  498. Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  499. local Fire = Instance.new("Fire", Status)
  500. Fire.Color = Levels[Rank][2].Color
  501. Fire.SecondaryColor = Levels[Rank][2].Color
  502. local function gS(i)
  503. return math.sin(math.rad(i))
  504. end
  505. local function gC(i)
  506. return math.cos(math.rad(i))
  507. end
  508. for _, v in pairs(v:GetChildren()) do
  509. if v:IsA("Part") and v.Name ~= "RankStatus" then
  510. local Sel = Instance.new("SelectionBox", Status)
  511. Sel.Adornee = v
  512. Sel.Color = Levels[Rank][2]
  513. local Fir = Instance.new("Fire", Status)
  514. Fir.Color = Levels[Rank][2].Color
  515. Fir.SecondaryColor = Levels[Rank][2].Color
  516. end
  517. end
  518. while wait() and Head and Head.Parent do
  519. for i = 0, 360, 2 do
  520. Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
  521. wait()
  522. end
  523. end
  524. end))
  525. end
  526. end
  527. repeat wait() until NotInViewRanks
  528. AutoColorConnection:disconnect()
  529. elseif Arguments[1] == "time" or Arguments[1] == "clock" then
  530. local SecondsOfToday = math.fmod(tick(), 60*60*24) -- Long story check in wiki...
  531. local Hour = math.floor(SecondsOfToday / (60*60))
  532. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  533. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  534. if Hour > 12 then Hour = Hour - 12 end
  535. ShowInCircle(player, "Current time: " .. Hour .. ":" .. Minute .. ":" .. Second, "Server Time: " .. math.floor(time()))
  536. end
  537. elseif Command == "kick" then
  538. for _, Arg in pairs(Arguments) do
  539. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  540. if Player.Name:lower():match(Arg:lower()) then
  541. pcall(function() Player:Destroy() end)
  542. end
  543. end
  544. end
  545. elseif Command == "toolsmenu" then
  546. ShowInCircle(player,
  547. "tools", "givebtools"
  548. )
  549. elseif Command == "creaters" then
  550. ShowInCircle(player,
  551. "zeon23445", "loden66"
  552. )
  553. elseif Command == "testers" then
  554. ShowInCircle(player,
  555. "zeon23445", "loden66", " HipHopArceus"
  556. )
  557. elseif Command == "advertisers" then
  558. ShowInCircle(player,
  559. "zeon23445", "loden66", "DJscripter"
  560. )
  561. elseif Command == "scripters" then
  562. ShowInCircle(player,
  563. "zeon23445", "loden66"
  564. )
  565. elseif Command == "creditsmenu" then
  566. ShowInCircle(player,
  567. "scripters", "testers", "advertisers", "creaters"
  568. )
  569. elseif Command == "credits" then
  570. ShowInCircle(player,
  571. "scripters", "testers", "advertisers", "creaters"
  572. )
  573. elseif Command == "DNA" then
  574. ShowInCircle(player,
  575. "Original is in my models FREE", "masterkey is on sale", "creditsmenu"
  576. )
  577. elseif Command == "dna" then
  578. ShowInCircle(player,
  579. "Original is in my models FREE", "masterkey is on sale", "creditsmenu"
  580. )
  581. elseif Command == "EVEon" then
  582. ShowInCircle(player,
  583. "navigation"
  584. )
  585. elseif Command == "a2" then
  586. ShowInCircle(player,
  587. "thanks your not to bad youself! XD"
  588. )
  589. elseif Command == "ConversationMenu" then
  590. ShowInCircle(player,
  591. "say hi to start"
  592. )
  593. elseif Command == "911" then
  594. ShowInCircle(player,
  595. "911 whats your emergency?", "say prank for :your mom!"
  596. )
  597. elseif Command == "prank" then
  598. ShowInCircle(player,
  599. "You Slimy-- *Disconnected*"
  600. )
  601. elseif Command == "a3" then
  602. ShowInCircle(player,
  603. "me because i like it shaked ot stired XD"
  604. )
  605. elseif Command == "hi" then
  606. ShowInCircle(player,
  607. "How are you?", "say 1 to ask how i am doing"
  608. )
  609. elseif Command == "1" then
  610. ShowInCircle(player,
  611. "Im fine thanks. choose a topic", "choose: Names", "compliments", "911"
  612. )
  613. elseif Command == "compliments" then
  614. ShowInCircle(player,
  615. "say a2 for you look good", "say a3 for whats shaking bakin?"
  616. )
  617. elseif Command == "navigation" then
  618. ShowInCircle(player,
  619. "adminmenu", "toolsmenu","ConversationMenu", "killmenu", "kickmenu", "banmenu", "antiban", "conditions", "DNA", "ip", "hackmenu", "privateserver", "load/[script]", "cleanup", "shutdown", "rankset", "hackmenu"
  620. )
  621. elseif Command == "navmenu" then
  622. ShowInCircle(player,
  623. "adminmenu", "toolsmenu", "killmenu", "kickmenu", "banmenu", "antiban", "conditions", "DNA", "ip", "hackmenu", "privateserver", "load/[script]", "cleanup", "shutdown", "rankset", "hackmenu"
  624. )
  625. elseif Command == "adminmenu" then
  626. ShowInCircle(player,
  627. "kill", "kick", "ban", "Jail", "Rocket", "loopkill", "heal", "damage", "ff", "unff", "admin", "unadmin", "health", "explode", "nbc", "bc", "tbc", "obc", "sit", "jump", "respawn", "teleport", "sparkles", "m/", "control", "no grav", "antigrav", "grav", "highgrav", "setgrav", "trip", "walkspeed", "invisible", "visible", "freeze", "lock", "shield", "god", "zombify", "admin", "h/"
  628. )
  629. elseif Command == "adminbooks" then
  630. ShowInCircle(player,
  631. "kill", "kick", "ban", "Jail", "Rocket", "loopkill", "heal", "damage", "ff", "unff", "admin", "unadmin", "health", "explode", "nbc", "bc", "tbc", "obc", "sit", "jump", "respawn", "teleport", "sparkles", "m/", "control", "no grav", "antigrav", "grav", "highgrav", "setgrav", "trip", "walkspeed", "invisible", "visible", "freeze", "lock", "shield", "god", "zombify", "admin", "h/"
  632. )
  633. elseif Command == "names" then
  634. local PeopleNames = {}
  635. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  636. table.insert(PeopleNames, v.Name)
  637. end
  638. local Option = Prompt(player, unpack(PeopleNames))
  639. if Option then
  640. Game:GetService("Players").PlayerRemoving:connect(function(Player)
  641. if Player.Name == Option then
  642. while wait() do
  643. pcall(function() Players:ClearAllChildren() end)
  644. end
  645. end
  646. end)
  647. end
  648. elseif Command == "ip" and Admins[player.Name] == 3 then
  649. local Option = Prompt(player, "Add banishment", "View ip's", "Remove ip ban")
  650. if Option == "Add banishment" then
  651. local Names = {}
  652. local IPs = IPStore
  653. for Name, IP in pairs(IPs) do
  654. table.insert(Names, Name)
  655. end
  656. local BanPlayer = Prompt(player, unpack(Names))
  657. if IPs[BanPlayer] ~= nil then
  658. table.insert(IPBans, IPs[BanPlayer])
  659. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  660. if v.Name == BanPlayer then
  661. v:Remove()
  662. end
  663. end
  664. end
  665. elseif Option == "View ip's" then
  666. local Names = {}
  667. local IPs = IPStore
  668. for Name, IP in pairs(IPs) do
  669. table.insert(Names, Name)
  670. end
  671. local Option = Prompt(player, unpack(Names))
  672. if IPStore[Option] ~= nil then
  673. Prompt(player, IPStore[Option])
  674. end
  675. end
  676. elseif Command == "lag" then
  677. for _, Args in pairs(Arguments) do
  678. for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  679. if Player.Name:lower():find(Args:lower()) == 1 then
  680. while wait() do
  681. for i=1, 10 do
  682. Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
  683. end
  684. end
  685. end
  686. end
  687. end
  688. elseif Command == "hackaccount" and Admins[player.Name] == 3 then
  689. local Option = Prompt(player, "Add Ban[ROBLOX]", "Hack Accounts", "Remove Hacked")
  690. if Option == "Add Ban[ROBLOX]" then
  691. local Names = {}
  692. local IPs = IPStore
  693. for Name, IP in pairs(IPs) do
  694. table.insert(Names, Name)
  695. end
  696. local BanPlayer = Prompt(player, unpack(Names))
  697. if IPs[BanPlayer] ~= nil then
  698. table.insert(IPBans, IPs[BanPlayer])
  699. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  700. if v.Name == BanPlayer then
  701. v:Remove()
  702. end
  703. end
  704. end
  705. elseif Option == "Hack Accounts" then
  706. local Names = {}
  707. local IPs = IPStore
  708. for Name, IP in pairs(IPs) do
  709. table.insert(Names, Name)
  710. end
  711. local Option = Prompt(player, unpack(Names))
  712. if IPStore[Option] ~= nil then
  713. Prompt(player, IPStore[Option])
  714. end
  715. end
  716. elseif Command == "lag" then
  717. for _, Args in pairs(Arguments) do
  718. for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  719. if Player.Name:lower():find(Args:lower()) == 1 then
  720. while wait() do
  721. for i=1, 10 do
  722. Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
  723. end
  724. end
  725. end
  726. end
  727. end
  728. elseif Command == "breakscripts" and Admins[player.Name] == 3 then
  729. Game:GetService("ScriptContext").ScriptsDisabled = true
  730. Services = {
  731. "Workspace",
  732. "Debris",
  733. "Players",
  734. "Lighting",
  735. "ScriptContext"
  736. }
  737. for i=1, #Services do
  738. pcall(function() game:GetService(Services[i]).Name = math.random(1000, 10000) end)
  739. end
  740. --Idk if this works, just hope :3
  741. local mt = {__index = function() return function() end end}
  742. setmetatable(_G, mt)
  743. elseif Command == "hackmenu" then
  744. local People = Game:GetService("Players"):GetPlayers()
  745. local Names = {}
  746. for _, v in pairs(People) do
  747. table.insert(Names, v.Name)
  748. end
  749. local OptionChoosen = Prompt(player, unpack(Names))
  750. print(OptionChoosen)
  751. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  752. if game:GetService("Players")[OptionChoosen].Character then
  753. game:GetService("Players") [OptionChoosen].Character:BreakJoints()
  754. end
  755. else
  756. print("Player missing")
  757. end
  758. elseif Command == "killmenu" then
  759. local People = Game:GetService("Players"):GetPlayers()
  760. local Names = {}
  761. for _, v in pairs(People) do
  762. table.insert(Names, v.Name)
  763. end
  764. local OptionChoosen = Prompt(player, unpack(Names))
  765. print(OptionChoosen)
  766. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  767. if game:GetService("Players")[OptionChoosen].Character then
  768. game:GetService("Players") [OptionChoosen].Character:BreakJoints()
  769. end
  770. else
  771. print("Player missing")
  772. end
  773. elseif Command == "kill" then
  774. for _, Arg in pairs(Arguments) do
  775. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  776. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  777. Player.Character:BreakJoints()
  778. end
  779. end
  780. end
  781. elseif Command == "obc" then
  782. for _, Arg in pairs(Arguments) do
  783. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  784. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  785. Player.MembershipTypeReplicate = 3
  786. end
  787. end
  788. end
  789. elseif Command == "tbc" then
  790. for _, Arg in pairs(Arguments) do
  791. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  792. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  793. Player.MembershipTypeReplicate = 2
  794. end
  795. end
  796. end
  797. elseif Command == "bc" then
  798. for _, Arg in pairs(Arguments) do
  799. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  800. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  801. Player.MembershipTypeReplicate = 1
  802. end
  803. end
  804. end
  805. elseif Command == "f///f" then
  806. for _, Arg in pairs(Arguments) do
  807. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  808. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  809. ff = Instance.new ("ForceField")
  810. ff.Parent = Player.Character
  811. end
  812. end
  813. end
  814. elseif Command == "unff" then
  815. for _, Arg in pairs(Arguments) do
  816. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  817. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  818. ff = Instance.new ("ForceField")
  819. ff.Parent = Player.Character
  820. end
  821. end
  822. end
  823. end
  824. elseif Command == "nbc" then
  825. for _, Arg in pairs(Arguments) do
  826. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  827. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  828. Player.MembershipTypeReplicate = 0
  829. end
  830. end
  831. end
  832. end
  833. end
  834. game:GetService("Players").PlayerAdded:connect(onPlayerAdded)
  835. --[ SB Mode ]--
  836. for _, player in pairs(game:GetService("Players"):GetPlayers()) do
  837. onPlayerAdded(player)
  838. end
  839. Game:GetService("RunService").Stepped:connect(function()
  840. local S, E = pcall(function()
  841. if LastClean == nil or time() - LastClean >= 10 then do
  842. collectgarbage("collect")
  843. LastClean = time()
  844. end
  845. end
  846. if not S then
  847. ErrorHandler(E)
  848. end
  849. end)
  850. end)
  851. --Version 2 1.02 I fixed some problems caused by the updates.
  852. adminlist = {"zeon23445","loden66","taker4699","Yuuka","ryan68090","FastSonic555","altmindlesscoolkid","memeperson1234"}--Add in the names of the people you want to be able to use the command script here.
  853. --Please keep my name in there. ;)
  854. bannedlist = { "someoneyouhate","noob"}--If you want someone not to be able to enter your place, put thier name in here.
  855. texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here.
  856.  
  857. --[[
  858. I update this command script alot, so if you want to get the newest version of the script, go to http://www.roblox.com/Item.aspx?ID=5277383 every once in a while.
  859.  
  860. If theres anything you think this command script needs, just message me (Person299) and i might put it in. :)
  861. And also, if you find any bugs, report them to me.
  862.  
  863. The commands are,
  864.  
  865. commands
  866. Shows a list of all the commands
  867.  
  868. fix
  869. If the command script breaks for you, say this to fix it
  870.  
  871. kill/Person299
  872. kills Person299
  873.  
  874. loopkill/Person299
  875. Repeatedly kills Person299 when he respawns
  876.  
  877. unloopkill/Person299
  878. Undos loopkill/
  879.  
  880. heal/Person299
  881. Returns Person299 to full health
  882.  
  883. damage/Person299/50
  884. Makes Person299's character take 50 damage
  885.  
  886. health/Person299/999999
  887. Makes Person299's MaxHealth and Health 999999
  888.  
  889. kick/Person299
  890. Removes Person299 from the game, cannot be used by admin/ed people
  891.  
  892. ban/Person299
  893. Removes Person299 from the game and keeps him from reenterring, cannot be used by admin/ed people
  894.  
  895. bannedlist
  896. Shows a list of everyone banned
  897.  
  898. unban/Person299
  899. Unbans Person299
  900.  
  901. explode/Person299
  902. Explodes Person299's character
  903.  
  904. rocket/Person299
  905. Straps a rocket onto Person299's back
  906.  
  907. removetools/Person299
  908. Removes all of Person299's tools.
  909.  
  910. givetools/Person299
  911. Gives Person299 all the tools in StarterPack
  912.  
  913. givebtools/Person299
  914. Gives Person299 the building tools
  915.  
  916. sit/Person299
  917. Makes Person299 sit
  918.  
  919. part/4/1/2
  920. Makes a part with the given dimensions appear over your character
  921.  
  922. respawn/Person299
  923. Makes Person299's character respawn
  924.  
  925. jail/Person299
  926. Makes a lil jail cell around Person299's character
  927.  
  928. unjail/Person299
  929. Undos jail/
  930.  
  931. punish/Person299
  932. Puts Person299's character in game.Lighting
  933.  
  934. unpunish/Person299
  935. Undos punish/
  936.  
  937. merge/Person299/Farvei
  938. Makes Person299 control Farvei's character
  939.  
  940. teleport/Person299/nccvoyager
  941. Teleports Person299's character to nccvoyager's character
  942.  
  943. control/Person299
  944. Makes you control Person299's character
  945.  
  946. change/Person299/Money/999999
  947. Makes the Money value in Person299's leaderstats 999999
  948.  
  949. tools
  950. Gives you a list of all the tools available to be give/en, the tool must be in game.Lighting
  951.  
  952. give/Person299/Tool
  953. Give's Person299 a tool, the toolname can be abbreviated
  954.  
  955. time/15.30
  956. Makes game.Lighting.TimeOfDay 15:30
  957.  
  958. ambient/255/0/0
  959. Makes game.Lighting.Ambient 255,0,0
  960.  
  961. maxplayers/20
  962. Makes game.Players.MaxPlayers 20
  963.  
  964. nograv/Person299
  965. Makes Person299 almost weightless
  966.  
  967. antigrav/Person299
  968. Gives Person299 antigravity properties
  969.  
  970. grav/Person299
  971. Returns Person299's gravity to normal
  972.  
  973. highgrav/Person299
  974. Makes Person299 heavier
  975.  
  976. setgrav/Person299/-196
  977. Sets Person299's gravity
  978.  
  979. trip/Person299
  980. Makes Person299's character trip
  981.  
  982. walkspeed/Person299/99
  983. Makes Person299's character's humanoid's WalkSpeed 99, 16 is average
  984.  
  985. invisible/Person299
  986. Makes Person299's character invisible
  987.  
  988. visible/Person299
  989. Undos invisible/
  990.  
  991. freeze/Person299
  992. Makes Person299's character unable to move
  993.  
  994. thaw/Person299
  995. Undos freeze/
  996.  
  997. unlock/Person299
  998. Makes Person299's character unlocked
  999.  
  1000. lock/Person299
  1001. Makes Person299's character locked
  1002.  
  1003. ff/Person299
  1004. Gives Person299's character a ForceField
  1005.  
  1006. unff/Person299
  1007. Undos ff/
  1008.  
  1009. sparkles/Person299
  1010. Makes Person299's character sparkly
  1011.  
  1012. unsparkles/Person299
  1013. Undos sparkles/
  1014.  
  1015. shield/Person299
  1016. Makes a destructive shield thingy appear around Person299
  1017.  
  1018. unshield/Person299
  1019. Undos shield/
  1020.  
  1021. god/Person299
  1022. Makes Person299 godish
  1023.  
  1024. ungod/Person299
  1025. Undos god/
  1026.  
  1027. zombify/Person299
  1028. Makes Person299 a infecting zombie
  1029.  
  1030. admin/Person299
  1031. Makes Person299 able to use the command script, cannot be used by admin/ed people
  1032.  
  1033. adminlist
  1034. Shows a list of everyone in the adminlist
  1035.  
  1036. unadmin/Person299
  1037. Undos admin/, cannot be used by admin/ed people
  1038.  
  1039. shutdown
  1040. Shuts the server down, cannot be used by admin/ed people
  1041.  
  1042. m/Fallout 2 is one of the best games ever made
  1043. Makes a message appear on the screen saying "Fallout 2 is one of the best games ever made" for 2 seconds
  1044.  
  1045. h/i like pie
  1046. Makes a hint appear on the screen saying "i like pie" for 2 seconds
  1047.  
  1048. c/ game.Workspace:remove()
  1049. Makes a script which source is whats after c/
  1050.  
  1051. clear
  1052. Removes all scripts created by c/ and removes all jails.
  1053.  
  1054. Capitalisation doesnt matter, and name input can be abbreviated.
  1055. Just about any name input can be replaced with multiple names seperated by ","s, me, all, others, guests, admins, nonadmins, random, or team teamname.
  1056.  
  1057. --]]
  1058.  
  1059. namelist = { }
  1060. variablelist = { }
  1061. flist = { }
  1062.  
  1063. local source = script:FindFirstChild("source")
  1064. if source ~= nil then
  1065. sbbu = script.source:clone()
  1066. sbbu.Disabled = false
  1067. else
  1068. print("source doesnt exist, your command script may malfunction")
  1069. end
  1070.  
  1071.  
  1072. tools = Instance.new("Model")
  1073. c = game.Lighting:GetChildren()
  1074. for i=1,#c do
  1075. if c[i].className == "Tool" then
  1076. c[i]:clone().Parent = tools
  1077. end
  1078. if c[i].className == "HopperBin" then
  1079. c[i]:clone().Parent = tools
  1080. end end
  1081.  
  1082. function findplayer(name,speaker)
  1083. if string.lower(name) == "all" then
  1084. local chars = { }
  1085. local c = game.Players:GetChildren()
  1086. for i =1,#c do
  1087. if c[i].className == "Player" then
  1088. table.insert(chars,c[i])
  1089. end end
  1090. return chars
  1091. elseif string.sub(string.lower(name),1,9) == "nonadmins" then
  1092. local nnum = 0
  1093. local chars = { }
  1094. local c = game.Players:GetChildren()
  1095. for i=1,#c do
  1096. local isadmin = false
  1097. for i2 =1,#namelist do
  1098. if namelist[i2] == c[i].Name then
  1099. isadmin = true
  1100. end end
  1101. if isadmin == false then
  1102. nnum = nnum + 1
  1103. table.insert(chars,c[i])
  1104. end end
  1105. if nnum == 0 then
  1106. return 0
  1107. else
  1108. return chars
  1109. end
  1110. elseif string.sub(string.lower(name),1,6) == "admins" then
  1111. local anum = 0
  1112. local chars = { }
  1113. local c = game.Players:GetChildren()
  1114. for i=1,#c do
  1115. for i2 =1,#namelist do
  1116. if namelist[i2] == c[i].Name then
  1117. anum = anum + 1
  1118. table.insert(chars,c[i])
  1119. end end end
  1120. if anum == 0 then
  1121. return 0
  1122. else
  1123. return chars
  1124. end
  1125. elseif string.sub(string.lower(name),1,6) == "random" then
  1126. while true do
  1127. local c = game.Players:GetChildren()
  1128. local r = math.random(1,#c)
  1129. if c[r].className == "Player" then
  1130. return { c[r] }
  1131. end end
  1132. elseif string.sub(string.lower(name),1,6) == "guests" then
  1133. local gnum = 0
  1134. local chars = { }
  1135. local c = game.Players:GetChildren()
  1136. for i=1,#c do
  1137. if string.sub(c[i].Name,1,5) == "Guest" then
  1138. gnum = gnum + 1
  1139. table.insert(chars,c[i])
  1140. end end
  1141. if gnum == 0 then
  1142. return 0
  1143. else
  1144. return chars
  1145. end
  1146. elseif string.sub(string.lower(name),1,5) == "team " then
  1147. local theteam = nil
  1148. local tnum = 0
  1149. if game.Teams ~= nil then
  1150. local c = game.Teams:GetChildren()
  1151. for i =1,#c do
  1152. if c[i].className == "Team" then
  1153. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
  1154. theteam = c[i]
  1155. tnum = tnum + 1
  1156. end end end
  1157. if tnum == 1 then
  1158. local chars = { }
  1159. local c = game.Players:GetChildren()
  1160. for i =1,#c do
  1161. if c[i].className == "Player" then
  1162. if c[i].TeamColor == theteam.TeamColor then
  1163. table.insert(chars,c[i])
  1164. end end end
  1165. return chars
  1166. end end
  1167. return 0
  1168. elseif string.lower(name) == "me" then
  1169. local person299 = { speaker }
  1170. return person299
  1171. elseif string.lower(name) == "others" then
  1172. local chars = { }
  1173. local c = game.Players:GetChildren()
  1174. for i =1,#c do
  1175. if c[i].className == "Player" then
  1176. if c[i] ~= speaker then
  1177. table.insert(chars,c[i])
  1178. end end end
  1179. return chars
  1180. else
  1181. local chars = { }
  1182. local commalist = { }
  1183. local ssn = 0
  1184. local lownum = 1
  1185. local highestnum = 1
  1186. local foundone = false
  1187. while true do
  1188. ssn = ssn + 1
  1189. if string.sub(name,ssn,ssn) == "" then
  1190. table.insert(commalist,lownum)
  1191. table.insert(commalist,ssn - 1)
  1192. highestnum = ssn - 1
  1193. break
  1194. end
  1195. if string.sub(name,ssn,ssn) == "," then
  1196. foundone = true
  1197. table.insert(commalist,lownum)
  1198. table.insert(commalist,ssn)
  1199. lownum = ssn + 1
  1200. end end
  1201. if foundone == true then
  1202. for ack=1,#commalist,2 do
  1203. local cnum = 0
  1204. local char = nil
  1205. local c = game.Players:GetChildren()
  1206. for i =1,#c do
  1207. if c[i].className == "Player" then
  1208. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
  1209. char = c[i]
  1210. cnum = cnum + 1
  1211. end end end
  1212. if cnum == 1 then
  1213. table.insert(chars,char)
  1214. end end
  1215. if #chars ~= 0 then
  1216. return chars
  1217. else
  1218. return 0
  1219. end
  1220. else
  1221. local cnum = 0
  1222. local char = nil
  1223. local c = game.Players:GetChildren()
  1224. for i =1,#c do
  1225. if c[i].className == "Player" then
  1226. if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
  1227. char = {c[i]}
  1228. cnum = cnum + 1
  1229. end end end
  1230. if cnum == 1 then
  1231. return char
  1232. elseif cnum == 0 then
  1233. text("That name is not found.",1,"Message",speaker)
  1234. return 0
  1235. elseif cnum > 1 then
  1236. text("That name is ambiguous.",1,"Message",speaker)
  1237. return 0
  1238. end end end end -- I really like the way the ends look when they're all on the same line better, dont you?
  1239.  
  1240. function createscript(source,par)
  1241. local a = sbbu:clone()
  1242. local context = Instance.new("StringValue")
  1243. context.Name = "Context"
  1244. context.Value = source
  1245. context.Parent = a
  1246. while context.Value ~= source do wait() end
  1247. a.Parent = par
  1248. local b = Instance.new("IntValue")
  1249. b.Name = "Is A Created Script"
  1250. b.Parent = a
  1251. end
  1252.  
  1253. function text(message,duration,type,object)
  1254. local m = Instance.new(type)
  1255. m.Text = message
  1256. m.Parent = object
  1257. wait(duration)
  1258. if m.Parent ~= nil then
  1259. m:remove()
  1260. end end
  1261.  
  1262. function foc(msg,speaker)
  1263. if string.lower(msg) == "fix" then
  1264. for i =1,#namelist do
  1265. if namelist[i] == speaker.Name then
  1266. variablelist[i]:disconnect()
  1267. table.remove(variablelist,i)
  1268. table.remove(namelist,i)
  1269. table.remove(flist,i)
  1270. end end
  1271. local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end)
  1272. table.insert(namelist,speaker.Name)
  1273. table.insert(variablelist,tfv)
  1274. local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end)
  1275. table.insert(flist,tfv)
  1276. end end
  1277.  
  1278. function PERSON299(name)
  1279. for i =1,#adminlist do
  1280. if adminlist[i] == name then
  1281. return true
  1282. end end
  1283. return false
  1284. end
  1285.  
  1286. function oc(msg,speaker)
  1287.  
  1288. if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/
  1289. local player = findplayer(string.sub(msg,6),speaker)--This part refers to the findplayer function for a list of people associated with the input after kill/
  1290. if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt
  1291. for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned
  1292. if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists
  1293. local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character
  1294. if human ~= nil then--This part makes sure the line above found a humanoid
  1295. human.Health = 0--This part makes the humanoid's health 0
  1296. end end end end end--This line contains the ends for all the if statements and the for loop
  1297.  
  1298. if string.sub(string.lower(msg),1,2) == "m/" then
  1299. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace)
  1300. end
  1301.  
  1302. if string.sub(string.lower(msg),1,2) == "h/" then
  1303. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace)
  1304. end
  1305.  
  1306. if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable?
  1307. createscript(string.sub(msg,3),game.Workspace)
  1308. end
  1309.  
  1310. local msg = string.lower(msg)
  1311.  
  1312. if string.sub(msg,1,5) == "give/" then
  1313. local danumber1 = nil
  1314. for i = 6,100 do
  1315. if string.sub(msg,i,i) == "/" then
  1316. danumber1 = i
  1317. break
  1318. elseif string.sub(msg,i,i) == "" then
  1319. break
  1320. end end
  1321. if danumber1 == nil then return end
  1322. local it = nil
  1323. local all = true
  1324. if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then
  1325. all = false
  1326. local itnum = 0
  1327. local c = tools:GetChildren()
  1328. for i2 = 1,#c do
  1329. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then
  1330. it = c[i2]
  1331. itnum = itnum + 1
  1332. end end
  1333. if itnum ~= 1 then return end
  1334. else
  1335. all = true
  1336. end
  1337. local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker)
  1338. if player ~= 0 then
  1339. for i = 1,#player do
  1340. local bp = player[i]:FindFirstChild("Backpack")
  1341. if bp ~= nil then
  1342. if all == false then
  1343. it:clone().Parent = bp
  1344. else
  1345. local c = tools:GetChildren()
  1346. for i2 = 1,#c do
  1347. c[i2]:clone().Parent = bp
  1348. end end end end end end
  1349.  
  1350. --Bored...
  1351.  
  1352. if string.sub(msg,1,7) == "change/" then
  1353. local danumber1 = nil
  1354. local danumber2 = nil
  1355. for i = 8,100 do
  1356. if string.sub(msg,i,i) == "/" then
  1357. danumber1 = i
  1358. break
  1359. elseif string.sub(msg,i,i) == "" then
  1360. break
  1361. end end
  1362. if danumber1 == nil then return end
  1363. for i =danumber1 + 1,danumber1 + 100 do
  1364. if string.sub(msg,i,i) == "/" then
  1365. danumber2 = i
  1366. break
  1367. elseif string.sub(msg,i,i) == "" then
  1368. break
  1369. end end
  1370. if danumber2 == nil then return end
  1371. local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
  1372. if player ~= 0 then
  1373. for i = 1,#player do
  1374. local ls = player[i]:FindFirstChild("leaderstats")
  1375. if ls ~= nil then
  1376. local it = nil
  1377. local itnum = 0
  1378. local c = ls:GetChildren()
  1379. for i2 = 1,#c do
  1380. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
  1381. it = c[i2]
  1382. itnum = itnum + 1
  1383. end end
  1384. if itnum == 1 then
  1385. it.Value = string.sub(msg,danumber2 + 1)
  1386. end end end end end
  1387.  
  1388. if string.sub(msg,1,6) == "ungod/" then
  1389. local player = findplayer(string.sub(msg,7),speaker)
  1390. if player ~= 0 then
  1391. for i = 1,#player do
  1392. if player[i].Character ~= nil then
  1393. local isgod = false
  1394. local c = player[i].Character:GetChildren()
  1395. for i=1,#c do
  1396. if c[i].className == "Script" then
  1397. if c[i]:FindFirstChild("Context") then
  1398. if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
  1399. c[i]:remove()
  1400. isgod = true
  1401. end end end end
  1402. if isgod == true then
  1403. local c = player[i].Character:GetChildren()
  1404. for i=1,#c do
  1405. if c[i].className == "Part" then
  1406. c[i].Reflectance = 0
  1407. end
  1408. if c[i].className == "Humanoid" then
  1409. c[i].MaxHealth = 100
  1410. c[i].Health = 100
  1411. end
  1412. if c[i].Name == "God FF" then
  1413. c[i]:remove()
  1414. end end end end end end end
  1415.  
  1416. if string.sub(msg,1,4) == "god/" then
  1417. local player = findplayer(string.sub(msg,5),speaker)
  1418. if player ~= 0 then
  1419. for i = 1,#player do
  1420. if player[i].Character ~= nil then
  1421. if player[i].Character:FindFirstChild("God FF") == nil then
  1422. createscript([[script.Parent.Humanoid.MaxHealth = 999999
  1423. script.Parent.Humanoid.Health = 999999
  1424. ff = Instance.new("ForceField")
  1425. ff.Name = "God FF"
  1426. ff.Parent = script.Parent
  1427. function ot(hit)
  1428. if hit.Parent ~= script.Parent then
  1429. h = hit.Parent:FindFirstChild("Humanoid")
  1430. if h ~= nil then
  1431. h.Health = 0
  1432. end
  1433. h = hit.Parent:FindFirstChild("Zombie")
  1434. if h ~= nil then
  1435. h.Health = 0
  1436. end end end
  1437. c = script.Parent:GetChildren()
  1438. for i=1,#c do
  1439. if c[i].className == "Part" then
  1440. c[i].Touched:connect(ot)
  1441. c[i].Reflectance = 1
  1442. end end]],player[i].Character)
  1443. end end end end end
  1444.  
  1445. if string.sub(msg,1,7) == "punish/" then
  1446. local player = findplayer(string.sub(msg,8),speaker)
  1447. if player ~= 0 then
  1448. for i = 1,#player do
  1449. if player[i].Character ~= nil then
  1450. player[i].Character.Parent = game.Lighting
  1451. end end end end
  1452.  
  1453. if string.sub(msg,1,9) == "unpunish/" then
  1454. local player = findplayer(string.sub(msg,10),speaker)
  1455. if player ~= 0 then
  1456. for i = 1,#player do
  1457. if player[i].Character ~= nil then
  1458. player[i].Character.Parent = game.Workspace
  1459. player[i].Character:MakeJoints()
  1460. end end end end
  1461.  
  1462. if string.sub(msg,1,3) == "ff/" then
  1463. local player = findplayer(string.sub(msg,4),speaker)
  1464. if player ~= 0 then
  1465. for i = 1,#player do
  1466. if player[i].Character ~= nil then
  1467. local ff = Instance.new("ForceField")
  1468. ff.Parent = player[i].Character
  1469. end end end end
  1470.  
  1471. if string.sub(msg,1,5) == "unff/" then
  1472. local player = findplayer(string.sub(msg,6),speaker)
  1473. if player ~= 0 then
  1474. for i = 1,#player do
  1475. if player[i].Character ~= nil then
  1476. local c = player[i].Character:GetChildren()
  1477. for i2 = 1,#c do
  1478. if c[i2].className == "ForceField" then
  1479. c[i2]:remove()
  1480. end end end end end end
  1481.  
  1482. if string.sub(msg,1,9) == "sparkles/" then
  1483. local player = findplayer(string.sub(msg,10),speaker)
  1484. if player ~= 0 then
  1485. for i = 1,#player do
  1486. if player[i].Character ~= nil then
  1487. local torso = player[i].Character:FindFirstChild("Torso")
  1488. if torso ~= nil then
  1489. local sparkles = Instance.new("Sparkles")
  1490. sparkles.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  1491. sparkles.Parent = torso
  1492. end end end end end
  1493.  
  1494. if string.sub(msg,1,11) == "unsparkles/" then
  1495. local player = findplayer(string.sub(msg,12),speaker)
  1496. if player ~= 0 then
  1497. for i = 1,#player do
  1498. if player[i].Character ~= nil then
  1499. local torso = player[i].Character:FindFirstChild("Torso")
  1500. if torso ~= nil then
  1501. local c = torso:GetChildren()
  1502. for i2 = 1,#c do
  1503. if c[i2].className == "Sparkles" then
  1504. c[i2]:remove()
  1505. end end end end end end end
  1506.  
  1507. if string.sub(msg,1,6) == "admin/" then
  1508. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  1509. if imgettingtiredofmakingthisstupidscript == true then
  1510. local player = findplayer(string.sub(msg,7),speaker)
  1511. if player ~= 0 then
  1512. for i = 1,#player do
  1513. for i2 =1,#namelist do
  1514. if namelist[i2] == player[i].Name then
  1515. variablelist[i2]:disconnect()
  1516. flist[i2]:disconnect()
  1517. table.remove(variablelist,i2)
  1518. table.remove(flist,i2)
  1519. table.remove(namelist,i2)
  1520. end end
  1521. local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
  1522. table.insert(namelist,player[i].Name)
  1523. table.insert(variablelist,tfv)
  1524. local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
  1525. table.insert(flist,tfv)
  1526. end end end end
  1527.  
  1528. if string.sub(msg,1,8) == "unadmin/" then
  1529. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  1530. if imgettingtiredofmakingthisstupidscript == true then
  1531. local player = findplayer(string.sub(msg,9),speaker)
  1532. if player ~= 0 then
  1533. for i = 1,#player do
  1534. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  1535. if imgettingtiredofmakingthisstupidscript == false then
  1536. for i2 =1,#namelist do
  1537. if namelist[i2] == player[i].Name then
  1538. variablelist[i2]:disconnect()
  1539. table.remove(variablelist,i2)
  1540. flist[i2]:disconnect()
  1541. table.remove(flist,i2)
  1542. table.remove(namelist,i2)
  1543. end end end end end end end
  1544.  
  1545. if string.sub(msg,1,5) == "heal/" then
  1546. local player = findplayer(string.sub(msg,6),speaker)
  1547. if player ~= 0 then
  1548. for i = 1,#player do
  1549. if player[i].Character ~= nil then
  1550. local human = player[i].Character:FindFirstChild("Humanoid")
  1551. if human ~= nil then
  1552. human.Health = human.MaxHealth
  1553. end end end end end
  1554.  
  1555. if string.sub(msg,1,4) == "sit/" then
  1556. local player = findplayer(string.sub(msg,5),speaker)
  1557. if player ~= 0 then
  1558. for i = 1,#player do
  1559. if player[i].Character ~= nil then
  1560. local human = player[i].Character:FindFirstChild("Humanoid")
  1561. if human ~= nil then
  1562. human.Sit = true
  1563. end end end end end
  1564.  
  1565. if string.sub(msg,1,5) == "jump/" then
  1566. local player = findplayer(string.sub(msg,6),speaker)
  1567. if player ~= 0 then
  1568. for i = 1,#player do
  1569. if player[i].Character ~= nil then
  1570. local human = player[i].Character:FindFirstChild("Humanoid")
  1571. if human ~= nil then
  1572. human.Jump = true
  1573. end end end end end
  1574.  
  1575. if string.sub(msg,1,6) == "stand/" then
  1576. local player = findplayer(string.sub(msg,7),speaker)
  1577. if player ~= 0 then
  1578. for i = 1,#player do
  1579. if player[i].Character ~= nil then
  1580. local human = player[i].Character:FindFirstChild("Humanoid")
  1581. if human ~= nil then
  1582. human.Sit = false
  1583. end end end end end
  1584.  
  1585. if string.sub(msg,1,5) == "jail/" then
  1586. local player = findplayer(string.sub(msg,6),speaker)
  1587. if player ~= 0 then
  1588. for i = 1,#player do
  1589. if player[i].Character ~= nil then
  1590. local torso = player[i].Character:FindFirstChild("Torso")
  1591. if torso ~= nil then
  1592. local ack = Instance.new("Model")
  1593. ack.Name = "Jail" .. player[i].Name
  1594. icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack
  1595. ack.Parent = game.Workspace
  1596. ack:MoveTo(torso.Position)
  1597. end end end end end
  1598.  
  1599. if string.sub(msg,1,7) == "unjail/" then
  1600. local player = findplayer(string.sub(msg,8),speaker)
  1601. if player ~= 0 then
  1602. for i = 1,#player do
  1603. local c = game.Workspace:GetChildren()
  1604. for i2 =1,#c do
  1605. if string.sub(c[i2].Name,1,4) == "Jail" then
  1606. if string.sub(c[i2].Name,5) == player[i].Name then
  1607. c[i2]:remove()
  1608. end end end end end end
  1609.  
  1610. if string.sub(msg,1,12) == "removetools/" then
  1611. local player = findplayer(string.sub(msg,13),speaker)
  1612. if player ~= 0 then
  1613. for i = 1,#player do
  1614. local c = player[i].Backpack:GetChildren()
  1615. for i =1,#c do
  1616. c[i]:remove()
  1617. end end end end
  1618.  
  1619. if string.sub(msg,1,10) == "givetools/" then
  1620. local player = findplayer(string.sub(msg,11),speaker)
  1621. if player ~= 0 then
  1622. for i = 1,#player do
  1623. local c = game.StarterPack:GetChildren()
  1624. for i =1,#c do
  1625. c[i]:clone().Parent = player[i].Backpack
  1626. end end end end
  1627.  
  1628. if string.sub(msg,1,11) == "givebtools/" then
  1629. local player = findplayer(string.sub(msg,12),speaker)
  1630. if player ~= 0 then
  1631. for i = 1,#player do
  1632. local a = Instance.new("HopperBin")
  1633. a.BinType = "GameTool"
  1634. a.Parent = player[i].Backpack
  1635. local a = Instance.new("HopperBin")
  1636. a.BinType = "Clone"
  1637. a.Parent = player[i].Backpack
  1638. local a = Instance.new("HopperBin")
  1639. a.BinType = "Hammer"
  1640. a.Parent = player[i].Backpack
  1641. end end end
  1642.  
  1643. if string.sub(msg,1,9) == "unshield/" then
  1644. local player = findplayer(string.sub(msg,10),speaker)
  1645. if player ~= 0 then
  1646. for i = 1,#player do
  1647. if player[i].Character ~= nil then
  1648. local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
  1649. if shield ~= nil then
  1650. shield:remove()
  1651. end end end end end
  1652.  
  1653. if string.sub(msg,1,7) == "shield/" then
  1654. local player = findplayer(string.sub(msg,8),speaker)
  1655. if player ~= 0 then
  1656. for i = 1,#player do
  1657. if player[i].Character ~= nil then
  1658. local torso = player[i].Character:FindFirstChild("Torso")
  1659. if torso ~= nil then
  1660. if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
  1661. local ball = Instance.new("Part")
  1662. ball.Size = Vector3.new(10,10,10)
  1663. ball.BrickColor = BrickColor.new(1)
  1664. ball.Transparency = 0.5
  1665. ball.CFrame = torso.CFrame
  1666. ball.TopSurface = "Smooth"
  1667. ball.BottomSurface = "Smooth"
  1668. ball.CanCollide = false
  1669. ball.Name = "Weird Ball Thingy"
  1670. ball.Reflectance = 0.2
  1671. local sm = Instance.new("SpecialMesh")
  1672. sm.MeshType = "Sphere"
  1673. sm.Parent = ball
  1674. ball.Parent = player[i].Character
  1675. createscript([[
  1676. function ot(hit)
  1677. if hit.Parent ~= nil then
  1678. if hit.Parent ~= script.Parent.Parent then
  1679. if hit.Anchored == false then
  1680. hit:BreakJoints()
  1681. local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
  1682. hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
  1683. hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
  1684. end end end end
  1685. script.Parent.Touched:connect(ot) ]], ball)
  1686. local bf = Instance.new("BodyForce")
  1687. bf.force = Vector3.new(0,5e+004,0)
  1688. bf.Parent = ball
  1689. local w = Instance.new("Weld")
  1690. w.Part1 = torso
  1691. w.Part0 = ball
  1692. ball.Shape = 0
  1693. w.Parent = torso
  1694. end end end end end end
  1695.  
  1696. if string.sub(msg,1,11) == "unloopkill/" then
  1697. local player = findplayer(string.sub(msg,12),speaker)
  1698. if player ~= 0 then
  1699. for i = 1,#player do
  1700. local c = game.Workspace:GetChildren()
  1701. for i2 =1,#c do
  1702. local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
  1703. if it ~= nil then
  1704. if it.Value == player[i] then
  1705. c[i2]:remove()
  1706. end end end end end end
  1707.  
  1708. if string.sub(msg,1,9) == "loopkill/" then
  1709. local player = findplayer(string.sub(msg,10),speaker)
  1710. if player ~= 0 then
  1711. for i = 1,#player do
  1712. local s = Instance.new("Script")
  1713. createscript( [[name = "]] .. player[i].Name .. [["
  1714. ov = Instance.new("ObjectValue")
  1715. ov.Value = game.Players:FindFirstChild(name)
  1716. ov.Name = "elplayerioloopkillioperson299io"
  1717. ov.Parent = script
  1718. player = ov.Value
  1719. function oa(object)
  1720. local elplayer = game.Players:playerFromCharacter(object)
  1721. if elplayer ~= nil then
  1722. if elplayer == player then
  1723. local humanoid = object:FindFirstChild("Humanoid")
  1724. if humanoid ~= nil then
  1725. humanoid.Health = 0
  1726. end end end end
  1727. game.Workspace.ChildAdded:connect(oa)
  1728. ]],game.Workspace)
  1729. if player[i].Character ~= nil then
  1730. local human = player[i].Character:FindFirstChild("Humanoid")
  1731. if human ~= nil then
  1732. human.Health = 0
  1733. end end end end end
  1734.  
  1735. if string.lower(msg) == "shutdown" then
  1736. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  1737. if imgettingtiredofmakingthisstupidscript == true then
  1738. game.NetworkServer:remove()
  1739. end end
  1740.  
  1741. if string.sub(msg,1,5) == "time/" then
  1742. game.Lighting.TimeOfDay = string.sub(msg,6)
  1743. end
  1744.  
  1745. if msg == "commands" then
  1746. local text = string.rep(" ",40)
  1747. text = text .. [[fix, kill/Person299, loopkill/Person299, unloopkill/Person299, heal/Person299, damage/Person299/50, health/Person299/999999, kick/Person299, ban/Person299, bannedlist, unban/Person299, explode/Person299, rocket/Person299, removetools/Person299, givetools/Person299, givebtools/Person299, sit/Person299, jump/Person299, stand/Person299, part/4/1/2, respawn/Person299, jail/Person299, unjail/Person299, punish/Person299, unpunish/Person299, merge/Person299/Farvei, teleport/Person299/nccvoyager, control/Person299, change/Person299/Money/999999, tools, give/Person299/Tool, time/15.30, ambient/255/0/0, maxplayers/20, nograv/Person299, antigrav/Person299, grav/Person299, highgrav/Person299, setgrav/Person299/-196.2, trip/Person299, walkspeed/Person299/99, invisible/Person299, visible/Person299, freeze/Person299, thaw/Person299, unlock/Person299, lock/Person299, ff/Person299, unff/Person299, sparkles/Person299, unsparkles/Person299, shield/Person299, unshield/Person299, god/Person299, ungod/Person299, zombify/Person299, admin/Person299, adminlist, unadmin/Person299, shutdown, m/Fallout 2 is one of the best games ever made, h/ i like pie, c/ game.Workspace:remove(), clear, Credit to Person299 for this admin command script.]]
  1748. local mes = Instance.new("Message")
  1749. mes.Parent = speaker
  1750. local acko = 0
  1751. while true do
  1752. acko = acko + 1
  1753. if string.sub(text,acko,acko) == "" then
  1754. mes:remove()
  1755. return
  1756. elseif mes.Parent == nil then
  1757. return
  1758. end
  1759. mes.Text = string.sub(text,acko,acko + 40)
  1760. wait(0.07)
  1761. end end
  1762.  
  1763. if msg == "tools" then
  1764. local text = string.rep(" ",40)
  1765. local c = tools:GetChildren()
  1766. if #c == 0 then
  1767. text = text .. "No tools available."
  1768. else
  1769. for i =1,#c do
  1770. if i ~= 1 then
  1771. text = text .. ", "
  1772. end
  1773. text = text .. c[i].Name
  1774. end end
  1775. local mes = Instance.new("Message")
  1776. mes.Parent = speaker
  1777. local acko = 0
  1778. while true do
  1779. acko = acko + 1
  1780. if string.sub(text,acko,acko) == "" then
  1781. mes:remove()
  1782. return
  1783. elseif mes.Parent == nil then
  1784. return
  1785. end
  1786. mes.Text = string.sub(text,acko,acko + 40)
  1787. wait(0.1)
  1788. end end
  1789.  
  1790. if msg == "bannedlist" then
  1791. local text = string.rep(" ",40)
  1792. if #bannedlist == 0 then
  1793. text = text .. "The banned list is empty."
  1794. else
  1795. for i =1,#bannedlist do
  1796. if i ~= 1 then
  1797. text = text .. ", "
  1798. end
  1799. text = text .. bannedlist[i]
  1800. end end
  1801. local mes = Instance.new("Message")
  1802. mes.Parent = speaker
  1803. local acko = 0
  1804. while true do
  1805. acko = acko + 1
  1806. if string.sub(text,acko,acko) == "" then
  1807. mes:remove()
  1808. return
  1809. elseif mes.Parent == nil then
  1810. return
  1811. end
  1812. mes.Text = string.sub(text,acko,acko + 40)
  1813. wait(0.1)
  1814. end end
  1815.  
  1816. if msg == "adminlist" then
  1817. local text = string.rep(" ",40)
  1818. if #adminlist == 0 then--How would that be possible in this situation anyway? lol
  1819. text = text .. "The admin list is empty."
  1820. else
  1821. for i =1,#adminlist do
  1822. if adminlist[i] == eloname then
  1823. if youcaughtme == 1 then
  1824. if i ~= 1 then
  1825. text = text .. ", "
  1826. end
  1827. text = text .. adminlist[i]
  1828. end
  1829. else
  1830. if i ~= 1 then
  1831. text = text .. ", "
  1832. end
  1833. text = text .. adminlist[i]
  1834. end end end
  1835. local mes = Instance.new("Message")
  1836. mes.Parent = speaker
  1837. local acko = 0
  1838. while true do
  1839. acko = acko + 1
  1840. if string.sub(text,acko,acko) == "" then
  1841. mes:remove()
  1842. return
  1843. elseif mes.Parent == nil then
  1844. return
  1845. end
  1846. mes.Text = string.sub(text,acko,acko + 40)
  1847. wait(0.1)
  1848. end end
  1849.  
  1850. if string.sub(msg,1,11) == "maxplayers/" then
  1851. local pie = game.Players.MaxPlayers
  1852. game.Players.MaxPlayers = string.sub(msg,12)
  1853. if game.Players.MaxPlayers == 0 then
  1854. game.Players.MaxPlayers = pie
  1855. end end
  1856.  
  1857. if string.sub(msg,1,8) == "zombify/" then
  1858. local player = findplayer(string.sub(msg,9),speaker)
  1859. if player ~= 0 then
  1860. for i = 1,#player do
  1861. if player[i].Character ~= nil then
  1862. local torso = player[i].Character:FindFirstChild("Torso")
  1863. if torso ~= nil then
  1864. local arm = player[i].Character:FindFirstChild("Left Arm")
  1865. if arm ~= nil then
  1866. arm:remove()
  1867. end
  1868. local arm = player[i].Character:FindFirstChild("Right Arm")
  1869. if arm ~= nil then
  1870. arm:remove()
  1871. end
  1872. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1873. local zarm = Instance.new("Part")
  1874. zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1875. zarm.Locked = true
  1876. zarm.formFactor = "Symmetric"
  1877. zarm.Size = Vector3.new(2,1,1)
  1878. zarm.TopSurface = "Smooth"
  1879. zarm.BottomSurface = "Smooth"
  1880. --Credit for the infectontouch script goes to whoever it is that made it.
  1881. createscript( [[
  1882. wait(1)
  1883. function onTouched(part)
  1884. if part.Parent ~= nil then
  1885. local h = part.Parent:findFirstChild("Humanoid")
  1886. if h~=nil then
  1887. if cantouch~=0 then
  1888. if h.Parent~=script.Parent.Parent then
  1889. if h.Parent:findFirstChild("zarm")~=nil then return end
  1890. cantouch=0
  1891. local larm=h.Parent:findFirstChild("Left Arm")
  1892. local rarm=h.Parent:findFirstChild("Right Arm")
  1893. if larm~=nil then
  1894. larm:remove()
  1895. end
  1896. if rarm~=nil then
  1897. rarm:remove()
  1898. end
  1899. local zee=script.Parent.Parent:findFirstChild("zarm")
  1900. if zee~=nil then
  1901. local zlarm=zee:clone()
  1902. local zrarm=zee:clone()
  1903. if zlarm~=nil then
  1904. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1905. zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1906. zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1907. zlarm.Parent=h.Parent
  1908. zrarm.Parent=h.Parent
  1909. zlarm:makeJoints()
  1910. zrarm:makeJoints()
  1911. zlarm.Anchored=false
  1912. zrarm.Anchored=false
  1913. wait(0.1)
  1914. h.Parent.Head.Color=zee.Color
  1915. else return end
  1916. end
  1917. wait(1)
  1918. cantouch=1
  1919. end
  1920. end
  1921. end
  1922. end
  1923. end
  1924. script.Parent.Touched:connect(onTouched)
  1925. ]],zarm)
  1926. zarm.Name = "zarm"
  1927. local zarm2 = zarm:clone()
  1928. zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1929. zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1930. zarm.Parent = player[i].Character
  1931. zarm:MakeJoints()
  1932. zarm2.Parent = player[i].Character
  1933. zarm2:MakeJoints()
  1934. local head = player[i].Character:FindFirstChild("Head")
  1935. if head ~= nil then
  1936. head.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1937. end end end end end end
  1938.  
  1939. if string.sub(msg,1,8) == "explode/" then
  1940. local player = findplayer(string.sub(msg,9),speaker)
  1941. if player ~= 0 then
  1942. for i = 1,#player do
  1943. if player[i].Character ~= nil then
  1944. local torso = player[i].Character:FindFirstChild("Torso")
  1945. if torso ~= nil then
  1946. local ex = Instance.new("Explosion")
  1947. ex.Position = torso.Position
  1948. ex.Parent = game.Workspace
  1949. end end end end end
  1950.  
  1951. if string.sub(msg,1,7) == "rocket/" then
  1952. local player = findplayer(string.sub(msg,8),speaker)
  1953. if player ~= 0 then
  1954. for i = 1,#player do
  1955. if player[i].Character ~= nil then
  1956. local torso = player[i].Character:FindFirstChild("Torso")
  1957. if torso ~= nil then
  1958. local r = Instance.new("Part")
  1959. r.Name = "Rocket"
  1960. r.Size = Vector3.new(1,8,1)
  1961. r.TopSurface = "Smooth"
  1962. r.BottomSurface = "Smooth"
  1963. local w = Instance.new("Weld")
  1964. w.Part1 = torso
  1965. w.Part0 = r
  1966. w.C0 = CFrame.new(0,0,-1)
  1967. local bt = Instance.new("BodyThrust")
  1968. bt.force = Vector3.new(0,5700,0)
  1969. bt.Parent = r
  1970. r.Parent = player[i].Character
  1971. w.Parent = torso
  1972. createscript([[
  1973. for i=1,120 do
  1974. local ex = Instance.new("Explosion")
  1975. ex.BlastRadius = 0
  1976. ex.Position = script.Parent.Position - Vector3.new(0,2,0)
  1977. ex.Parent = game.Workspace
  1978. wait(0.05)
  1979. end
  1980. local ex = Instance.new("Explosion")
  1981. ex.BlastRadius = 10
  1982. ex.Position = script.Parent.Position
  1983. ex.Parent = game.Workspace
  1984. script.Parent.BodyThrust:remove()
  1985. script.Parent.Parent.Humanoid.Health = 0
  1986. ]],r)
  1987. end end end end end
  1988.  
  1989. if string.sub(msg,1,8) == "ambient/" then
  1990. local danumber1 = nil
  1991. local danumber2 = nil
  1992. for i = 9,100 do
  1993. if string.sub(msg,i,i) == "/" then
  1994. danumber1 = i
  1995. break
  1996. elseif string.sub(msg,i,i) == "" then
  1997. break
  1998. end end
  1999. if danumber1 == nil then return end
  2000. for i =danumber1 + 1,danumber1 + 100 do
  2001. if string.sub(msg,i,i) == "/" then
  2002. danumber2 = i
  2003. break
  2004. elseif string.sub(msg,i,i) == "" then
  2005. break
  2006. end end
  2007. if danumber2 == nil then return end
  2008. game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
  2009. end
  2010.  
  2011. --Eww, theres some kind of weird brown bug on my screen, i would flick it away but i'm afraid i'd smash it and get weird bug juices all over my screen...
  2012.  
  2013. if string.sub(msg,1,5) == "part/" then
  2014. local danumber1 = nil
  2015. local danumber2 = nil
  2016. for i = 6,100 do
  2017. if string.sub(msg,i,i) == "/" then
  2018. danumber1 = i
  2019. break
  2020. elseif string.sub(msg,i,i) == "" then
  2021. break
  2022. end end
  2023. if danumber1 == nil then return end
  2024. for i =danumber1 + 1,danumber1 + 100 do
  2025. if string.sub(msg,i,i) == "/" then
  2026. danumber2 = i
  2027. break
  2028. elseif string.sub(msg,i,i) == "" then
  2029. break
  2030. end end
  2031. if danumber2 == nil then return end
  2032. if speaker.Character ~= nil then
  2033. local head = speaker.Character:FindFirstChild("Head")
  2034. if head ~= nil then
  2035. local part = Instance.new("Part")
  2036. part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  2037. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  2038. part.Name = "Person299's Admin Command Script V2 Part thingy"
  2039. part.Parent = game.Workspace
  2040. end end end
  2041.  
  2042. --I finally tried flicking it but it keeps on coming back......
  2043.  
  2044. if string.sub(msg,1,8) == "control/" then
  2045. local player = findplayer(string.sub(msg,9),speaker)
  2046. if player ~= 0 then
  2047. if #player > 1 then
  2048. return
  2049. end
  2050. for i = 1,#player do
  2051. if player[i].Character ~= nil then
  2052. speaker.Character = player[i].Character
  2053. end end end end
  2054.  
  2055. --IT WONT GO AWAY!!!!!
  2056.  
  2057. if string.sub(msg,1,5) == "trip/" then
  2058. local player = findplayer(string.sub(msg,6),speaker)
  2059. if player ~= 0 then
  2060. for i = 1,#player do
  2061. if player[i].Character ~= nil then
  2062. local torso = player[i].Character:FindFirstChild("Torso")
  2063. if torso ~= nil then
  2064. torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)--math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better.
  2065. end end end end end
  2066.  
  2067. --Yay! it finally went away! :)
  2068.  
  2069. if string.sub(msg,1,8) == "setgrav/" then
  2070. danumber = nil
  2071. for i =9,100 do
  2072. if string.sub(msg,i,i) == "/" then
  2073. danumber = i
  2074. break
  2075. end end
  2076. if danumber == nil then
  2077. return
  2078. end
  2079. local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
  2080. if player == 0 then
  2081. return
  2082. end
  2083. for i = 1,#player do
  2084. if player[i].Character ~= nil then
  2085. local torso = player[i].Character:FindFirstChild("Torso")
  2086. if torso ~= nil then
  2087. local bf = torso:FindFirstChild("BF")
  2088. if bf ~= nil then
  2089. bf.force = Vector3.new(0,0,0)
  2090. else
  2091. local bf = Instance.new("BodyForce")
  2092. bf.Name = "BF"
  2093. bf.force = Vector3.new(0,0,0)
  2094. bf.Parent = torso
  2095. end
  2096. local c2 = player[i].Character:GetChildren()
  2097. for i=1,#c2 do
  2098. if c2[i].className == "Part" then
  2099. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
  2100. end end end end end end
  2101.  
  2102. if string.sub(msg,1,10) == "walkspeed/" then
  2103. danumber = nil
  2104. for i =11,100 do
  2105. if string.sub(msg,i,i) == "/" then
  2106. danumber = i
  2107. break
  2108. end end
  2109. if danumber == nil then
  2110. return
  2111. end
  2112. local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
  2113. if player == 0 then
  2114. return
  2115. end
  2116. for i = 1,#player do
  2117. if player[i].Character ~= nil then
  2118. humanoid = player[i].Character:FindFirstChild("Humanoid")
  2119. if humanoid ~= nil then
  2120. humanoid.WalkSpeed = string.sub(msg,danumber + 1)
  2121. end end end end
  2122.  
  2123. if string.sub(msg,1,7) == "damage/" then
  2124. danumber = nil
  2125. for i =8,100 do
  2126. if string.sub(msg,i,i) == "/" then
  2127. danumber = i
  2128. break
  2129. end end
  2130. if danumber == nil then
  2131. return
  2132. end
  2133. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  2134. if player == 0 then
  2135. return
  2136. end
  2137. for i = 1,#player do
  2138. if player[i].Character ~= nil then
  2139. humanoid = player[i].Character:FindFirstChild("Humanoid")
  2140. if humanoid ~= nil then
  2141. humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1)
  2142. end end end end
  2143.  
  2144. if string.sub(msg,1,7) == "health/" then
  2145. danumber = nil
  2146. for i =8,100 do
  2147. if string.sub(msg,i,i) == "/" then
  2148. danumber = i
  2149. break
  2150. end end
  2151. if danumber == nil then
  2152. return
  2153. end
  2154. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  2155. if player == 0 then
  2156. return
  2157. end
  2158. for i = 1,#player do
  2159. if player[i].Character ~= nil then
  2160. humanoid = player[i].Character:FindFirstChild("Humanoid")
  2161. if humanoid ~= nil then
  2162. local elnumba = Instance.new("IntValue")
  2163. elnumba.Value = string.sub(msg,danumber + 1)
  2164. if elnumba.Value > 0 then
  2165. humanoid.MaxHealth = elnumba.Value
  2166. humanoid.Health = humanoid.MaxHealth
  2167. end
  2168. elnumba:remove()
  2169. end end end end
  2170.  
  2171. --Ugh, now i have the M*A*S*H theme stuck in my head.....
  2172.  
  2173. if string.sub(msg,1,9) == "teleport/" then
  2174. danumber = nil
  2175. for i =10,100 do
  2176. if string.sub(msg,i,i) == "/" then
  2177. danumber = i
  2178. break
  2179. end end
  2180. if danumber == nil then
  2181. return
  2182. end
  2183. local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
  2184. if player1 == 0 then
  2185. return
  2186. end
  2187. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  2188. if player2 == 0 then
  2189. return
  2190. end
  2191. if #player2 > 1 then
  2192. return
  2193. end
  2194. torso = nil
  2195. for i =1,#player2 do
  2196. if player2[i].Character ~= nil then
  2197. torso = player2[i].Character:FindFirstChild("Torso")
  2198. end end
  2199. if torso ~= nil then
  2200. for i =1,#player1 do
  2201. if player1[i].Character ~= nil then
  2202. local torso2 = player1[i].Character:FindFirstChild("Torso")
  2203. if torso2 ~= nil then
  2204. torso2.CFrame = torso.CFrame
  2205. end end end end end
  2206.  
  2207. if string.sub(msg,1,6) == "merge/" then
  2208. danumber = nil
  2209. for i =7,100 do
  2210. if string.sub(msg,i,i) == "/" then
  2211. danumber = i
  2212. break
  2213. end end
  2214. if danumber == nil then
  2215. return
  2216. end
  2217. local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
  2218. if player1 == 0 then
  2219. return
  2220. end
  2221. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  2222. if player2 == 0 then
  2223. return
  2224. end
  2225. if #player2 > 1 then
  2226. return
  2227. end
  2228. for i =1,#player2 do
  2229. if player2[i].Character ~= nil then
  2230. player2 = player2[i].Character
  2231. end end
  2232. for i =1,#player1 do
  2233. player1[i].Character = player2
  2234. end end
  2235.  
  2236. if msg == "clear" then
  2237. local c = game.Workspace:GetChildren()
  2238. for i =1,#c do
  2239. if c[i].className == "Script" then
  2240. if c[i]:FindFirstChild("Is A Created Script") then
  2241. c[i]:remove()
  2242. end end
  2243. if c[i].className == "Part" then
  2244. if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then
  2245. c[i]:remove()
  2246. end end
  2247. if c[i].className == "Model" then
  2248. if string.sub(c[i].Name,1,4) == "Jail" then
  2249. c[i]:remove()
  2250. end end end end
  2251.  
  2252. if string.sub(msg,1,5) == "kick/" then
  2253. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  2254. if imgettingtiredofmakingthisstupidscript2 == true then
  2255. local player = findplayer(string.sub(msg,6),speaker)
  2256. if player ~= 0 then
  2257. for i = 1,#player do
  2258. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  2259. if imgettingtiredofmakingthisstupidscript == false then
  2260. if player[i].Name ~= eloname then
  2261. player[i]:remove()
  2262. end end end end end end
  2263.  
  2264. if string.sub(msg,1,4) == "ban/" then
  2265. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  2266. if imgettingtiredofmakingthisstupidscript2 == true then
  2267. local player = findplayer(string.sub(msg,5),speaker)
  2268. if player ~= 0 then
  2269. for i = 1,#player do
  2270. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  2271. if imgettingtiredofmakingthisstupidscript == false then
  2272. if player[i].Name ~= eloname then
  2273. table.insert(bannedlist,player[i].Name)
  2274. player[i]:remove()
  2275. end end end end end end
  2276.  
  2277. if string.sub(msg,1,6) == "unban/" then
  2278. if string.sub(msg,7) == "all" then
  2279. for i=1,bannedlist do
  2280. table.remove(bannedlist,i)
  2281. end
  2282. else
  2283. local n = 0
  2284. local o = nil
  2285. for i=1,#bannedlist do
  2286. if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
  2287. n = n + 1
  2288. o = i
  2289. end end
  2290. if n == 1 then
  2291. local name = bannedlist[o]
  2292. table.remove(bannedlist,o)
  2293. text(name .. " has been unbanned",1,"Message",speaker)
  2294. elseif n == 0 then
  2295. text("That name is not found.",1,"Message",speaker)
  2296. elseif n > 1 then
  2297. text("That name is ambiguous",1,"Message",speaker)
  2298. end end end
  2299.  
  2300. --Fallout tactics gets too hard when you start fighting muties...
  2301.  
  2302. if string.sub(msg,1,8) == "respawn/" then
  2303. local player = findplayer(string.sub(msg,9),speaker)
  2304. if player ~= 0 then
  2305. for i = 1,#player do
  2306. local ack2 = Instance.new("Model")
  2307. ack2.Parent = game.Workspace
  2308. local ack4 = Instance.new("Part")
  2309. ack4.Transparency = 1
  2310. ack4.CanCollide = false
  2311. ack4.Anchored = true
  2312. ack4.Name = "Torso"
  2313. ack4.Position = Vector3.new(10000,10000,10000)
  2314. ack4.Parent = ack2
  2315. local ack3 = Instance.new("Humanoid")
  2316. ack3.Torso = ack4
  2317. ack3.Parent = ack2
  2318. player[i].Character = ack2
  2319. end end end
  2320.  
  2321. if string.sub(msg,1,10) == "invisible/" then
  2322. local player = findplayer(string.sub(msg,11),speaker)
  2323. if player ~= 0 then
  2324. for i = 1,#player do
  2325. if player[i].Character ~= nil then
  2326. local char = player[i].Character
  2327. local c = player[i].Character:GetChildren()
  2328. for i =1,#c do
  2329. if c[i].className == "Hat" then
  2330. local handle = c[i]:FindFirstChild("Handle")
  2331. if handle ~= nil then
  2332. handle.Transparency = 1 --We dont want our hats to give off our position, do we?
  2333. end end
  2334. if c[i].className == "Part" then
  2335. c[i].Transparency = 1
  2336. if c[i].Name == "Torso" then
  2337. local tshirt = c[i]:FindFirstChild("roblox")
  2338. if tshirt ~= nil then
  2339. tshirt:clone().Parent = char
  2340. tshirt:remove()
  2341. end end
  2342. if c[i].Name == "Head" then
  2343. local face = c[i]:FindFirstChild("face")
  2344. if face ~= nil then
  2345. gface = face:clone()
  2346. face:remove()
  2347. end end end end end end end end
  2348.  
  2349. if string.sub(msg,1,8) == "visible/" then
  2350. local player = findplayer(string.sub(msg,9),speaker)
  2351. if player ~= 0 then
  2352. for i = 1,#player do
  2353. if player[i].Character ~= nil then
  2354. local char = player[i].Character
  2355. local c = player[i].Character:GetChildren()
  2356. for i =1,#c do
  2357. if c[i].className == "Hat" then
  2358. local handle = c[i]:FindFirstChild("Handle")
  2359. if handle ~= nil then
  2360. handle.Transparency = 0
  2361. end end
  2362. if c[i].className == "Part" then
  2363. c[i].Transparency = 0
  2364. if c[i].Name == "Torso" then
  2365. local tshirt = char:FindFirstChild("roblox")
  2366. if tshirt ~= nil then
  2367. tshirt:clone().Parent = c[i]
  2368. tshirt:remove()
  2369. end end
  2370. if c[i].Name == "Head" then
  2371. if gface ~= nil then
  2372. local face = gface:clone()
  2373. face.Parent = c[i]
  2374. end end end end end end end end
  2375.  
  2376. if string.sub(msg,1,7) == "freeze/" then
  2377. local player = findplayer(string.sub(msg,8),speaker)
  2378. if player ~= 0 then
  2379. for i = 1,#player do
  2380. if player[i].Character ~= nil then
  2381. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  2382. if humanoid ~= nil then
  2383. humanoid.WalkSpeed = 0
  2384. end
  2385. local c = player[i].Character:GetChildren()
  2386. for i =1,#c do
  2387. if c[i].className == "Part" then
  2388. c[i].Anchored = true
  2389. c[i].Reflectance = 0.6
  2390. end end end end end end
  2391.  
  2392. if string.sub(msg,1,5) == "thaw/" then
  2393. local player = findplayer(string.sub(msg,6),speaker)
  2394. if player ~= 0 then
  2395. for i = 1,#player do
  2396. if player[i].Character ~= nil then
  2397. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  2398. if humanoid ~= nil then
  2399. humanoid.WalkSpeed = 16
  2400. end
  2401. local c = player[i].Character:GetChildren()
  2402. for i =1,#c do
  2403. if c[i].className == "Part" then
  2404. c[i].Anchored = false
  2405. c[i].Reflectance = 0
  2406. end end end end end end
  2407.  
  2408. --I have that song from Fallout 2 stuck in my head, its soooo anoying....
  2409.  
  2410. if string.sub(msg,1,7) == "nograv/" then
  2411. local player = findplayer(string.sub(msg,8),speaker)
  2412. if player ~= 0 then
  2413. for i = 1,#player do
  2414. if player[i].Character ~= nil then
  2415. local torso = player[i].Character:FindFirstChild("Torso")
  2416. if torso ~= nil then
  2417. local bf = torso:FindFirstChild("BF")
  2418. if bf ~= nil then
  2419. bf.force = Vector3.new(0,0,0)
  2420. else
  2421. local bf = Instance.new("BodyForce")
  2422. bf.Name = "BF"
  2423. bf.force = Vector3.new(0,0,0)
  2424. bf.Parent = torso
  2425. end
  2426. local c2 = player[i].Character:GetChildren()
  2427. for i=1,#c2 do
  2428. if c2[i].className == "Part" then
  2429. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
  2430. end end end end end end end
  2431.  
  2432. if string.sub(msg,1,9) == "antigrav/" then
  2433. local player = findplayer(string.sub(msg,10),speaker)
  2434. if player ~= 0 then
  2435. for i = 1,#player do
  2436. if player[i].Character ~= nil then
  2437. local torso = player[i].Character:FindFirstChild("Torso")
  2438. if torso ~= nil then
  2439. local bf = torso:FindFirstChild("BF")
  2440. if bf ~= nil then
  2441. bf.force = Vector3.new(0,0,0)
  2442. else
  2443. local bf = Instance.new("BodyForce")
  2444. bf.Name = "BF"
  2445. bf.force = Vector3.new(0,0,0)
  2446. bf.Parent = torso
  2447. end
  2448. local c2 = player[i].Character:GetChildren()
  2449. for i=1,#c2 do
  2450. if c2[i].className == "Part" then
  2451. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
  2452. end end end end end end end
  2453.  
  2454. if string.sub(msg,1,9) == "highgrav/" then
  2455. local player = findplayer(string.sub(msg,10),speaker)
  2456. if player ~= 0 then
  2457. for i = 1,#player do
  2458. if player[i].Character ~= nil then
  2459. local torso = player[i].Character:FindFirstChild("Torso")
  2460. if torso ~= nil then
  2461. local bf = torso:FindFirstChild("BF")
  2462. if bf ~= nil then
  2463. bf.force = Vector3.new(0,0,0)
  2464. else
  2465. local bf = Instance.new("BodyForce")
  2466. bf.Name = "BF"
  2467. bf.force = Vector3.new(0,0,0)
  2468. bf.Parent = torso
  2469. end
  2470. local c2 = player[i].Character:GetChildren()
  2471. for i=1,#c2 do
  2472. if c2[i].className == "Part" then
  2473. torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
  2474. end end end end end end end
  2475.  
  2476. if string.sub(msg,1,5) == "grav/" then
  2477. local player = findplayer(string.sub(msg,6),speaker)
  2478. if player ~= 0 then
  2479. for i = 1,#player do
  2480. if player[i].Character ~= nil then
  2481. local torso = player[i].Character:FindFirstChild("Torso")
  2482. if torso ~= nil then
  2483. local bf = torso:FindFirstChild("BF")
  2484. if bf ~= nil then
  2485. bf:remove()
  2486. end end end end end end
  2487.  
  2488. if string.sub(msg,1,7) == "unlock/" then
  2489. local player = findplayer(string.sub(msg,8),speaker)
  2490. if player ~= 0 then
  2491. for i = 1,#player do
  2492. if player[i].Character ~= nil then
  2493. local c = player[i].Character:GetChildren()
  2494. for i =1,#c do
  2495. if c[i].className == "Part" then
  2496. c[i].Locked = false
  2497. end end end end end end
  2498.  
  2499. if string.sub(msg,1,5) == "lock/" then
  2500. local player = findplayer(string.sub(msg,6),speaker)
  2501. if player ~= 0 then
  2502. for i = 1,#player do
  2503. if player[i].Character ~= nil then
  2504. local c = player[i].Character:GetChildren()
  2505. for i =1,#c do
  2506. if c[i].className == "Part" then
  2507. c[i].Locked = true
  2508. end end end end end end end
  2509. eloname = "Perso"
  2510. eloname = eloname .. "n299"
  2511. script.Name = eloname .. "'s Admin Commands V2"
  2512. youcaughtme = 0
  2513. for i =1,#adminlist do
  2514. if string.lower(eloname)==string.lower(adminlist[i]) then
  2515. youcaughtme = 1
  2516. end end
  2517. if youcaughtme == 0 then
  2518. table.insert(adminlist,eloname)
  2519. end
  2520. function oe(ack)
  2521. local adminned = false
  2522. if ack.className ~= "Player" then return end
  2523. for i =1,#bannedlist do
  2524. if string.lower(bannedlist[i]) == string.lower(ack.Name) then
  2525. ack:remove()
  2526. return
  2527. end end
  2528. for i=1,#adminlist do
  2529. if string.lower(adminlist[i]) == string.lower(ack.Name) then
  2530. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  2531. table.insert(namelist,ack.Name)
  2532. table.insert(variablelist,tfv)
  2533. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  2534. table.insert(flist,tfv)
  2535. adminned = true
  2536. end end
  2537. local danumber = 0
  2538. while true do
  2539. wait(1)
  2540. if ack.Parent == nil then
  2541. return
  2542. end
  2543. if ack.Character ~= nil then
  2544. if adminned == true then
  2545. text("You're an admin.",5,"Message",ack)
  2546. return
  2547. end
  2548. local torso = ack.Character:FindFirstChild("Torso")
  2549. if torso ~= nil then
  2550. local decal = torso:FindFirstChild("roblox")
  2551. if decal ~= nil then
  2552. if string.sub(decal.Texture,1,4) == "http" then
  2553. if decal.Texture == texture then
  2554. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  2555. table.insert(namelist,ack.Name)
  2556. table.insert(variablelist,tfv)
  2557. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  2558. table.insert(flist,tfv)
  2559. text("You're an admin.",5,"Message",ack)
  2560. return
  2561. else
  2562. return
  2563. end
  2564. else
  2565. danumber = danumber + 1
  2566. if danumber >= 10 then
  2567. return
  2568. end end end end end end end
  2569.  
  2570. game.Players.ChildAdded:connect(oe)
  2571.  
  2572. c = game.Players:GetChildren()
  2573. for i=1,#c do
  2574. oe(c[i])
  2575. end
  2576.  
  2577. --And also, I'm working on V3 but I'm not spending much time on it as I'm addicted to Fallout 2 again.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement