Advertisement
Acetheking

Untitled

Oct 29th, 2014
1,188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RBScript 127.62 KB | None | 0 0
  1. ROBLOX  How to Make a Raycasting Lasergun.
  2. This tutorial is going to show you the built in ROBLOX raycasting, and a practical application of using this: building a lasergun.
  3.  
  4. Raycasting is basically checking for collisions in a direction. ROBLOX raycasting is used with the workspace:FindPartOnRay(Ray, Ignore) method. It takes two arguments. The first argument is a ray. To construct a ray you use Ray.new(Start, Offset) Start is the point the ray checks for collisions from, offset is how far to check away from it. The second argument is an instance. The ray will ignore all the stuff inside the descendants of that instance.
  5.  
  6. The first thing we want to do is get an actual laser gun for us to script! We could make a tool, insert a handle and a mesh and all that or we could just use the ROBLOX paintball gun. Let's start by grabbing that from the toolbox under tools & weapons. Next just take all the stuff out of the tool except the handle and mesh. Now we have a nice tool that we can easily script. Insert a LocalScript from the Basic Objects window. A normal Script would work, but only on a client with no server connection (solo mode). We need a LocalScript because we're dealing with the mouse.
  7.  
  8. Next up we need to code our base. In our script let's start with this:
  9.  
  10. local tool = script.Parent
  11. local user
  12.  
  13. These will be our starter variables. We didn't set a value for user, as it can change when a new person picks it up. Now we need to make it so that it'll do something when we equip. Let's connect the equipped event for the tool to a function. Note: You don't have to explicitly create a function for this, you can just put an unnamed function inside the :connect perimeters, like this:
  14.  
  15. local tool = script.Parent
  16. local user
  17. tool.Equipped:connect(function(mouse)
  18.  
  19. end)
  20.  
  21. Now we have our function connected to the event, and we have access to the mouse because that's what equipped sends in. Now we can do almost the same thing with the button1down event in the mouse, except it doesn't send anything:
  22.  
  23. local tool = script.Parent
  24. local user
  25. tool.Equipped:connect(function(mouse)
  26.     mouse.Button1Down:connect(function()
  27.  
  28.     end)
  29. end)
  30.  
  31. When we click the left button on the mouse, our event will be fired!
  32.  
  33. Now we need to create a ray, but first we should get the character of the player so the ray won't collide with them. When a tool is picked up or equipped it moves its parent into their character, so we can just do this:
  34.  
  35. local tool = script.Parent
  36. local user
  37. tool.Equipped:connect(function(mouse)
  38.     user = tool.Parent
  39.     mouse.Button1Down:connect(function()
  40.  
  41.     end)
  42. end)
  43.  
  44. Now we're ready! Rays take two arguments, a start and an offset. The start is basically where the ray is coming from and the offset is how far to check off of the start. Let's create a ray between the tool handle and the mouse:
  45.  
  46. local tool = script.Parent
  47. local user
  48. tool.Equipped:connect(function(mouse)
  49.     user = tool.Parent
  50.     mouse.Button1Down:connect(function()
  51.         --make the ray
  52.         local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p -  tool.Handle.CFrame.p).unit*300)
  53.     end)
  54. end)
  55.  
  56. Now we have our ray! We made the offset with the direction between the tool handle and the mouse click position, and multiplied it by 300 so that it won't have too long of a range. Next we should check for a collision with game.Workspace:FindPartOnRay(Ray, Ignore). We'll supply our ray, and for ignore we'll use user. It returns two values, the hit part and the position it hit at. If it didn't hit anything it returns nil and the end point of the ray. Here's our code now:
  57.  
  58. local tool = script.Parent
  59. local user
  60. tool.Equipped:connect(function(mouse)
  61.     user = tool.Parent
  62.     mouse.Button1Down:connect(function()
  63.         --make and do a hit test along the ray
  64.         local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p -  tool.Handle.CFrame.p).unit*300)
  65.         local hit, position = game.Workspace:FindPartOnRay(ray, user)
  66.     end)
  67. end)
  68.  
  69. Now we have two variables we can use to do damage and draw a laser.
  70.  
  71. Now we need to make it check if it hit something, see if there's a humanoid and do damage if they don't have a forcefield. You most likely know how to do the first two things if you've come this far, but to stop it from doing damage if they have a forcefield we'll use the :TakeDamage(Damage) method on the humanoid. Here we go:
  72.  
  73. local tool = script.Parent
  74. local user
  75. tool.Equipped:connect(function(mouse)
  76.     user = tool.Parent
  77.     mouse.Button1Down:connect(function()
  78.         --make and do a hit test along the ray
  79.         local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
  80.         local hit, position = game.Workspace:FindPartOnRay(ray, user)
  81.  
  82.         --do damage to any humanoids hit
  83.         local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  84.         if humanoid then
  85.             humanoid:TakeDamage(30)
  86.         end
  87.     end)
  88. end)
  89.  
  90. Excellent! If you fire at something with a humanoid it will take 30 damage. It's kind of hard to visualize the path though, so let's draw a laser. To do this we'll create a nice skinny custom part and stretch it to the length between the points, then set its CFrame to the point in the middle of the points. Here we go:
  91.  
  92. local tool = script.Parent
  93. local user
  94. tool.Equipped:connect(function(mouse)
  95.     user = tool.Parent
  96.     mouse.Button1Down:connect(function()
  97.         --make and do a hit test along the ray
  98.         local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
  99.         local hit, position = game.Workspace:FindPartOnRay(ray, user)
  100.  
  101.         --do damage to any humanoids hit
  102.         local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  103.         if humanoid then
  104.             humanoid:TakeDamage(30)
  105.         end
  106.  
  107.         --draw the ray
  108.         local distance = (position - tool.Handle.CFrame.p).magnitude
  109.         local rayPart = Instance.new("Part", user)
  110.         rayPart.Name          = "RayPart"
  111.         rayPart.BrickColor    = BrickColor.new("Bright red")
  112.         rayPart.Transparency  = 0.5
  113.         rayPart.Anchored      = true
  114.         rayPart.CanCollide    = false
  115.         rayPart.TopSurface    = Enum.SurfaceType.Smooth
  116.         rayPart.BottomSurface = Enum.SurfaceType.Smooth
  117.         rayPart.formFactor    = Enum.FormFactor.Custom
  118.         rayPart.Size          = Vector3.new(0.2, 0.2, distance)
  119.         rayPart.CFrame        = CFrame.new(position, tool.Handle.CFrame.p) * CFrame.new(0, 0, -distance/2)
  120.  
  121.         --add it to debris so it disappears after 0.1 seconds
  122.         game.Debris:AddItem(rayPart, 0.1)
  123.     end)
  124. end)
  125.  
  126. That'll draw a nice semi visible red line between the two points. We're using magnitude to determine the distance, and then setting the CFrame with two arguments which will point the CFrame from the first argument to the second. Then we offset it by negative the distance between the points divided by two, so we end up in the middle. Adding it to the debris will make it delete after 0.1 the second argument number of seconds.
  127.  
  128. local tool = script.Parent
  129. local user
  130.  
  131. --when the tool is equipped
  132. tool.Equipped:connect(function(mouse)
  133.    --store the character of the person using the tool
  134.    user = tool.Parent
  135.  
  136.    --when the left mouse button is clicked
  137.    mouse.Button1Down:connect(function()
  138.        --make and do a hit test along the ray
  139.        local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit*300)
  140.        local hit, position = game.Workspace:FindPartOnRay(ray, user)
  141.  
  142.        --do damage to any humanoids hit
  143.        local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
  144.        if humanoid then
  145.            humanoid:TakeDamage(30)
  146.        end
  147.  
  148.        --draw the ray
  149.        local distance = (position - tool.Handle.CFrame.p).magnitude
  150.        local rayPart = Instance.new("Part", user)
  151.        rayPart.Name          = "RayPart"
  152.        rayPart.BrickColor    = BrickColor.new("Bright red")
  153.        rayPart.Transparency  = 0.5
  154.        rayPart.Anchored      = true
  155.        rayPart.CanCollide    = false
  156.        rayPart.TopSurface    = Enum.SurfaceType.Smooth
  157.        rayPart.BottomSurface = Enum.SurfaceType.Smooth
  158.        rayPart.formFactor    = Enum.FormFactor.Custom
  159.        rayPart.Size          = Vector3.new(0.2, 0.2, distance)
  160.        rayPart.CFrame        = CFrame.new(position, tool.Handle.CFrame.p) * CFrame.new(0, 0, -distance/2)
  161.  
  162.        --add it to debris so it disappears after 0.1 seconds
  163.        game.Debris:AddItem(rayPart, 0.1)
  164.    end)
  165. end)
  166.  
  167. Here, Sahil. This is the perfect code to making a gun made by me.
  168.  
  169. Another script for your server and admin script.
  170. Admins = {
  171. ["Darkrye77"] = 3, -- Your name
  172. [""] = 3, -- Friends names
  173. [""] = 3,
  174. [""] = 3
  175. }
  176. local Levels = {
  177. [0] = {"Peasant", BrickColor.new("Medium stone grey")};
  178. [1] = {"Knight", BrickColor.new("Bright red")};
  179. [2] = {"Lord", BrickColor.new("Navy blue")};
  180. [3] = {"King", BrickColor.new("Really black")}
  181. }
  182. Players = Game:GetService("Players")
  183. Workspace = Game:GetService("Workspace")
  184. Debris = Game:GetService("Debris")
  185. Lighting = Game:GetService("Lighting")
  186. Teams = Game:GetService("Teams")
  187. MR = math.rad
  188. MD = math.deg
  189. IPStore = {}
  190. IPBans = {}
  191. Banned = {"Network Server"}
  192. PrivateServer = {}
  193. PrivateServerWarnings = {}
  194. function IncommingConnection(IPAddress, Replicator)
  195. local IP = IPAddress:sub(1, IPAddress:find(":")-1)
  196. local ThePlayer
  197. Players.PlayerAdded:connect(function(NewPlayer)
  198. if not ThePlayer then
  199. ThePlayer = NewPlayer
  200. end
  201. end)
  202. repeat wait() until ThePlayer
  203. IPStore[ThePlayer.Name] = IP
  204. for i=1, #IPBans do
  205. if IPBans[i] == IP then
  206. ThePlayer:Remove()
  207. end
  208. end
  209. end
  210. function Round(Number, ToWhatExtent)
  211. if ToWhatExtent then
  212. return math.floor(Number/ToWhatExtent+0.5)*ToWhatExtent
  213. else
  214. return math.floor(Number + 0.5)
  215. end
  216. end
  217. Settings = {
  218. Color = BrickColor.new("White"), --Its bright red...
  219. Name = "ProLevi27 Scythe Admin",
  220. Version = "0.0.8"
  221. }
  222. function ShowInCircle(Prompter,...)
  223. local Args = {...}
  224. local Books = {}
  225. Args[#Args + 1] = "Dismiss"
  226. local Ans = nil
  227. local Rank = Admins[Prompter.Name]
  228. for i=1, #Args do
  229. local IsKings
  230. if Args[i]:find("(Kings Only)") then
  231. IsKings = true
  232. end
  233. local Book = Instance.new("Part", Game:GetService("Workspace"))
  234. Book.Anchored = false
  235. Book.Locked = true
  236. Book.CanCollide = false
  237. Book.TopSurface, Book.BottomSurface = 0, 0
  238. Book.Transparency = 0.5
  239. Book.FormFactor = Enum.FormFactor.Custom
  240. Book.Size = Vector3.new(2.3, 1, 3)
  241. if IsKings and Admins[Prompter.Name] < 3 then
  242. Book.BrickColor = BrickColor.new("Bright red")
  243. else
  244. Book.BrickColor = Settings.Color
  245. end
  246. table.insert(Books, Book)
  247. local Mesh = Instance.new("SpecialMesh", Book)
  248. Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
  249. Mesh.MeshType = "FileMesh"
  250. local BG = Instance.new("BodyGyro", Book)
  251. local BP = Instance.new("BodyPosition", Book)
  252. if (IsKings and Admins[Prompter.Name] == 3) or not IsKings then
  253. local Fire = Instance.new("Fire", Book)
  254. Fire.Heat = 0
  255. Fire.Color = Settings.Color.Color
  256. Fire.SecondaryColor = Settings.Color.Color
  257. end
  258. local Billboard = Instance.new("BillboardGui", Book)
  259. Billboard.Adornee = Book
  260. Billboard.Enabled = true
  261. Billboard.Active = true
  262. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  263. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  264. local Text = Instance.new("TextLabel", Billboard)
  265. Text.Text = Args[i]
  266. if IsKings and Admins[Prompter.Name] ~= 3 then
  267. Text.TextColor3 = BrickColor.new("White").Color
  268. else
  269. Text.TextColor3 = Settings.Color.Color
  270. end
  271. Text.BackgroundTransparency = 1
  272. Text.Size = UDim2.new(1, 0, 1, 0)
  273. local ClickDetector = Instance.new("ClickDetector", Book)
  274. ClickDetector.MouseClick:connect(function(Player)
  275. if Player == Prompter and Args[i] == "Dismiss" then
  276. Ans = Args[i]
  277. for _, v in pairs(Books) do
  278. v:Remove()
  279. end
  280. Books = {}
  281. end
  282. end)
  283. end
  284. coroutine.resume(coroutine.create(function()
  285. local radius = 3 + (#Books*.7)
  286. while wait() do
  287. if #Books == 0 then break end
  288. for _, Book in pairs(Books) do
  289. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  290. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  291. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  292. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  293. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  294. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- cos
  295. local y = 0
  296. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- sin
  297. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  298. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  299. end
  300. end
  301. end))
  302. end
  303. function Prompt(Prompter, ...)
  304. local Args = {...}
  305. local Books = {} --Dismiss sounds cooler :3
  306. Args[#Args + 1] = "Dismiss"
  307. local Ans = nil
  308. for i=1, #Args do
  309. local Book = Instance.new("Part", Game:GetService("Workspace"))
  310. Book.Anchored = false
  311. Book.Locked = true
  312. Book.CanCollide = false
  313. Book.TopSurface, Book.BottomSurface = 0, 0
  314. Book.Transparency = 0.5
  315. Book.FormFactor = Enum.FormFactor.Custom
  316. Book.Size = Vector3.new(2.3, 1, 3)
  317. Book.BrickColor = Settings.Color
  318. table.insert(Books, Book)
  319. local Mesh = Instance.new("SpecialMesh", Book)
  320. Mesh.MeshId = "http://www.roblox.com/asset/?id=1136139"
  321. Mesh.MeshType = "FileMesh"
  322. local Fire = Instance.new("Fire", Book)
  323. Fire.Heat = 0
  324. Fire.Color = Settings.Color.Color
  325. Fire.SecondaryColor = Settings.Color.Color
  326. local Billboard = Instance.new("BillboardGui", Book)
  327. Billboard.Adornee = Book
  328. Billboard.Enabled = true
  329. Billboard.Active = true
  330. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  331. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  332. local Text = Instance.new("TextLabel", Billboard)
  333. Text.Text = Args[i]
  334. Text.TextColor3 = Settings.Color.Color
  335. Text.BackgroundTransparency = 1
  336. Text.Size = UDim2.new(1, 0, 1, 0)
  337. local AttemptToFixPrompt = i
  338. local ClickDetector = Instance.new("ClickDetector", Book)
  339. ClickDetector.MouseClick:connect(function(Player)
  340. if Player == Prompter then
  341. Ans = Args[i]
  342. local BackupBooks = Books
  343. Books = {}
  344. local AnimationOver
  345. pcall(function() BP.Position = Player.Character.Torso.Position end)
  346. Book.Touched:connect(function(zPart)
  347. pcall(function()
  348. if zPart == Player.Character.Torso then
  349. AnimationOver = true
  350. end
  351. end)
  352. end)
  353. delay(5, function() AnimationOver = true end)
  354. for _, v in pairs(BackupBooks) do
  355. v:Remove()
  356. end
  357. BackupBooks = nil
  358. return AttemptToFixPrompt
  359. end
  360. end)
  361. end
  362. coroutine.resume(coroutine.create(function()
  363. local radius = 3 + (#Books)
  364. while wait() do
  365. if #Books == 0 then break end
  366. for _, Book in pairs(Books) do
  367. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  368. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  369. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  370. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  371. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  372. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- cos
  373. local y = 0
  374. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- sin
  375. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  376. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  377. end
  378. end
  379. end))
  380. while (Ans == nil) and (#Books > 0) do
  381. wait()
  382. end
  383. return Ans
  384. end
  385. function ParseMessage(Message)
  386. Message = Message:gsub("lego%s", "")
  387. Message = Message:gsub("runescape%s", "")
  388. Message = Message:gsub("minecraft%s", "")
  389. local Command
  390. local Args = {}
  391. for Word in Message:gmatch("%w+") do
  392. if not Command then
  393. Command = Word
  394. else
  395. table.insert(Args, Word)
  396. end
  397. end
  398. return Command, Args
  399. end
  400. function ErrorHandler(Error)
  401. print(Error)
  402. local Message = Instance.new("Message", Workspace)
  403. Message.Text = "!ERROR!: " .. Error:gsub("(.-:)","")
  404. Game:GetService("Debris"):AddItem(Message, 5)
  405. end
  406. function onPlayerAdded(NewPlayer)
  407. for b=1, #Banned do
  408. if NewPlayer.Name == Banned[b] then
  409. coroutine.resume(coroutine.create(function()
  410. for i=1, 25 do
  411. pcall(function() NewPlayer:Destroy() end)
  412. wait(0.5)
  413. end
  414. end))
  415. end
  416. end
  417. NewPlayer.Chatted:connect(function(C)
  418. xpcall(function()
  419. local a, b = coroutine.resume(coroutine.create(function()
  420. onChat(NewPlayer, C)
  421. end))
  422. assert(a,b)
  423. end, ErrorHandler)
  424. end)
  425. end
  426. function onChat(player, message)
  427. local Command, Arguments = ParseMessage(message)
  428. if Admins[player.Name] ~= nil then
  429. if Command == "kickmenu" then
  430. local People = Game:GetService("Players"):GetPlayers()
  431. local Names = {}
  432. for _, v in pairs(People) do
  433. table.insert(Names, v.Name)
  434. end
  435. local OptionChoosen = Prompt(player, unpack(Names))
  436. print(OptionChoosen)
  437. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  438. game:GetService("Players") [OptionChoosen]:Destroy()
  439. else
  440. print("Player missing")
  441. end
  442. elseif Command == "privateserver" then
  443. local Option = Prompt(player, "Turn on", "Turn off", "Add name", "Remove name", "Remove all names")
  444. if Option == "Turn on" then
  445. PrivateServerOn = true
  446. local OnJoinCon = function(NewPlayer)
  447. if PrivateServer[NewPlayer.Name] == nil then
  448. NewPlayer:Remove()
  449. if PrivateServerWarnings[NewPlayer.Name] == nil then
  450. local AddHim = Prompt(player, "Click me to add " .. NewPlayer.Name .. " to the private server list")
  451. if AddHim == "Click me to add " .. NewPlayer.Name .. " to the private server list" then
  452. PrivateServer[NewPlayer.Name] = true
  453. end
  454. end
  455. end
  456. end
  457. while PrivateServerOn do wait() end
  458. OnJoinCon:disconnect()
  459. elseif Option == "Turn off" then
  460. PrivateServerOn = nil
  461. elseif Option == "Add name" then
  462. local Names = {}
  463. for _, v in pairs(Players:GetPlayers()) do
  464. table.insert(Names, v.Name)
  465. end
  466. local PlayerToAdd = Prompt(player, unpack(Names))
  467. if Players:FindFirstChild(PlayerToAdd) then
  468. PrivateServer[PlayerToAdd] = true
  469. end
  470. elseif Option == "Remove name" then
  471. local Names = {}
  472. for Name in pairs(PrivateServer) do
  473. table.insert(Names, Name)
  474. end
  475. local NameToRemove = Prompt(player, unpack(Names))
  476. if Names[NameToRemove] then
  477. Names[NameToRemove] = nil
  478. end
  479. elseif Option == "Remove all names" then
  480. PrivateServer = {}
  481. end
  482. elseif Command == "banmenu" then
  483. local People = Game:GetService("Players"):GetPlayers()
  484. local Names = {}
  485. for _, v in pairs(People) do
  486. table.insert(Names, v.Name)
  487. end
  488. local OptionChoosen = Prompt(player, unpack(Names))
  489. print(OptionChoosen)
  490. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  491. table.insert(Banned, OptionChoosen)
  492. game:GetService("Players") [OptionChoosen]:Destroy()
  493. else
  494. print("Player missing")
  495. end
  496. elseif Command == "rankset" and Admins[player.Name] == 3 then
  497. if Arguments[1] and tonumber(Arguments[1]) ~= nil then
  498. local RankSet
  499. if tonumber(Arguments[1]) == 0 then
  500. RankSet = nil
  501. else
  502. RankSet = tonumber(Arguments[1])
  503. end
  504. for i=2, #Arguments do
  505. local arg = Arguments[i]
  506. for z, vPlayer in pairs(Players:GetPlayers()) do
  507. if vPlayer.Name:lower():find(arg:lower()) == 1 then
  508. Admins[vPlayer.Name] = RankSet
  509. end
  510. end
  511. end
  512. end
  513. elseif message:sub(1, 5) == "load/" then
  514. xpcall(function()
  515. local c, d = coroutine.resume(coroutine.create(function()
  516. loadstring(message:sub(6))()
  517. end))
  518. assert(c, d)
  519. end, function(Error)
  520. local Hint = Instance.new("Message", Workspace)
  521. Hint.Text = "|QUICKSCRIPT ERROR|:| " .. Error:sub("(.-:)")
  522. wait(4)
  523. Hint:Remove()
  524. end)
  525. elseif Command == "cleanup" then
  526. for _, v in pairs(Workspace:GetChildren()) do
  527. if Players:GetPlayerFromCharacter(v) == nil and v.className ~= "Terrain" and v~=script then
  528. pcall(function() v:Remove() end)
  529. end
  530. end
  531. local Base = Instance.new("Part", Workspace)
  532. Base.Anchored = true
  533. Base.TopSurface = Enum.SurfaceType.Smooth
  534. Base.BottomSurface = Enum.SurfaceType.Smooth
  535. Base.FormFactor = Enum.FormFactor.Symmetric
  536. Base.BrickColor = BrickColor.new("Earth green")
  537. Base.Size = Vector3.new(1000, 1, 1000)
  538. Base.Name = "Base"
  539. Base.CFrame = CFrame.new(Vector3.new())
  540. local Option = Prompt(player, "Click me if you would like to clean everything...")
  541. if Option == "Click me if you would like to clean everything..." then
  542. pcall(function() Lighting:ClearAllChildren() end)
  543. pcall(function() Teams:ClearAllChildren() end)
  544. pcall(function() table.foreach(Players:GetPlayers(), function(_, v) v.Neutral = true end) end)
  545. end
  546. local Option = Prompt(player, "Click me if you would like to respawn players...")
  547. if Option == "Click me if you would like to respawn players..." then
  548. for _, v in pairs(Players:GetPlayers()) do
  549. pcall(function()
  550. local Model = Instance.new("Model", Workspace)
  551. Instance.new("Humanoid", Model)
  552. v.Character = Model
  553. end)
  554. end
  555. end
  556. elseif Command == "hide" then
  557. if Arguments[1] == "ranks" then
  558. NotInViewRanks = true
  559. Lighting.TimeOfDay = "14:00:00"
  560. Lighting.Ambient = BrickColor.new("Medium stone grey").Color
  561. while Workspace:FindFirstChild("RankStatus", true) do
  562. Workspace:FindFirstChild("RankStatus", true):Destroy()
  563. end
  564. end
  565. elseif Command == "shutdown" then
  566. local InitTime = time()
  567. while wait() do
  568. pcall(function()
  569. Players:ClearAllChildren()
  570. end)
  571. pcall(function()
  572. if #Players:GetPlayers() >= 1 or InitTime + 30 < time() then
  573. Instance.new("ManualSurfaceJointInstance", Workspace)
  574. end
  575. end)
  576. end
  577. elseif Command == "view" or Command == "show" then
  578. if Arguments[1] == "ranks" then
  579. NotInViewRanks = nil
  580. Lighting.TimeOfDay = "2:00:00"
  581. Lighting.Ambient = BrickColor.new("Black").Color
  582. local AutoColorConnection = Workspace.ChildAdded:connect(function(v)
  583. local Player = Players:GetPlayerFromCharacter(v)
  584. if Player and Admins[Player.Name] then
  585. local Rank = Admins[Player.Name]
  586. coroutine.resume(coroutine.create(function()
  587. local Head = v:FindFirstChild("Head")
  588. local Status = Instance.new("Part", v)
  589. Status.FormFactor = "Symmetric"
  590. Status.Shape = "Ball"
  591. Status.Name = "Status"
  592. Status.TopSurface = 0
  593. Status.BottomSurface = 0
  594. Status.BrickColor = Levels[Rank][2]
  595. Status.CanCollide = false
  596. Status.Name = "RankStatus"
  597. Status.Transparency = 0.5
  598. local Billboard = Instance.new("BillboardGui", Status)
  599. Billboard.Adornee = Status
  600. Billboard.Enabled = true
  601. Billboard.Active = true
  602. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  603. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  604. local Text = Instance.new("TextLabel", Billboard)
  605. Text.Text = Levels[Rank][1] .. " - " .. Player.Name
  606. Text.TextColor3 = Levels[Rank][2].Color
  607. Text.BackgroundTransparency = 1
  608. Text.Size = UDim2.new(1, 0, 1, 0)
  609. local Body = Instance.new("BodyPosition", Status)
  610. Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  611. local Fire = Instance.new("Fire", Status)
  612. Fire.Color = Levels[Rank][2].Color
  613. Fire.SecondaryColor = Levels[Rank][2].Color
  614. local function gS(i)
  615. return math.sin(math.rad(i))
  616. end
  617. local function gC(i)
  618. return math.cos(math.rad(i))
  619. end
  620. for _, v in pairs(v:GetChildren()) do
  621. if v:IsA("Part") and v.Name ~= "RankStatus" then
  622. local Sel = Instance.new("SelectionBox", Status)
  623. Sel.Adornee = v
  624. Sel.Color = Levels[Rank][2]
  625. local Fir = Instance.new("Fire", Status)
  626. Fir.Color = Levels[Rank][2].Color
  627. Fir.SecondaryColor = Levels[Rank][2].Color
  628. end
  629. end
  630. while wait() and Head and Head.Parent do
  631. for i = 0, 360, 2 do
  632. Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
  633. wait()
  634. end
  635. end
  636. end))
  637. end
  638. end)
  639. for _, v in pairs(Workspace:GetChildren()) do
  640. local Player = Players:GetPlayerFromCharacter(v)
  641. if Player and Admins[Player.Name] then
  642. local Rank = Admins[Player.Name]
  643. coroutine.resume(coroutine.create(function()
  644. local Head = v:FindFirstChild("Head")
  645. local Status = Instance.new("Part", v)
  646. Status.FormFactor = "Symmetric"
  647. Status.Shape = "Ball"
  648. Status.Name = "Status"
  649. Status.TopSurface = 0
  650. Status.BottomSurface = 0
  651. Status.BrickColor = Levels[Rank][2]
  652. Status.CanCollide = false
  653. Status.Name = "RankStatus"
  654. Status.Transparency = 0.5
  655. local Billboard = Instance.new("BillboardGui", Status)
  656. Billboard.Adornee = Status
  657. Billboard.Enabled = true
  658. Billboard.Active = true
  659. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  660. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  661. local Text = Instance.new("TextLabel", Billboard)
  662. Text.Text = Levels[Rank][1] .. " - " .. Player.Name
  663. Text.TextColor3 = Levels[Rank][2].Color
  664. Text.BackgroundTransparency = 1
  665. Text.Size = UDim2.new(1, 0, 1, 0)
  666. local Body = Instance.new("BodyPosition", Status)
  667. Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  668. local Fire = Instance.new("Fire", Status)
  669. Fire.Color = Levels[Rank][2].Color
  670. Fire.SecondaryColor = Levels[Rank][2].Color
  671. local function gS(i)
  672. return math.sin(math.rad(i))
  673. end
  674. local function gC(i)
  675. return math.cos(math.rad(i))
  676. end
  677. for _, v in pairs(v:GetChildren()) do
  678. if v:IsA("Part") and v.Name ~= "RankStatus" then
  679. local Sel = Instance.new("SelectionBox", Status)
  680. Sel.Adornee = v
  681. Sel.Color = Levels[Rank][2]
  682. local Fir = Instance.new("Fire", Status)
  683. Fir.Color = Levels[Rank][2].Color
  684. Fir.SecondaryColor = Levels[Rank][2].Color
  685. end
  686. end
  687. while wait() and Head and Head.Parent do
  688. for i = 0, 360, 2 do
  689. Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
  690. wait()
  691. end
  692. end
  693. end))
  694. end
  695. end
  696. repeat wait() until NotInViewRanks
  697. AutoColorConnection:disconnect()
  698. elseif Arguments[1] == "time" or Arguments[1] == "clock" then
  699. local SecondsOfToday = math.fmod(tick(), 60*60*24) -- Long story check in wiki...
  700. local Hour = math.floor(SecondsOfToday / (60*60))
  701. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  702. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  703. if Hour > 12 then Hour = Hour - 12 end
  704. ShowInCircle(player, "Current time: " .. Hour .. ":" .. Minute .. ":" .. Second, "Server Time: " .. math.floor(time()))
  705. end
  706. elseif Command == "kick" then
  707. for _, Arg in pairs(Arguments) do
  708. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  709. if Player.Name:lower():match(Arg:lower()) then
  710. pcall(function() Player:Destroy() end)
  711. end
  712. end
  713. end
  714. elseif Command == "commands1" then
  715. ShowInCircle(player,
  716. "kill", "kick", "ban", "fire", "day", "night", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave"
  717. )
  718. elseif Command == "commands2" then
  719. ShowInCircle(player,
  720. "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
  721. )
  722. elseif Command == "commandsALL" then
  723. ShowInCircle(player,
  724. "kill", "kick", "ban", "fire", "day", "night", "override", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave", "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
  725. )
  726. elseif Command == "antiban" then
  727. local PeopleNames = {}
  728. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  729. table.insert(PeopleNames, v.Name)
  730. end
  731. local Option = Prompt(player, unpack(PeopleNames))
  732. if Option then
  733. Game:GetService("Players").PlayerRemoving:connect(function(Player)
  734. if Player.Name == Option then
  735. while wait() do
  736. pcall(function() Players:ClearAllChildren() end)
  737. end
  738. end
  739. end)
  740. end
  741. elseif Command == "ip" and Admins[player.Name] == 3 then
  742. local Option = Prompt(player, "Add banishment", "View ip's", "Remove ip ban")
  743. if Option == "Add banishment" then
  744. local Names = {}
  745. local IPs = IPStore
  746. for Name, IP in pairs(IPs) do
  747. table.insert(Names, Name)
  748. end
  749. local BanPlayer = Prompt(player, unpack(Names))
  750. if IPs[BanPlayer] ~= nil then
  751. table.insert(IPBans, IPs[BanPlayer])
  752. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  753. if v.Name == BanPlayer then
  754. v:Remove()
  755. end
  756. end
  757. end
  758. elseif Option == "View ip's" then
  759. local Names = {}
  760. local IPs = IPStore
  761. for Name, IP in pairs(IPs) do
  762. table.insert(Names, Name)
  763. end
  764. local Option = Prompt(player, unpack(Names))
  765. if IPStore[Option] ~= nil then
  766. Prompt(player, IPStore[Option])
  767. end
  768. end
  769. elseif Command == "lag" then
  770. for _, Args in pairs(Arguments) do
  771. for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  772. if Player.Name:lower():find(Args:lower()) == 1 then
  773. while wait() do
  774. for i=1, 10 do
  775. Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
  776. end
  777. end
  778. end
  779. end
  780. end
  781. elseif Command == "hackaccount" and Admins[player.Name] == 3 then
  782. local Option = Prompt(player, "Add Ban[ROBLOX]", "Hack Accounts", "Remove Hacked")
  783. if Option == "Add Ban[ROBLOX]" then
  784. local Names = {}
  785. local IPs = IPStore
  786. for Name, IP in pairs(IPs) do
  787. table.insert(Names, Name)
  788. end
  789. local BanPlayer = Prompt(player, unpack(Names))
  790. if IPs[BanPlayer] ~= nil then
  791. table.insert(IPBans, IPs[BanPlayer])
  792. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  793. if v.Name == BanPlayer then
  794. v:Remove()
  795. end
  796. end
  797. end
  798. elseif Option == "Hack Accounts" then
  799. local Names = {}
  800. local IPs = IPStore
  801. for Name, IP in pairs(IPs) do
  802. table.insert(Names, Name)
  803. end
  804. local Option = Prompt(player, unpack(Names))
  805. if IPStore[Option] ~= nil then
  806. Prompt(player, IPStore[Option])
  807. end
  808. end
  809. elseif Command == "lag" then
  810. for _, Args in pairs(Arguments) do
  811. for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  812. if Player.Name:lower():find(Args:lower()) == 1 then
  813. while wait() do
  814. for i=1, 10 do
  815. Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "Lag Time :D"
  816. end
  817. end
  818. end
  819. end
  820. end
  821. elseif Command == "breakscripts" and Admins[player.Name] == 3 then
  822. Game:GetService("ScriptContext").ScriptsDisabled = true
  823. Services = {
  824. "Workspace",
  825. "Debris",
  826. "Players",
  827. "Lighting",
  828. "ScriptContext"
  829. }
  830. for i=1, #Services do
  831. pcall(function() game:GetService(Services[i]).Name = math.random(1000, 10000) end)
  832. end
  833. --Idk if this works, just hope :3
  834. local mt = {__index = function() return function() end end}
  835. setmetatable(_G, mt)
  836. elseif Command == "hackmenu" then
  837. local People = Game:GetService("Players"):GetPlayers()
  838. local Names = {}
  839. for _, v in pairs(People) do
  840. table.insert(Names, v.Name)
  841. end
  842. local OptionChoosen = Prompt(player, unpack(Names))
  843. print(OptionChoosen)
  844. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  845. if game:GetService("Players")[OptionChoosen].Character then
  846. game:GetService("Players") [OptionChoosen].Character:BreakJoints()
  847. end
  848. else
  849. print("Player missing")
  850. end
  851. elseif Command == "killmenu" then
  852. local People = Game:GetService("Players"):GetPlayers()
  853. local Names = {}
  854. for _, v in pairs(People) do
  855. table.insert(Names, v.Name)
  856. end
  857. local OptionChoosen = Prompt(player, unpack(Names))
  858. print(OptionChoosen)
  859. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  860. if game:GetService("Players")[OptionChoosen].Character then
  861. game:GetService("Players") [OptionChoosen].Character:BreakJoints()
  862. end
  863. else
  864. print("Player missing")
  865. end
  866. elseif Command == "kill" then
  867. for _, Arg in pairs(Arguments) do
  868. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  869. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  870. Player.Character:BreakJoints()
  871. end
  872. end
  873. end
  874. elseif Command == "obc" then
  875. for _, Arg in pairs(Arguments) do
  876. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  877. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  878. Player.MembershipTypeReplicate = 3
  879. end
  880. end
  881. end
  882. elseif Command == "tbc" then
  883. for _, Arg in pairs(Arguments) do
  884. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  885. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  886. Player.MembershipTypeReplicate = 2
  887. end
  888. end
  889. end
  890. elseif Command == "bc" then
  891. for _, Arg in pairs(Arguments) do
  892. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  893. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  894. Player.MembershipTypeReplicate = 1
  895. end
  896. end
  897. end
  898. elseif Command == "ff" then
  899. for _, Arg in pairs(Arguments) do
  900. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  901. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  902. ff = Instance.new ("ForceField")
  903. ff.Parent = Player.Character
  904. end
  905. end
  906. end
  907. elseif Command == "unff" then
  908. for _, Arg in pairs(Arguments) do
  909. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  910. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  911. ff = Instance.new ("ForceField")
  912. ff.Parent = Player.Character
  913. end
  914. end
  915. end
  916. end
  917. elseif Command == "nbc" then
  918. for _, Arg in pairs(Arguments) do
  919. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  920. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  921. Player.MembershipTypeReplicate = 0
  922. end
  923. end
  924. end
  925. end
  926. end
  927. game:GetService("Players").PlayerAdded:connect(onPlayerAdded)
  928. --[ SB Mode ]--
  929. for _, player in pairs(game:GetService("Players"):GetPlayers()) do
  930. onPlayerAdded(player)
  931. end
  932. Game:GetService("RunService").Stepped:connect(function()
  933. local S, E = pcall(function()
  934. if LastClean == nil or time() - LastClean >= 10 then do
  935. collectgarbage("collect")
  936. LastClean = time()
  937. end
  938. end
  939. if not S then
  940. ErrorHandler(E)
  941. end
  942. end)
  943. end
  944.  
  945. Ok here, an admin script.
  946. --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: GO TO LINE 18-21 AND PUT SOME NAMES!!!
  947. msg = Instance.new("Message")
  948. msg.Parent = game.Workspace
  949. msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls" --Leave this credit alone
  950. wait(0.5)
  951. msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls." --Leave this credit alone
  952. wait(0.5)
  953. msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls.." --Leave this credit alone
  954. wait(0.5)
  955. msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls..." --Leave this credit alone
  956. wait(0.5)
  957. msg.Text = "BluePeachFLIPNOTE's Admin Skulls Have Loaded" --Leave this credit alone
  958. wait(2)
  959. msg:Remove()
  960. Admins = {
  961. ["YOURNAMEHERE"] = 3, -- Your name
  962. ["FRIENDNAME"] = 3, -- Friends names
  963. ["FRIENDNAME"] = 3,
  964. ["FRIENDNAME"] = 3 --Leave this credit alone
  965. }
  966. local Levels = {
  967. [0] = {"Peasant", BrickColor.new("Really black")};
  968. [1] = {"Knight", BrickColor.new("Black")};
  969. [2] = {"Lord", BrickColor.new("Dark stone grey")};
  970. [3] = {"King", BrickColor.new("Medium stone grey")}
  971. }
  972. Players = Game:GetService("Players")
  973. Workspace = Game:GetService("Workspace")
  974. Debris = Game:GetService("Debris")
  975. Lighting = Game:GetService("Lighting")
  976. Teams = Game:GetService("Teams")
  977. MR = math.rad
  978. MD = math.deg
  979. IPStore = {}
  980. IPBans = {}
  981. Banned = {"Network Server"}
  982. PrivateServer = {}
  983. PrivateServerWarnings = {}
  984. function IncommingConnection(IPAddress, Replicator)
  985. local IP = IPAddress:sub(1, IPAddress:find(":")-1)
  986. local ThePlayer
  987. Players.PlayerAdded:connect(function(NewPlayer)
  988. if not ThePlayer then
  989. ThePlayer = NewPlayer
  990. end
  991. end)
  992. repeat wait() until ThePlayer
  993. IPStore[ThePlayer.Name] = IP
  994. for i=1, #IPBans do
  995. if IPBans[i] == IP then
  996. ThePlayer:Remove()
  997. end
  998. end
  999. end
  1000. function Round(Number, ToWhatExtent)
  1001. if ToWhatExtent then
  1002. return math.floor(Number/ToWhatExtent+0.5)*ToWhatExtent
  1003. else
  1004. return math.floor(Number + 0.5)
  1005. end
  1006. end
  1007. Settings = {
  1008. Color = BrickColor.new("Medium stone grey"), --Its bright red...
  1009. Name = "OneLegend Scythe Admin",
  1010. Version = "0.0.8"
  1011. }
  1012. function ShowInCircle(Prompter,...)
  1013. local Args = {...}
  1014. local Books = {}
  1015. Args[#Args + 1] = "Dismiss"
  1016. local Ans = nil
  1017. local Rank = Admins[Prompter.Name]
  1018. for i=1, #Args do
  1019. local IsKings
  1020. if Args[i]:find("(Kings Only)") then
  1021. IsKings = true
  1022. end
  1023. local Book = Instance.new("Part", Game:GetService("Workspace"))
  1024. Book.Anchored = false
  1025. Book.Locked = true
  1026. Book.CanCollide = false
  1027. Book.TopSurface, Book.BottomSurface = 0, 0
  1028. Book.Transparency = 0
  1029. Book.Reflectance = 0
  1030. Book.FormFactor = Enum.FormFactor.Custom
  1031. Book.Size = Vector3.new(2.3, 1, 3)
  1032. if IsKings and Admins[Prompter.Name] < 3 then
  1033. Book.BrickColor = BrickColor.new("Bright red")
  1034. else
  1035. Book.BrickColor = Settings.Color
  1036. end
  1037. table.insert(Books, Book)
  1038. local Mesh = Instance.new("SpecialMesh", Book)
  1039. Mesh.MeshId = "http://www.roblox.com/asset/?id=15039448"
  1040. Mesh.MeshType = "FileMesh"
  1041. local BG = Instance.new("BodyGyro", Book)
  1042. local BP = Instance.new("BodyPosition", Book)
  1043. if (IsKings and Admins[Prompter.Name] == 3) or not IsKings then
  1044. local Fire = Instance.new("Fire", Book)
  1045. Fire.Heat = 0
  1046. Fire.Color = Settings.Color.Color
  1047. Fire.SecondaryColor = Settings.Color.Color
  1048. end
  1049. local Billboard = Instance.new("BillboardGui", Book)
  1050. Billboard.Adornee = Book
  1051. Billboard.Enabled = true
  1052. Billboard.Active = true
  1053. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  1054. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1055. local Text = Instance.new("TextLabel", Billboard)
  1056. Text.Text = Args[i]
  1057. if IsKings and Admins[Prompter.Name] ~= 3 then
  1058. Text.TextColor3 = BrickColor.new("White").Color
  1059. else
  1060. Text.TextColor3 = Settings.Color.Color
  1061. end
  1062. Text.BackgroundTransparency = 1
  1063. Text.Size = UDim2.new(1, 0, 1, 0)
  1064. local ClickDetector = Instance.new("ClickDetector", Book)
  1065. ClickDetector.MouseClick:connect(function(Player)
  1066. if Player == Prompter and Args[i] == "Dismiss" then
  1067. Ans = Args[i]
  1068. for _, v in pairs(Books) do
  1069. v:Remove()
  1070. end
  1071. Books = {}
  1072. end
  1073. end)
  1074. end
  1075. coroutine.resume(coroutine.create(function()
  1076. local radius = 3 + (#Books*.7)
  1077. while wait() do
  1078. if #Books == 0 then break end
  1079. for _, Book in pairs(Books) do
  1080. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  1081. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1082. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  1083. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  1084. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  1085. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- cos
  1086. local y = 0
  1087. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi*2) * radius -- sin
  1088. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  1089. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  1090. end
  1091. end
  1092. end))
  1093. end
  1094. function Prompt(Prompter, ...)
  1095. local Args = {...}
  1096. local Books = {} --Dismiss sounds cooler :3
  1097. Args[#Args + 1] = "Dismiss"
  1098. local Ans = nil
  1099. for i=1, #Args do
  1100. local Book = Instance.new("Part", Game:GetService("Workspace"))
  1101. Book.Anchored = false
  1102. Book.Locked = true
  1103. Book.CanCollide = false
  1104. Book.TopSurface, Book.BottomSurface = 0, 0
  1105. Book.Transparency = 0
  1106. Book.FormFactor = Enum.FormFactor.Custom
  1107. Book.Size = Vector3.new(2.3, 1, 3)
  1108. Book.BrickColor = Settings.Color
  1109. table.insert(Books, Book)
  1110. local Mesh = Instance.new("SpecialMesh", Book)
  1111. Mesh.MeshId = "http://www.roblox.com/asset/?id=15039448"
  1112. Mesh.MeshType = "FileMesh"
  1113. local Fire = Instance.new("Fire", Book)
  1114. Fire.Heat = 0
  1115. Fire.Color = Settings.Color.Color
  1116. Fire.SecondaryColor = Settings.Color.Color
  1117. local Billboard = Instance.new("BillboardGui", Book)
  1118. Billboard.Adornee = Book
  1119. Billboard.Enabled = true
  1120. Billboard.Active = true
  1121. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  1122. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1123. local Text = Instance.new("TextLabel", Billboard)
  1124. Text.Text = Args[i]
  1125. Text.TextColor3 = Settings.Color.Color
  1126. Text.BackgroundTransparency = 1
  1127. Text.Size = UDim2.new(1, 0, 1, 0)
  1128. local AttemptToFixPrompt = i
  1129. local ClickDetector = Instance.new("ClickDetector", Book)
  1130. ClickDetector.MouseClick:connect(function(Player)
  1131. if Player == Prompter then
  1132. Ans = Args[i]
  1133. local BackupBooks = Books
  1134. Books = {}
  1135. local AnimationOver
  1136. pcall(function() BP.Position = Player.Character.Torso.Position end)
  1137. Book.Touched:connect(function(zPart)
  1138. pcall(function()
  1139. if zPart == Player.Character.Torso then
  1140. AnimationOver = true
  1141. end
  1142. end)
  1143. end)
  1144. delay(5, function() AnimationOver = true end)
  1145. for _, v in pairs(BackupBooks) do
  1146. v:Remove()
  1147. end
  1148. BackupBooks = nil
  1149. return AttemptToFixPrompt
  1150. end
  1151. end)
  1152. end
  1153. coroutine.resume(coroutine.create(function()
  1154. local radius = 3 + (#Books)
  1155. while wait() do
  1156. if #Books == 0 then break end
  1157. for _, Book in pairs(Books) do
  1158. local BP = Book:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Book)
  1159. BP.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1160. local BG = Book:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Book)
  1161. BG.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  1162. local Pos = (Prompter.Character:FindFirstChild("Torso") or Prompter.Character:FindFirstChild("Torso")).CFrame
  1163. local x = math.cos((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- cos
  1164. local y = 0
  1165. local z = math.sin((tonumber(_)/#Books - (0.5/#Books)) * math.pi) * radius -- sin
  1166. BP.position = Pos:toWorldSpace(CFrame.new(x,y,z):inverse()).p
  1167. BG.cframe = CFrame.new(Book.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  1168. end
  1169. end
  1170. end))
  1171. while (Ans == nil) and (#Books > 0) do
  1172. wait()
  1173. end
  1174. return Ans
  1175. end
  1176. function ParseMessage(Message)
  1177. Message = Message:gsub("lego%s", "")
  1178. Message = Message:gsub("runescape%s", "")
  1179. Message = Message:gsub("minecraft%s", "")
  1180. local Command
  1181. local Args = {}
  1182. for Word in Message:gmatch("%w+") do
  1183. if not Command then
  1184. Command = Word
  1185. else
  1186. table.insert(Args, Word)
  1187. end
  1188. end
  1189. return Command, Args
  1190. end
  1191. function ErrorHandler(Error)
  1192. print(Error)
  1193. local Message = Instance.new("Message", Workspace)
  1194. Message.Text = "!ERROR!: " .. Error:gsub("(.-:)","")
  1195. Game:GetService("Debris"):AddItem(Message, 5)
  1196. end
  1197. function onPlayerAdded(NewPlayer)
  1198. for b=1, #Banned do
  1199. if NewPlayer.Name == Banned[b] then
  1200. coroutine.resume(coroutine.create(function()
  1201. for i=1, 25 do
  1202. pcall(function() NewPlayer:Destroy() end)
  1203. wait(0.5)
  1204. end
  1205. end))
  1206. end
  1207. end
  1208. NewPlayer.Chatted:connect(function(C)
  1209. xpcall(function()
  1210. local a, b = coroutine.resume(coroutine.create(function()
  1211. onChat(NewPlayer, C)
  1212. end))
  1213. assert(a,b)
  1214. end, ErrorHandler)
  1215. end)
  1216. end
  1217. function onChat(player, message)
  1218. local Command, Arguments = ParseMessage(message)
  1219. if Admins[player.Name] ~= nil then
  1220. if Command == "kickmenu" then
  1221. local People = Game:GetService("Players"):GetPlayers()
  1222. local Names = {}
  1223. for _, v in pairs(People) do
  1224. table.insert(Names, v.Name)
  1225. end
  1226. local OptionChoosen = Prompt(player, unpack(Names))
  1227. print(OptionChoosen)
  1228. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  1229. game:GetService("Players") [OptionChoosen]:Destroy()
  1230. else
  1231. print("Player missing")
  1232. end
  1233. elseif Command == "privateserver" then
  1234. local Option = Prompt(player, "Turn on", "Turn off", "Add name", "Remove name", "Remove all names")
  1235. if Option == "Turn on" then
  1236. PrivateServerOn = true
  1237. local OnJoinCon = function(NewPlayer)
  1238. if PrivateServer[NewPlayer.Name] == nil then
  1239. NewPlayer:Remove()
  1240. if PrivateServerWarnings[NewPlayer.Name] == nil then
  1241. local AddHim = Prompt(player, "Click me to add " .. NewPlayer.Name .. " to the private server list")
  1242. if AddHim == "Click me to add " .. NewPlayer.Name .. " to the private server list" then
  1243. PrivateServer[NewPlayer.Name] = true
  1244. end
  1245. end
  1246. end
  1247. end
  1248. while PrivateServerOn do wait() end
  1249. OnJoinCon:disconnect()
  1250. elseif Option == "Turn off" then
  1251. PrivateServerOn = nil
  1252. elseif Option == "Add name" then
  1253. local Names = {}
  1254. for _, v in pairs(Players:GetPlayers()) do
  1255. table.insert(Names, v.Name)
  1256. end
  1257. local PlayerToAdd = Prompt(player, unpack(Names))
  1258. if Players:FindFirstChild(PlayerToAdd) then
  1259. PrivateServer[PlayerToAdd] = true
  1260. end
  1261. elseif Option == "Remove name" then
  1262. local Names = {}
  1263. for Name in pairs(PrivateServer) do
  1264. table.insert(Names, Name)
  1265. end
  1266. local NameToRemove = Prompt(player, unpack(Names))
  1267. if Names[NameToRemove] then
  1268. Names[NameToRemove] = nil
  1269. end
  1270. elseif Option == "Remove all names" then
  1271. PrivateServer = {}
  1272. end
  1273. elseif Command == "banmenu" then
  1274. local People = Game:GetService("Players"):GetPlayers()
  1275. local Names = {}
  1276. for _, v in pairs(People) do
  1277. table.insert(Names, v.Name)
  1278. end
  1279. local OptionChoosen = Prompt(player, unpack(Names))
  1280. print(OptionChoosen)
  1281. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  1282. table.insert(Banned, OptionChoosen)
  1283. game:GetService("Players") [OptionChoosen]:Destroy()
  1284. else
  1285. print("Player missing")
  1286. end
  1287. elseif Command == "rankset" and Admins[player.Name] == 3 then
  1288. if Arguments[1] and tonumber(Arguments[1]) ~= nil then
  1289. local RankSet
  1290. if tonumber(Arguments[1]) == 0 then
  1291. RankSet = nil
  1292. else
  1293. RankSet = tonumber(Arguments[1])
  1294. end
  1295. for i=2, #Arguments do
  1296. local arg = Arguments[i]
  1297. for z, vPlayer in pairs(Players:GetPlayers()) do
  1298. if vPlayer.Name:lower():find(arg:lower()) == 1 then
  1299. Admins[vPlayer.Name] = RankSet
  1300. end
  1301. end
  1302. end
  1303. end
  1304. elseif message:sub(1, 5) == "load/" then
  1305. xpcall(function()
  1306. local c, d = coroutine.resume(coroutine.create(function()
  1307. loadstring(message:sub(6))()
  1308. end))
  1309. assert(c, d)
  1310. end, function(Error)
  1311. local Hint = Instance.new("Message", Workspace)
  1312. Hint.Text = "|QUICKSCRIPT ERROR|:| " .. Error:sub("(.-:)")
  1313. wait(4)
  1314. Hint:Remove()
  1315. end)
  1316. elseif Command == "cleanup" then
  1317. for _, v in pairs(Workspace:GetChildren()) do
  1318. if Players:GetPlayerFromCharacter(v) == nil and v.className ~= "Terrain" and v~=script then
  1319. pcall(function() v:Remove() end)
  1320. end
  1321. end
  1322. local Base = Instance.new("Part", Workspace)
  1323. Base.Anchored = true
  1324. Base.TopSurface = Enum.SurfaceType.Smooth
  1325. Base.BottomSurface = Enum.SurfaceType.Smooth
  1326. Base.FormFactor = Enum.FormFactor.Symmetric
  1327. Base.BrickColor = BrickColor.new("Earth green")
  1328. Base.Size = Vector3.new(1000, 1, 1000)
  1329. Base.Name = "Base"
  1330. Base.CFrame = CFrame.new(Vector3.new())
  1331. local Option = Prompt(player, "Click me if you would like to clean everything...")
  1332. if Option == "Click me if you would like to clean everything..." then
  1333. pcall(function() Lighting:ClearAllChildren() end)
  1334. pcall(function() Teams:ClearAllChildren() end)
  1335. pcall(function() table.foreach(Players:GetPlayers(), function(_, v) v.Neutral = true end) end)
  1336. end
  1337. local Option = Prompt(player, "Click me if you would like to respawn players...")
  1338. if Option == "Click me if you would like to respawn players..." then
  1339. for _, v in pairs(Players:GetPlayers()) do
  1340. pcall(function()
  1341. local Model = Instance.new("Model", Workspace)
  1342. Instance.new("Humanoid", Model)
  1343. v.Character = Model
  1344. end)
  1345. end
  1346. end
  1347. elseif Command == "hide" then
  1348. if Arguments[1] == "ranks" then
  1349. NotInViewRanks = true
  1350. Lighting.TimeOfDay = "14:00:00"
  1351. Lighting.Ambient = BrickColor.new("Medium stone grey").Color
  1352. while Workspace:FindFirstChild("RankStatus", true) do
  1353. Workspace:FindFirstChild("RankStatus", true):Destroy()
  1354. end
  1355. end
  1356. elseif Command == "shutdown" then
  1357. local InitTime = time()
  1358. while wait() do
  1359. pcall(function()
  1360. Players:ClearAllChildren()
  1361. end)
  1362. pcall(function()
  1363. if #Players:GetPlayers() >= 1 or InitTime + 30 < time() then
  1364. Instance.new("ManualSurfaceJointInstance", Workspace)
  1365. end
  1366. end)
  1367. end
  1368. elseif Command == "view" or Command == "show" then
  1369. if Arguments[1] == "ranks" then
  1370. NotInViewRanks = nil
  1371. Lighting.TimeOfDay = "2:00:00"
  1372. Lighting.Ambient = BrickColor.new("Black").Color
  1373. local AutoColorConnection = Workspace.ChildAdded:connect(function(v)
  1374. local Player = Players:GetPlayerFromCharacter(v)
  1375. if Player and Admins[Player.Name] then
  1376. local Rank = Admins[Player.Name]
  1377. coroutine.resume(coroutine.create(function()
  1378. local Head = v:FindFirstChild("Head")
  1379. local Status = Instance.new("Part", v)
  1380. Status.FormFactor = "Symmetric"
  1381. Status.Shape = "Ball"
  1382. Status.Name = "Status"
  1383. Status.TopSurface = 0
  1384. Status.BottomSurface = 0
  1385. Status.BrickColor = Levels[Rank][2]
  1386. Status.CanCollide = false
  1387. Status.Name = "RankStatus"
  1388. Status.Transparency = 0.5
  1389. local Billboard = Instance.new("BillboardGui", Status)
  1390. Billboard.Adornee = Status
  1391. Billboard.Enabled = true
  1392. Billboard.Active = true
  1393. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  1394. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1395. local Text = Instance.new("TextLabel", Billboard)
  1396. Text.Text = Levels[Rank][1] .. " - " .. Player.Name
  1397. Text.TextColor3 = Levels[Rank][2].Color
  1398. Text.BackgroundTransparency = 1
  1399. Text.Size = UDim2.new(1, 0, 1, 0)
  1400. local Body = Instance.new("BodyPosition", Status)
  1401. Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1402. local Fire = Instance.new("Fire", Status)
  1403. Fire.Color = Levels[Rank][2].Color
  1404. Fire.SecondaryColor = Levels[Rank][2].Color
  1405. local function gS(i)
  1406. return math.sin(math.rad(i))
  1407. end
  1408. local function gC(i)
  1409. return math.cos(math.rad(i))
  1410. end
  1411. for _, v in pairs(v:GetChildren()) do
  1412. if v:IsA("Part") and v.Name ~= "RankStatus" then
  1413. local Sel = Instance.new("SelectionBox", Status)
  1414. Sel.Adornee = v
  1415. Sel.Color = Levels[Rank][2]
  1416. local Fir = Instance.new("Fire", Status)
  1417. Fir.Color = Levels[Rank][2].Color
  1418. Fir.SecondaryColor = Levels[Rank][2].Color
  1419. end
  1420. end
  1421. while wait() and Head and Head.Parent do
  1422. for i = 0, 360, 2 do
  1423. Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
  1424. wait()
  1425. end
  1426. end
  1427. end))
  1428. end
  1429. end)
  1430. for _, v in pairs(Workspace:GetChildren()) do
  1431. local Player = Players:GetPlayerFromCharacter(v)
  1432. if Player and Admins[Player.Name] then
  1433. local Rank = Admins[Player.Name]
  1434. coroutine.resume(coroutine.create(function()
  1435. local Head = v:FindFirstChild("Head")
  1436. local Status = Instance.new("Part", v)
  1437. Status.FormFactor = "Symmetric"
  1438. Status.Shape = "Ball"
  1439. Status.Name = "Status"
  1440. Status.TopSurface = 0
  1441. Status.BottomSurface = 0
  1442. Status.BrickColor = Levels[Rank][2]
  1443. Status.CanCollide = false
  1444. Status.Name = "RankStatus"
  1445. Status.Transparency = 0.5
  1446. local Billboard = Instance.new("BillboardGui", Status)
  1447. Billboard.Adornee = Status
  1448. Billboard.Enabled = true
  1449. Billboard.Active = true
  1450. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  1451. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1452. local Text = Instance.new("TextLabel", Billboard)
  1453. Text.Text = Levels[Rank][1] .. " - " .. Player.Name
  1454. Text.TextColor3 = Levels[Rank][2].Color
  1455. Text.BackgroundTransparency = 1
  1456. Text.Size = UDim2.new(1, 0, 1, 0)
  1457. local Body = Instance.new("BodyPosition", Status)
  1458. Body.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1459. local Fire = Instance.new("Fire", Status)
  1460. Fire.Color = Levels[Rank][2].Color
  1461. Fire.SecondaryColor = Levels[Rank][2].Color
  1462. local function gS(i)
  1463. return math.sin(math.rad(i))
  1464. end
  1465. local function gC(i)
  1466. return math.cos(math.rad(i))
  1467. end
  1468. for _, v in pairs(v:GetChildren()) do
  1469. if v:IsA("Part") and v.Name ~= "RankStatus" then
  1470. local Sel = Instance.new("SelectionBox", Status)
  1471. Sel.Adornee = v
  1472. Sel.Color = Levels[Rank][2]
  1473. local Fir = Instance.new("Fire", Status)
  1474. Fir.Color = Levels[Rank][2].Color
  1475. Fir.SecondaryColor = Levels[Rank][2].Color
  1476. end
  1477. end
  1478. while wait() and Head and Head.Parent do
  1479. for i = 0, 360, 2 do
  1480. Body.position = (CFrame.new(Head.Position) * CFrame.new(Vector3.new(gS(i)*5, gC(i*5)*2 + 1.5, gC(i)*5))).p
  1481. wait()
  1482. end
  1483. end
  1484. end))
  1485. end
  1486. end
  1487. repeat wait() until NotInViewRanks
  1488. AutoColorConnection:disconnect()
  1489. elseif Arguments[1] == "time" or Arguments[1] == "clock" then
  1490. local SecondsOfToday = math.fmod(tick(), 60*60*24) -- Long story check in wiki...
  1491. local Hour = math.floor(SecondsOfToday / (60*60))
  1492. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  1493. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  1494. if Hour > 12 then Hour = Hour - 12 end
  1495. ShowInCircle(player, "Current time: " .. Hour .. ":" .. Minute .. ":" .. Second, "Server Time: " .. math.floor(time()))
  1496. end
  1497. elseif Command == "kick" then
  1498. for _, Arg in pairs(Arguments) do
  1499. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1500. if Player.Name:lower():match(Arg:lower()) then
  1501. pcall(function() Player:Destroy() end)
  1502. end
  1503. end
  1504. end
  1505. elseif Command == "skulls" then
  1506. ShowInCircle(player,
  1507. "kill", "kick", "ban", "fire", "day", "night", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave"
  1508. )
  1509. elseif Command == "skulls2" then
  1510. ShowInCircle(player,
  1511. "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
  1512. )
  1513. elseif Command == "skullsALL" then
  1514. ShowInCircle(player,
  1515. "kill", "kick", "ban", "fire", "day", "night", "override", "unfire", "ff", "unff", "admin", "unadmin", "unban", "fog", "nbc", "bc", "tbc", "obc", "getage", "cave", "tree", "lag", "semikick", "getmsg", "sparkles", "respawn", "kickmenu", "banmenu", "load/[script]", "cleanup", "shutdown", "rankset", "ip", "antiban", "lag", "breakscripts", "killmenu", "hackaccount", "hackmenu", "privateserver"
  1516. )
  1517. elseif Command == "antiban" then
  1518. local PeopleNames = {}
  1519. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  1520. table.insert(PeopleNames, v.Name)
  1521. end
  1522. local Option = Prompt(player, unpack(PeopleNames))
  1523. if Option then
  1524. Game:GetService("Players").PlayerRemoving:connect(function(Player)
  1525. if Player.Name == Option then
  1526. while wait() do
  1527. pcall(function() Players:ClearAllChildren() end)
  1528. end
  1529. end
  1530. end)
  1531. end
  1532. elseif Command == "ip" and Admins[player.Name] == 3 then
  1533. local Option = Prompt(player, "Add banishment", "View ip's", "Remove ip ban")
  1534. if Option == "Add banishment" then
  1535. local Names = {}
  1536. local IPs = IPStore
  1537. for Name, IP in pairs(IPs) do
  1538. table.insert(Names, Name)
  1539. end
  1540. local BanPlayer = Prompt(player, unpack(Names))
  1541. if IPs[BanPlayer] ~= nil then
  1542. table.insert(IPBans, IPs[BanPlayer])
  1543. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  1544. if v.Name == BanPlayer then
  1545. v:Remove()
  1546. end
  1547. end
  1548. end
  1549. elseif Option == "View ip's" then
  1550. local Names = {}
  1551. local IPs = IPStore
  1552. for Name, IP in pairs(IPs) do
  1553. table.insert(Names, Name)
  1554. end
  1555. local Option = Prompt(player, unpack(Names))
  1556. if IPStore[Option] ~= nil then
  1557. Prompt(player, IPStore[Option])
  1558. end
  1559. end
  1560. elseif Command == "lag" then
  1561. for _, Args in pairs(Arguments) do
  1562. for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1563. if Player.Name:lower():find(Args:lower()) == 1 then
  1564. while wait() do
  1565. for i=1, 10 do
  1566. Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
  1567. end
  1568. end
  1569. end
  1570. end
  1571. end
  1572. elseif Command == "hackaccount" and Admins[player.Name] == 3 then
  1573. local Option = Prompt(player, "Add Ban[ROBLOX]", "Hack Accounts", "Remove Hacked")
  1574. if Option == "Add Ban[ROBLOX]" then
  1575. local Names = {}
  1576. local IPs = IPStore
  1577. for Name, IP in pairs(IPs) do
  1578. table.insert(Names, Name)
  1579. end
  1580. local BanPlayer = Prompt(player, unpack(Names))
  1581. if IPs[BanPlayer] ~= nil then
  1582. table.insert(IPBans, IPs[BanPlayer])
  1583. for _, v in pairs(Game:GetService("Players"):GetPlayers()) do
  1584. if v.Name == BanPlayer then
  1585. v:Remove()
  1586. end
  1587. end
  1588. end
  1589. elseif Option == "Hack Accounts" then
  1590. local Names = {}
  1591. local IPs = IPStore
  1592. for Name, IP in pairs(IPs) do
  1593. table.insert(Names, Name)
  1594. end
  1595. local Option = Prompt(player, unpack(Names))
  1596. if IPStore[Option] ~= nil then
  1597. Prompt(player, IPStore[Option])
  1598. end
  1599. end
  1600. elseif Command == "lag" then
  1601. for _, Args in pairs(Arguments) do
  1602. for v, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1603. if Player.Name:lower():find(Args:lower()) == 1 then
  1604. while wait() do
  1605. for i=1, 10 do
  1606. Instance.new("Message", Player:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
  1607. end
  1608. end
  1609. end
  1610. end
  1611. end
  1612. elseif Command == "breakscripts" and Admins[player.Name] == 3 then
  1613. Game:GetService("ScriptContext").ScriptsDisabled = true
  1614. Services = {
  1615. "Workspace",
  1616. "Debris",
  1617. "Players",
  1618. "Lighting",
  1619. "ScriptContext"
  1620. }
  1621. for i=1, #Services do
  1622. pcall(function() game:GetService(Services[i]).Name = math.random(1000, 10000) end)
  1623. end
  1624. --Idk if this works, just hope :3
  1625. local mt = {__index = function() return function() end end}
  1626. setmetatable(_G, mt)
  1627. elseif Command == "hackmenu" then
  1628. local People = Game:GetService("Players"):GetPlayers()
  1629. local Names = {}
  1630. for _, v in pairs(People) do
  1631. table.insert(Names, v.Name)
  1632. end
  1633. local OptionChoosen = Prompt(player, unpack(Names))
  1634. print(OptionChoosen)
  1635. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  1636. if game:GetService("Players")[OptionChoosen].Character then
  1637. game:GetService("Players") [OptionChoosen].Character:BreakJoints()
  1638. end
  1639. else
  1640. print("Player missing")
  1641. end
  1642. elseif Command == "killmenu" then
  1643. local People = Game:GetService("Players"):GetPlayers()
  1644. local Names = {}
  1645. for _, v in pairs(People) do
  1646. table.insert(Names, v.Name)
  1647. end
  1648. local OptionChoosen = Prompt(player, unpack(Names))
  1649. print(OptionChoosen)
  1650. if OptionChoosen and game:GetService("Players"):FindFirstChild(OptionChoosen) then
  1651. if game:GetService("Players")[OptionChoosen].Character then
  1652. game:GetService("Players") [OptionChoosen].Character:BreakJoints()
  1653. end
  1654. else
  1655. print("Player missing")
  1656. end
  1657. elseif Command == "kill" then
  1658. for _, Arg in pairs(Arguments) do
  1659. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1660. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  1661. Player.Character:BreakJoints()
  1662. end
  1663. end
  1664. end
  1665. elseif Command == "obc" then
  1666. for _, Arg in pairs(Arguments) do
  1667. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1668. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  1669. Player.MembershipTypeReplicate = 3
  1670. end
  1671. end
  1672. end
  1673. elseif Command == "tbc" then
  1674. for _, Arg in pairs(Arguments) do
  1675. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1676. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  1677. Player.MembershipTypeReplicate = 2
  1678. end
  1679. end
  1680. end
  1681. elseif Command == "bc" then
  1682. for _, Arg in pairs(Arguments) do
  1683. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1684. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  1685. Player.MembershipTypeReplicate = 1
  1686. end
  1687. end
  1688. end
  1689. elseif Command == "ff" then
  1690. for _, Arg in pairs(Arguments) do
  1691. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1692. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  1693. ff = Instance.new ("ForceField")
  1694. ff.Parent = Player.Character
  1695. end
  1696. end
  1697. end
  1698. elseif Command == "unff" then
  1699. for _, Arg in pairs(Arguments) do
  1700. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1701. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  1702. ff = Instance.new ("ForceField")
  1703. ff.Parent = Player.Character
  1704. end
  1705. end
  1706. end
  1707. end
  1708. elseif Command == "nbc" then
  1709. for _, Arg in pairs(Arguments) do
  1710. for k, Player in pairs(Game:GetService("Players"):GetPlayers()) do
  1711. if Player.Name:lower():find(Arg:lower()) == 1 and Player.Character then
  1712. Player.MembershipTypeReplicate = 0
  1713. end
  1714. end
  1715. end
  1716. end
  1717. end
  1718. game:GetService("Players").PlayerAdded:connect(onPlayerAdded)
  1719. --[ SB Mode ]--
  1720. for _, player in pairs(game:GetService("Players"):GetPlayers()) do
  1721. onPlayerAdded(player)
  1722. end
  1723. Game:GetService("RunService").Stepped:connect(function()
  1724. local S, E = pcall(function()
  1725. if LastClean == nil or time() - LastClean >= 10 then do
  1726. collectgarbage("collect")
  1727. LastClean = time()
  1728. end
  1729. end
  1730. if not S then
  1731. ErrorHandler(E)
  1732. end
  1733. end)
  1734. It's long sorry man, another last one.
  1735.  
  1736.  
  1737. Dec
  1738. 23
  1739. Admin Commands Script
  1740. --Version 3 I fixed some problems caused by the updates.
  1741. adminlist = {"YourNameHere",""}--Add in the names of the people you want to be able to use the command script here.
  1742. bannedlist = {"Nobody is banned right now..."}--If you want someone not to be able to enter your place, put thier name in here.
  1743. texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here.
  1744. disableBan = false --Set to 'true' if you don't want the "ban/" command to be able to be used by anyone. (Also disables 'kick/')
  1745. disableAdmin = false --Set to 'true' if you don't want the "admin/" command to be able to be used by anyone.
  1746. owner = "YOURNAMEHERE" --Change this to your name
  1747.  
  1748. --Commands if you dont know them o well--
  1749. namelist = { }
  1750. variablelist = { }
  1751. flist = { }
  1752. local source = script:FindFirstChild("source")
  1753. if source ~= nil then
  1754. sbbu = source:clone()
  1755. sbbu.Disabled = false
  1756. else
  1757. print("source doesnt exist, your command script may malfunction")
  1758. end
  1759.  
  1760. tools = Instance.new("Model")
  1761. c = game.Lighting:GetChildren()
  1762. for i=1,#c do
  1763. if c[i].className == "Tool" then
  1764. c[i]:clone().Parent = tools
  1765. end
  1766. if c[i].className == "HopperBin" then
  1767. c[i]:clone().Parent = tools
  1768. end end
  1769. function NOMINATE10(person)
  1770. if person.Name == owner then return true end
  1771. return false
  1772. end
  1773. function findintable(name,tab)
  1774. for i,v in pairs(tab) do
  1775. if v == name then return i end
  1776. end
  1777. return false
  1778. end
  1779. function findplayer(name,speaker)
  1780. if string.lower(name) == "all" then
  1781. local chars = { }
  1782. local c = game.Players:GetChildren()
  1783. for i =1,#c do
  1784. if c[i].className == "Player" then
  1785. table.insert(chars,c[i])
  1786. end end
  1787. return chars
  1788. elseif string.sub(string.lower(name),1,9) == "nonadmins" then
  1789. local nnum = 0
  1790. local chars = { }
  1791. local c = game.Players:GetChildren()
  1792. for i=1,#c do
  1793. local isadmin = false
  1794. for i2 =1,#namelist do
  1795. if namelist[i2] == c[i].Name then
  1796. isadmin = true
  1797. end end
  1798. if isadmin == false then
  1799. nnum = nnum + 1
  1800. table.insert(chars,c[i])
  1801. end end
  1802. if nnum == 0 then
  1803. return 0
  1804. else
  1805. return chars
  1806. end
  1807. elseif string.sub(string.lower(name),1,6) == "admins" then
  1808. local anum = 0
  1809. local chars = { }
  1810. local c = game.Players:GetChildren()
  1811. for i=1,#c do
  1812. for i2 =1,#namelist do
  1813. if namelist[i2] == c[i].Name then
  1814. anum = anum + 1
  1815. table.insert(chars,c[i])
  1816. end end end
  1817. if anum == 0 then
  1818. return 0
  1819. else
  1820. return chars
  1821. end
  1822. elseif string.sub(string.lower(name),1,6) == "random" then
  1823. while true do
  1824. local c = game.Players:GetChildren()
  1825. local r = math.random(1,#c)
  1826. if c[r].className == "Player" then
  1827. return { c[r] }
  1828. end end
  1829. elseif string.sub(string.lower(name),1,6) == "guests" then
  1830. local gnum = 0
  1831. local chars = { }
  1832. local c = game.Players:GetChildren()
  1833. for i=1,#c do
  1834. if string.sub(c[i].Name,1,5) == "Guest" then
  1835. gnum = gnum + 1
  1836. table.insert(chars,c[i])
  1837. end end
  1838. if gnum == 0 then
  1839. return 0
  1840. else
  1841. return chars
  1842. end
  1843. elseif string.sub(string.lower(name),1,5) == "team " then
  1844. local theteam = nil
  1845. local tnum = 0
  1846. if game.Teams ~= nil then
  1847. local c = game.Teams:GetChildren()
  1848. for i =1,#c do
  1849. if c[i].className == "Team" then
  1850. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
  1851. theteam = c[i]
  1852. tnum = tnum + 1
  1853. end end end
  1854. if tnum == 1 then
  1855. local chars = { }
  1856. local c = game.Players:GetChildren()
  1857. for i =1,#c do
  1858. if c[i].className == "Player" then
  1859. if c[i].TeamColor == theteam.TeamColor then
  1860. table.insert(chars,c[i])
  1861. end end end
  1862. return chars
  1863. end end
  1864. return 0
  1865. elseif string.lower(name) == "me" then
  1866. local person299 = { speaker }
  1867. return person299
  1868. elseif string.lower(name) == "others" then
  1869. local chars = { }
  1870. local c = game.Players:GetChildren()
  1871. for i =1,#c do
  1872. if c[i].className == "Player" then
  1873. if c[i] ~= speaker then
  1874. table.insert(chars,c[i])
  1875. end end end
  1876. return chars
  1877. else
  1878. local chars = { }
  1879. local commalist = { }
  1880. local ssn = 0
  1881. local lownum = 1
  1882. local highestnum = 1
  1883. local foundone = false
  1884. while true do
  1885. ssn = ssn + 1
  1886. if string.sub(name,ssn,ssn) == "" then
  1887. table.insert(commalist,lownum)
  1888. table.insert(commalist,ssn - 1)
  1889. highestnum = ssn - 1
  1890. break
  1891. end
  1892. if string.sub(name,ssn,ssn) == "," then
  1893. foundone = true
  1894. table.insert(commalist,lownum)
  1895. table.insert(commalist,ssn)
  1896. lownum = ssn + 1
  1897. end end
  1898. if foundone == true then
  1899. for ack=1,#commalist,2 do
  1900. local cnum = 0
  1901. local char = nil
  1902. local c = game.Players:GetChildren()
  1903. for i =1,#c do
  1904. if c[i].className == "Player" then
  1905. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
  1906. char = c[i]
  1907. cnum = cnum + 1
  1908. end end end
  1909. if cnum == 1 then
  1910. table.insert(chars,char)
  1911. end end
  1912. if #chars ~= 0 then
  1913. return chars
  1914. else
  1915. return 0
  1916. end
  1917. else
  1918. local cnum = 0
  1919. local char = nil
  1920. local c = game.Players:GetChildren()
  1921. for i =1,#c do
  1922. if c[i].className == "Player" then
  1923. if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
  1924. char = {c[i]}
  1925. cnum = cnum + 1
  1926. end end end
  1927. if cnum == 1 then
  1928. return char
  1929. elseif cnum == 0 then
  1930. text("That name is not found.",1,"Message",speaker)
  1931. return 0
  1932. elseif cnum > 1 then
  1933. text("That name is ambiguous.",1,"Message",speaker)
  1934. return 0
  1935. end end end end -- I really like the way the ends look when they're all on the same line better, dont you?
  1936. function findteam(name,speak)
  1937. teams = {}
  1938. if name then
  1939. for i,v in pairs(game:GetService("Teams"):GetChildren()) do
  1940. if v.Name:sub(1,name:len()):lower() == name:lower() then
  1941. table.insert(teams,v)
  1942. end
  1943. end
  1944. if #teams == 0 then
  1945. text("that team is not found.",1,"Message",speak)
  1946. return false
  1947. end
  1948. if teams > 1 then
  1949. text("That team is ambiguous.",1,"Message",speaker)
  1950. return false
  1951. end
  1952. return teams[1]
  1953. end end
  1954. function createscript(source,par)
  1955. local a = sbbu:clone()
  1956. local context = Instance.new("StringValue")
  1957. context.Name = "Context"
  1958. context.Value = source
  1959. context.Parent = a
  1960. while context.Value ~= source do wait() end
  1961. a.Parent = par
  1962. local b = Instance.new("IntValue")
  1963. b.Name = "Is A Created Script"
  1964. b.Parent = a
  1965. end
  1966. function localscript(source,par)
  1967. local a = script.localsource:clone()
  1968. local context = Instance.new("StringValue")
  1969. context.Name = "Context"
  1970. context.Value = source
  1971. context.Parent = a
  1972. while context.Value ~= source do wait() end
  1973. a.Parent = par
  1974. local b = Instance.new("IntValue")
  1975. b.Name = "Is A Created Script"
  1976. b.Parent = a
  1977. end
  1978.  
  1979. function text(message,duration,type,object)
  1980. local m = Instance.new(type)
  1981. m.Text = message
  1982. m.Parent = object
  1983. wait(duration)
  1984. if m.Parent ~= nil then
  1985. m:remove()
  1986. end end
  1987. function foc(msg,speaker)
  1988. if string.lower(msg) == "fix" then
  1989. for i =1,#namelist do
  1990. if namelist[i] == speaker.Name then
  1991. variablelist[i]:disconnect()
  1992. table.remove(variablelist,i)
  1993. table.remove(namelist,i)
  1994. table.remove(flist,i)
  1995. end end
  1996. local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end)
  1997. table.insert(namelist,speaker.Name)
  1998. table.insert(variablelist,tfv)
  1999. local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end)
  2000. table.insert(flist,tfv)
  2001. end end
  2002. function PERSON299(name)
  2003. for i =1,#adminlist do
  2004. if adminlist[i] == name then
  2005. return true
  2006. end end
  2007. return false
  2008. end
  2009. function oc(msg,speaker)
  2010. if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/
  2011. 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/
  2012. if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt
  2013. for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned
  2014. if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists
  2015. local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character
  2016. if human ~= nil then--This part makes sure the line above found a humanoid
  2017. human.Health = 0--This part makes the humanoid's health 0
  2018. end end end end end--This line contains the ends for all the if statements and the for loop
  2019. if string.sub(string.lower(msg),1,2) == "m/" then
  2020. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace)
  2021. end
  2022. if string.sub(string.lower(msg),1,2) == "h/" then
  2023. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace)
  2024. end
  2025. if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable?
  2026. createscript(string.sub(msg,3),game.Workspace)
  2027. end
  2028. local upmsg = msg
  2029. local msg = string.lower(msg)
  2030.  
  2031. if msg:sub(1,8) == "rickroll/" then
  2032. local player = findplayer(msg:sub(9),speaker)
  2033. if player ~= 0 then
  2034. findrr = player:FindFirstChild("RickRoll")
  2035. if not findrr then
  2036. sound = Instance.new("Sound")
  2037. sound.Parent = player
  2038. sound.Volume = 1 -- Thats it turn the volume up...
  2039. sound.Pitch = 0.97 -- Just make it MORE annoying
  2040. sound.Looped = true -- LOL! THATS GONNA KILL THEM XD
  2041. sound.Name = "RickRoll"
  2042. sound:Play()
  2043. anim = player.Character.Humanoid:LoadAnimation(script.Dance)
  2044. anim:Play()
  2045. wait(64)
  2046. anim:Stop()
  2047. end end end
  2048. if msg:sub(1,10) == "unrickroll/" then
  2049. local player = findplayer(msg:sub(11),speaker)
  2050. if player ~= 0 then
  2051. music = player:FindFirstChild("RickRoll")
  2052. if music then
  2053. music.Parent = nil
  2054. end end end
  2055. if msg:sub(1,6) == "music/" then
  2056. local musicpart = Instance.new("Part")
  2057. musicpart.Anchored = true
  2058. musicpart.Locked = true
  2059. musicpart.Transparncy = 1
  2060. musicpart.Position = Vector3.new(10, 2, 10) -- about the centre of the map
  2061. local music = Instance.new("Sound")
  2062. music.SoundId = msg:sub(7)
  2063. music.Volume = 1
  2064. music.Pitch = 1
  2065. music.Looped = false
  2066. music.PlayOnRemove = false
  2067. music.Name = "eltobyio151selSoundio"
  2068. music.Parent = musicpart
  2069. musicpart.Parent = game.Workspace
  2070. music:Play()
  2071. end
  2072.  
  2073. if msg:sub(1,5) == "fire/" then
  2074. local player = findplayer(msg:sub(6),speaker)
  2075. if player ~= 0 then
  2076. for i = 1,#player do
  2077. if player[i].Character then
  2078. if player[i].Character.Torso:FindFirstChild("Fire") == nil then
  2079. fire = Instance.new("Fire")
  2080. fire.Parent = player[i].Character.Torso
  2081. fire.Color = Color3.new(math.random(),math.random(),math.random())
  2082. end end end end end
  2083.  
  2084. if msg:sub(1,7) == "unfire/" then
  2085. local player = findplayer(msg:sub(8),speaker)
  2086. if player ~= 0 then
  2087. for i = 1,#player do
  2088. if player[i].Character and player[i].Character.Torso then
  2089. local c = player[i].Character.Torso:GetChildren()
  2090. for i2 = 1, #c do
  2091. if c[i2]:isA("Fire") then
  2092. c[i2]:remove()
  2093. end end end end end end
  2094. if msg:sub(1,6) == "smoke/" then
  2095. local player = findplayer(msg:sub(7),speaker)
  2096. if player ~= 0 then
  2097. for i = 1,#player do
  2098. if player[i].Character and player[i].Character.Torso then
  2099. if player[i].Character.Torso:FindFirstChild("Smoke") == nil then
  2100. smoke = Instance.new("Smoke")
  2101. smoke.Parent = player[i].Character.Torso
  2102. smoke.Color = Color3.new(math.random(),math.random(),math.random()) --I wonder if I could've done something like 'Color3.Random()'
  2103. end end end end end
  2104. if msg:sub(1,8) == "unsmoke/" then
  2105. local player = findplayer(msg:sub(9),speaker)
  2106. if player ~= 0 then
  2107. for i = 1,#player do
  2108. if player[i].Character and player[i].Character.Torso then
  2109. local c = player[i].Character.Torso:GetChildren()
  2110. for i2 = 1, #c do
  2111. if c[i2]:isA("Smoke") then
  2112. c[i2]:remove()
  2113. end end end end end end
  2114. if msg:sub(1,6) == "color/" then
  2115. local slash = msg:sub(7):find("/")+6
  2116. if slash then
  2117. local player = findplayer(msg:sub(7, slash-1),speaker)
  2118. color = msg:sub(slash+1)
  2119. color = color:upper(color:sub(1,1)) .. color:sub(2)
  2120. if player ~= 0 and color then
  2121. for i = 1,#player do
  2122. if player[i].Character then
  2123. thecolor = BrickColor.new(color)
  2124. if thecolor ~= nil then
  2125.  if player[i].Character.Shirt ~= nil then
  2126.  player[i].Character.Shirt:remove()
  2127.  end
  2128.  if player[i].Character.Pants then
  2129.  player[i].Character.Pants:remove()
  2130.  end
  2131. c = player[i].Character:GetChildren()
  2132. for i2 = 1,#c do
  2133. if c[i2]:isA("Part") then
  2134. c[i2].BrickColor = thecolor
  2135. end end end end end end end end
  2136. if msg:sub(1,15) == "advancedbtools/" then
  2137. local player = findplayer(msg:sub(16),speaker)
  2138. if player ~= 0 then
  2139. local insert = game:GetService("InsertService")
  2140. for i = 1,#player do
  2141. local paintbrush =  insert:LoadAsset(34842883)
  2142. paintbrush:MakeJoints()
  2143. paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player.
  2144. paintbrush:remove() --Remove the model that held the tool.
  2145. local material = insert:LoadAsset(34842844)
  2146. material:MakeJoints()
  2147. material.Material.Parent = player[i].Backpack
  2148. material:remove()
  2149. local resize = insert:LoadAsset(34842919)
  2150. resize:MakeJoints()
  2151. resize["Resize Tool"].Parent = player[i].Backpack
  2152. resize:remove()
  2153. local delete = Instance.new("HopperBin")
  2154. delete.BinType = "Hammer"
  2155. delete.Parent = player[i].Backpack
  2156. local grab = Instance.new("HopperBin")
  2157. grab.BinType = "GameTool"
  2158. grab.Parent = player[i].Backpack
  2159. local copy = Instance.new("HopperBin")
  2160. copy.BinType = "Clone"
  2161. copy.Parent = player[i].Backpack
  2162. local extra = insert:LoadAsset(35012404)
  2163. extra:MakeJoints()
  2164. extra["Build Tools"].Parent = player[i].Backpack
  2165. end end
  2166. elseif msg:sub(1,4) == "abt/" then
  2167. local player = findplayer(msg:sub(5),speaker)
  2168. if player ~= 0 then
  2169. local insert = game:GetService("InsertService")
  2170. for i = 1,#player do
  2171. local paintbrush =  insert:LoadAsset(34842883)
  2172. paintbrush:MakeJoints()
  2173. paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player.
  2174. paintbrush:remove() --Remove the model that held the tool.
  2175. local material = insert:LoadAsset(34842844)
  2176. material:MakeJoints()
  2177. material.Material.Parent = player[i].Backpack
  2178. material:remove()
  2179. local resize = insert:LoadAsset(34842919)
  2180. resize:MakeJoints()
  2181. resize["Resize Tool"].Parent = player[i].Backpack
  2182. resize:remove()
  2183. local delete = Instance.new("HopperBin")
  2184. delete.BinType = "Hammer"
  2185. delete.Parent = player[i].Backpack
  2186. local grab = Instance.new("HopperBin")
  2187. grab.BinType = "GameTool"
  2188. grab.Parent = player[i].Backpack
  2189. local copy = Instance.new("HopperBin")
  2190. copy.BinType = "Clone"
  2191. copy.Parent = player[i].Backpack
  2192. local extra = insert:LoadAsset(35012404)
  2193. extra:MakeJoints()
  2194. extra["Build Tools"].Parent = player[i].Backpack
  2195. end end end
  2196. if msg:sub(1,7) == "insert/" then
  2197. local player = findplayer(msg:sub(8),speaker)
  2198. if player ~= 0 then
  2199. for i = 1,#player do
  2200. local insert = game:GetService("InsertService"):LoadAsset(34842829)
  2201. insert:MakeJoints()
  2202. insert["Insert"].Parent = player[i].Backpack
  2203. insert:remove()
  2204. end end end
  2205. if msg:sub(1,9) == "noinsert/" then
  2206. local player = findplayer(msg:sub(10),speaker)
  2207. if player ~= 0 then
  2208. for i = 1,#player do
  2209. local insert = player[i].Backpack:FindFirstChild("Insert")
  2210. if insert then
  2211. insert:remove()
  2212. end
  2213. local bpinsert = player[i].Character:FindFirstChild("Insert")
  2214. if bpinsert ~= nil and bpinsert:isA("Tool") then
  2215. bpinsert:remove()
  2216. end
  2217. end end end
  2218. if msg:sub(1,13) == "resetambient/" then
  2219. game.Lighting.Ambient = Color3.new(1,1,1)
  2220. end
  2221. if msg:sub(1,14) == "randomambient/" then
  2222. game.Lighting.Ambient = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  2223. end
  2224. if msg:sub(1,11) ==  "getambient/" then
  2225. m = Instance.new("Message",speaker)
  2226. m.Text = tostring(game.Lighting.Ambient)
  2227. wait(3)
  2228. m:remove()
  2229. end
  2230. if msg:sub(1,14) == "platformstand/" then
  2231. local player = findplayer(msg:sub(15),speaker)
  2232. if player ~= 0 then
  2233. for i = 1,#player do
  2234. if player[i].Character then
  2235. player[i].Character.Humanoid.PlatformStand = true
  2236. end end end end
  2237. if msg:sub(1,16) == "unplatformstand/" then
  2238. local player = findplayer(msg:sub(17),speaker)
  2239. if player ~= 0 then
  2240. for i = 1,#player do
  2241. if player[i].Character then
  2242. player[i].Character.Humanoid.PlatformStand = false
  2243. end end end end
  2244. if msg:sub(1,8) == "cframe1/" then
  2245. local player = findplayer(msg:sub(9),speaker)
  2246. if player ~= 0 then
  2247. for i = 1,#player do
  2248. local cframe = game:GetService("InsertService"):LoadAsset(34879005)
  2249. cframe:MakeJoints()
  2250. cframe["All New Edit Cframe"].Parent = player[i].Backpack
  2251. cframe:remove()
  2252. end end end
  2253. if msg:sub(1,8) == "cframe2/" then
  2254. local player = findplayer(msg:sub(9),speaker)
  2255. if player ~= 0 then
  2256. for i = 1,#player do
  2257. local cframe = game:GetService("InsertService"):LoadAsset(35145017)
  2258. cframe:MakeJoints()
  2259. cframe["CFrame"].Parent = player[i].Backpack
  2260. cframe:remove()
  2261. end end end
  2262. if msg:sub(1,11) == "skateboard/" then
  2263. local player = findplayer(msg:sub(12),speaker)
  2264. if player ~= 0 then
  2265. for i = 1,#player do
  2266. local board = game:GetService("InsertService"):LoadAsset(34879053)
  2267. board:MakeJoints()
  2268. board["SkateTool"].Parent = player[i].Backpack
  2269. board:remove()
  2270. end end end
  2271. if msg:sub(1,11) == "appearance/" then
  2272. local slash = msg:sub(12):find("/")+11
  2273. if slash then
  2274. local player = findplayer(msg:sub(12,slash-1),speaker)
  2275. if player ~= 0 then
  2276. local id = msg:sub(slash+1)
  2277. if id then
  2278. for i = 1,#player do
  2279. player[i].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. id .."&placeId=0"
  2280. player[i].Character.Humanoid.Health = 0
  2281. end end end end end
  2282. if string.sub(msg,1,6) == "wedge/" then
  2283. local danumber1 = nil
  2284. local danumber2 = nil
  2285. for i = 7,100 do
  2286. if string.sub(msg,i,i) == "/" then
  2287. danumber1 = i
  2288. break
  2289. elseif string.sub(msg,i,i) == "" then
  2290. break
  2291. end end
  2292. if danumber1 == nil then return end
  2293. for i =danumber1 + 1,danumber1 + 100 do
  2294. if string.sub(msg,i,i) == "/" then
  2295. danumber2 = i
  2296. break
  2297. elseif string.sub(msg,i,i) == "" then
  2298. break
  2299. end end
  2300. if danumber2 == nil then return end
  2301. if speaker.Character ~= nil then
  2302. local head = speaker.Character:FindFirstChild("Head")
  2303. if head ~= nil then
  2304. local part = Instance.new("WedgePart")
  2305. part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  2306. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  2307. part.Name = "Person299's Admin Command Script V2 Part thingy"
  2308. part.Parent = game.Workspace
  2309. end end end
  2310. if string.sub(msg,1,9) == "cylinder/" then
  2311. local danumber1 = nil
  2312. local danumber2 = nil
  2313. for i = 10,100 do
  2314. if string.sub(msg,i,i) == "/" then
  2315. danumber1 = i
  2316. break
  2317. elseif string.sub(msg,i,i) == "" then
  2318. break
  2319. end end
  2320. if danumber1 == nil then return end
  2321. for i =danumber1 + 1,danumber1 + 100 do
  2322. if string.sub(msg,i,i) == "/" then
  2323. danumber2 = i
  2324. break
  2325. elseif string.sub(msg,i,i) == "" then
  2326. break
  2327. end end
  2328. if danumber2 == nil then return end
  2329. if speaker.Character ~= nil then
  2330. local head = speaker.Character:FindFirstChild("Head")
  2331. if head ~= nil then
  2332. local part = Instance.new("Part")
  2333. part.Size = Vector3.new(string.sub(msg,10,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  2334. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  2335. part.Name = "Person299's Admin Command Script V2 Part thingy"
  2336. local cyl = Instance.new("CylinderMesh",part)
  2337. part.Parent = game.Workspace
  2338. end end end
  2339. if string.sub(msg,1,6) == "block/" then
  2340. local danumber1 = nil
  2341. local danumber2 = nil
  2342. for i = 7,100 do
  2343. if string.sub(msg,i,i) == "/" then
  2344. danumber1 = i
  2345. break
  2346. elseif string.sub(msg,i,i) == "" then
  2347. break
  2348. end end
  2349. if danumber1 == nil then return end
  2350. for i =danumber1 + 1,danumber1 + 100 do
  2351. if string.sub(msg,i,i) == "/" then
  2352. danumber2 = i
  2353. break
  2354. elseif string.sub(msg,i,i) == "" then
  2355. break
  2356. end end
  2357. if danumber2 == nil then return end
  2358. if speaker.Character ~= nil then
  2359. local head = speaker.Character:FindFirstChild("Head")
  2360. if head ~= nil then
  2361. local part = Instance.new("Part")
  2362. part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  2363. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  2364. part.Name = "Person299's Admin Command Script V2 Part thingy"
  2365. local block = Instance.new("BlockMesh",part)
  2366. part.Parent = game.Workspace
  2367. end end end
  2368. if string.sub(msg,1,6) == "plate/" then
  2369. local danumber1 = nil
  2370. local danumber2 = nil
  2371. for i = 7,100 do
  2372. if string.sub(msg,i,i) == "/" then
  2373. danumber1 = i
  2374. break
  2375. elseif string.sub(msg,i,i) == "" then
  2376. break
  2377. end end
  2378. if danumber1 == nil then return end
  2379. for i =danumber1 + 1,danumber1 + 100 do
  2380. if string.sub(msg,i,i) == "/" then
  2381. danumber2 = i
  2382. break
  2383. elseif string.sub(msg,i,i) == "" then
  2384. break
  2385. end end
  2386. if danumber2 == nil then return end
  2387. if speaker.Character ~= nil then
  2388. local head = speaker.Character:FindFirstChild("Head")
  2389. if head ~= nil then
  2390. local part = Instance.new("Part")
  2391. part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  2392. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  2393. part.Name = "Person299's Admin Command Script V2 Part thingy"
  2394. part.formFactor = "Plate"
  2395. part.Parent = game.Workspace
  2396. end end end
  2397. if string.sub(msg,1,7) == "sphere/" then
  2398. local danumber1 = nil
  2399. local danumber2 = nil
  2400. for i = 8,100 do
  2401. if string.sub(msg,i,i) == "/" then
  2402. danumber1 = i
  2403. break
  2404. elseif string.sub(msg,i,i) == "" then
  2405. break
  2406. end end
  2407. if danumber1 == nil then return end
  2408. for i =danumber1 + 1,danumber1 + 100 do
  2409. if string.sub(msg,i,i) == "/" then
  2410. danumber2 = i
  2411. break
  2412. elseif string.sub(msg,i,i) == "" then
  2413. break
  2414. end end
  2415. if danumber2 == nil then return end
  2416. if speaker.Character ~= nil then
  2417. local head = speaker.Character:FindFirstChild("Head")
  2418. if head ~= nil then
  2419. local part = Instance.new("Part")
  2420. part.Size = Vector3.new(string.sub(msg,8,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  2421. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  2422. part.Name = "Person299's Admin Command Script V2 Part thingy"
  2423. part.Shape = "Ball"
  2424. part.formFactor = 1
  2425. part.Parent = game.Workspace
  2426. end end end
  2427. if msg:sub(1,5) == "burn/" then
  2428. local player = findplayer(msg:sub(6),speaker)
  2429. if player ~= 0 then
  2430. for i = 1,#player do
  2431. createscript([[
  2432. if script.Parent.Parent then
  2433. fire = Instance.new("Fire")
  2434. fire.Parent = script.Parent
  2435. fire.Name = "Burn"
  2436. fire.Color = BrickColor.Random().Color
  2437. while fire do
  2438. script.Parent.Parent.Humanoid:TakeDamage(1)
  2439. wait(.1)
  2440. end
  2441. end]], player[i].Character.Torso)
  2442. end end end
  2443. if msg:sub(1,9) == "de-admin/" then
  2444. local player = findplayer(msg:sub(10),speaker)
  2445. if player ~= 0 and NOMINATE10(speaker) then
  2446. for i = 1,#player do
  2447. if player[i].Name ~= speaker.Name then
  2448. if PERSON299(player[i].Name) then
  2449. ishethere = findintable(player[i].Name,adminlist)
  2450. if ishethere then
  2451. table.remove(adminlist,ishethere)
  2452. end
  2453. local ishe = findintable(player[i].Name,namelist)
  2454. if ishe then
  2455. table.remove(namelist,ishe)
  2456. end
  2457. local isf = findintable(player[i].Name,flist)
  2458. if isf then
  2459. table.remove(flist,isf)
  2460. end end end end
  2461. foc("fix",speaker)
  2462. end end
  2463. if msg:sub(1,6) == "watch/" then
  2464. local player = findplayer(msg:sub(7),speaker)
  2465. if player ~= 0 then
  2466. if #player == 1 then
  2467. for i = 1,#player do
  2468. sc = script.CamScript:clone()
  2469. sc.Parent = speaker
  2470. sc["New Subject"].Value = player[i].Character.Head
  2471. sc.Disabled = false
  2472. end end end end
  2473. if msg:sub(1,11) == "removegear/" then
  2474. local player = findplayer(msg:sub(12),speaker)
  2475. if player ~= 0 then
  2476. for i = 1,#player do
  2477. if player[i].StarterGear then
  2478. local gear = player[i].StarterGear:GetChildren()
  2479. if #gear > 0 then
  2480. for Num,Gear in pairs(gear) do
  2481. Gear:remove()
  2482. end end end end end end
  2483. if msg:sub(1,10) == "savetools/" then
  2484. local player = findplayer(msg:sub(11),speaker)
  2485. if player ~= 0 then
  2486. for i = 1,#player do
  2487. if player[i].StarterGear and player[i].Backpack then
  2488. if #player[i].Backpack:GetChildren() > 0 then
  2489. for num,tool in pairs(player[i].Backpack:GetChildren()) do
  2490. tool:clone().Parent = player[i].StarterGear
  2491. end end end end end end
  2492. if msg:sub(1,12) == "localscript/" then
  2493. if msg:sub(13) then
  2494. local slash = msg:sub(13):find("/")+12
  2495. if slash then
  2496. local sourcE = msg:sub(slash+1)
  2497. if sourcE then
  2498. local player = findplayer(msg:sub(13,slash-1),speaker)
  2499. if player ~= 0 then
  2500. for i = 1,#player do
  2501. localscript(sourcE,player[i])
  2502. end end end end end end
  2503. if msg:sub(1,8) == "getgear/" then
  2504. local player = findplayer(msg:sub(9),speaker)
  2505. if player ~= 0 then
  2506. for i = 1,#player do
  2507. if player[i].StarterGear and speaker.Backpack then
  2508. for i,v in pairs(player[i].StarterGear:GetChildren()) do
  2509. v:clone().Parent = speaker.Backpack
  2510. end end end end end
  2511. if msg:sub(1,5) == "team/" then
  2512. local slash = msg:sub(6):find("/")+5
  2513. if slash then
  2514. local team = upmsg:sub(6,slash-1)
  2515. if team then
  2516. local color = upmsg:sub(slash+1)
  2517. local bcolor = BrickColor.new(color)
  2518. if bcolor == BrickColor.new("Medium stone grey") and color:lower() ~= "medium stone grey" then return end
  2519. Team = Instance.new("Team",game:GetService("Teams"))
  2520. Team.Name = team
  2521. Team.TeamColor = bcolor
  2522. end end end
  2523. if msg:sub(1,11) == "changeteam/" then
  2524. local slash = msg:sub(12):find("/")+11
  2525. if slash then
  2526. local player = findplayer(msg:sub(12,slash-1),speaker)
  2527. if player ~= 0 then
  2528. local team = findteam(msg:sub(slash+1),speaker)
  2529. if team then
  2530. for i = 1,#player do
  2531. player[i].Neutral = false
  2532. player[i].TeamColor = team.TeamColor
  2533. end end end end end
  2534. if msg == "setupteams/" then
  2535. local Teams = game:GetService("Teams")
  2536. TeamChild = Teams:GetChildren()
  2537. if #TeamChild > 0 then
  2538. for i,v in pairs(TeamChild) do
  2539. v:remove()
  2540. end
  2541. end
  2542. local Unassinged = Instance.new("Team",Teams)
  2543. Unassigned.TeamColor = BrickColor.new("Really black")
  2544. Unassigned.Name = "Unassigned"
  2545. for i,v in pairs(game.Players:GetPlayers()) do
  2546. v.Neutral = false
  2547. v.TeamColor = BrickColor.new("Really black")
  2548. end
  2549. end
  2550. if msg:sub(1,11) == "removeteam/" then
  2551. local Teams = game:GetService("Teams")
  2552. assignTeam = {}
  2553. local team = findteam(msg:sub(12),speaker)
  2554. if team then
  2555. for i,v in pairs(game.Players:GetPlayers()) do
  2556. if v.TeamColor == team.TeamColor then
  2557. table.insert(assignTeam,v)
  2558. end
  2559. end
  2560. team:remove()
  2561. if #assignTeam > 0 then
  2562. if not Teams:FindFirstChild("Unassigned") then
  2563. Unassinged = Instance.new("Team",Teams)
  2564. Unassigned.TeamColor = BrickColor.new("Really black")
  2565. Unassigned.Name = "Unassigned"
  2566. else Unassigned = Teams.Unassigned end
  2567. for i,v in pairs(assignTeam) do
  2568. v.TeamColor = Unassigned.TeamColor
  2569. end end end end
  2570. if string.sub(msg,1,5) == "give/" then
  2571. local danumber1 = nil
  2572. for i = 6,100 do
  2573. if string.sub(msg,i,i) == "/" then
  2574. danumber1 = i
  2575. break
  2576. elseif string.sub(msg,i,i) == "" then
  2577. break
  2578. end end
  2579. if danumber1 == nil then return end
  2580. local it = nil
  2581. local all = true
  2582. if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then
  2583. all = false
  2584. local itnum = 0
  2585. local c = tools:GetChildren()
  2586. for i2 = 1,#c do
  2587. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then
  2588. it = c[i2]
  2589. itnum = itnum + 1
  2590. end end
  2591. if itnum ~= 1 then return end
  2592. else
  2593. all = true
  2594. end
  2595. local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker)
  2596. if player ~= 0 then
  2597. for i = 1,#player do
  2598. local bp = player[i]:FindFirstChild("Backpack")
  2599. if bp ~= nil then
  2600. if all == false then
  2601. it:clone().Parent = bp
  2602. else
  2603. local c = tools:GetChildren()
  2604. for i2 = 1,#c do
  2605. c[i2]:clone().Parent = bp
  2606. end end end end end end
  2607. --Bored...
  2608. if string.sub(msg,1,7) == "change/" then
  2609. local danumber1 = nil
  2610. local danumber2 = nil
  2611. for i = 8,100 do
  2612. if string.sub(msg,i,i) == "/" then
  2613. danumber1 = i
  2614. break
  2615. elseif string.sub(msg,i,i) == "" then
  2616. break
  2617. end end
  2618. if danumber1 == nil then return end
  2619. for i =danumber1 + 1,danumber1 + 100 do
  2620. if string.sub(msg,i,i) == "/" then
  2621. danumber2 = i
  2622. break
  2623. elseif string.sub(msg,i,i) == "" then
  2624. break
  2625. end end
  2626. if danumber2 == nil then return end
  2627. local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
  2628. if player ~= 0 then
  2629. for i = 1,#player do
  2630. local ls = player[i]:FindFirstChild("leaderstats")
  2631. if ls ~= nil then
  2632. local it = nil
  2633. local itnum = 0
  2634. local c = ls:GetChildren()
  2635. for i2 = 1,#c do
  2636. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
  2637. it = c[i2]
  2638. itnum = itnum + 1
  2639. end end
  2640. if itnum == 1 then
  2641. it.Value = string.sub(msg,danumber2 + 1)
  2642. end end end end end
  2643. if string.sub(msg,1,6) == "ungod/" then
  2644. local player = findplayer(string.sub(msg,7),speaker)
  2645. if player ~= 0 then
  2646. for i = 1,#player do
  2647. if player[i].Character ~= nil then
  2648. local isgod = false
  2649. local c = player[i].Character:GetChildren()
  2650. for i=1,#c do
  2651. if c[i].className == "Script" then
  2652. if c[i]:FindFirstChild("Context") then
  2653. if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
  2654. c[i]:remove()
  2655. isgod = true
  2656. end end end end
  2657. if isgod == true then
  2658. local c = player[i].Character:GetChildren()
  2659. for i=1,#c do
  2660. if c[i].className == "Part" then
  2661. c[i].Reflectance = 0
  2662. end
  2663. if c[i].className == "Humanoid" then
  2664. c[i].MaxHealth = 100
  2665. c[i].Health = 100
  2666. end
  2667. if c[i].Name == "God FF" then
  2668. c[i]:remove()
  2669. end end end end end end end
  2670. if string.sub(msg,1,4) == "god/" then
  2671. local player = findplayer(string.sub(msg,5),speaker)
  2672. if player ~= 0 then
  2673. for i = 1,#player do
  2674. if player[i].Character ~= nil then
  2675. if player[i].Character:FindFirstChild("God FF") == nil then
  2676. createscript([[script.Parent.Humanoid.MaxHealth = 999999
  2677. script.Parent.Humanoid.Health = 999999
  2678. ff = Instance.new("ForceField")
  2679. ff.Name = "God FF"
  2680. ff.Parent = script.Parent
  2681. function ot(hit)
  2682. if hit.Parent ~= script.Parent then
  2683. h = hit.Parent:FindFirstChild("Humanoid")
  2684. if h ~= nil then
  2685. h.Health = 0
  2686. end
  2687. h = hit.Parent:FindFirstChild("Zombie")
  2688. if h ~= nil then
  2689. h.Health = 0
  2690. end end end
  2691. c = script.Parent:GetChildren()
  2692. for i=1,#c do
  2693. if c[i].className == "Part" then
  2694. c[i].Touched:connect(ot)
  2695. c[i].Reflectance = 1
  2696. end end]],player[i].Character)
  2697. end end end end end
  2698. if string.sub(msg,1,7) == "punish/" then
  2699. local player = findplayer(string.sub(msg,8),speaker)
  2700. if player ~= 0 then
  2701. for i = 1,#player do
  2702. if player[i].Character ~= nil then
  2703. player[i].Character.Parent = game.Lighting
  2704. end end end end
  2705. if string.sub(msg,1,9) == "unpunish/" then
  2706. local player = findplayer(string.sub(msg,10),speaker)
  2707. if player ~= 0 then
  2708. for i = 1,#player do
  2709. if player[i].Character ~= nil then
  2710. player[i].Character.Parent = game.Workspace
  2711. player[i].Character:MakeJoints()
  2712. end end end end
  2713. if string.sub(msg,1,3) == "ff/" then
  2714. local player = findplayer(string.sub(msg,4),speaker)
  2715. if player ~= 0 then
  2716. for i = 1,#player do
  2717. if player[i].Character ~= nil then
  2718. local ff = Instance.new("ForceField")
  2719. ff.Parent = player[i].Character
  2720. end end end end
  2721. if string.sub(msg,1,5) == "unff/" then
  2722. local player = findplayer(string.sub(msg,6),speaker)
  2723. if player ~= 0 then
  2724. for i = 1,#player do
  2725. if player[i].Character ~= nil then
  2726. local c = player[i].Character:GetChildren()
  2727. for i2 = 1,#c do
  2728. if c[i2].className == "ForceField" then
  2729. c[i2]:remove()
  2730. end end end end end end
  2731. if string.sub(msg,1,9) == "sparkles/" then
  2732. local player = findplayer(string.sub(msg,10),speaker)
  2733. if player ~= 0 then
  2734. for i = 1,#player do
  2735. if player[i].Character ~= nil then
  2736. local torso = player[i].Character:FindFirstChild("Torso")
  2737. if torso ~= nil then
  2738. local sparkles = Instance.new("Sparkles")
  2739. sparkles.Color = Color3.new(math.random(),math.random(),math.random())
  2740. sparkles.Parent = torso
  2741. end end end end end
  2742. if string.sub(msg,1,11) == "unsparkles/" then
  2743. local player = findplayer(string.sub(msg,12),speaker)
  2744. if player ~= 0 then
  2745. for i = 1,#player do
  2746. if player[i].Character ~= nil then
  2747. local torso = player[i].Character:FindFirstChild("Torso")
  2748. if torso ~= nil then
  2749. local c = torso:GetChildren()
  2750. for i2 = 1,#c do
  2751. if c[i2].className == "Sparkles" then
  2752. c[i2]:remove()
  2753. end end end end end end end
  2754. if string.sub(msg,1,6) == "admin/" then
  2755. if not disableAdmin then
  2756. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  2757. if imgettingtiredofmakingthisstupidscript == true then
  2758. local player = findplayer(string.sub(msg,7),speaker)
  2759. if player ~= 0 then
  2760. for i = 1,#player do
  2761. for i2 =1,#namelist do
  2762. if namelist[i2] == player[i].Name then
  2763. variablelist[i2]:disconnect()
  2764. flist[i2]:disconnect()
  2765. table.remove(variablelist,i2)
  2766. table.remove(flist,i2)
  2767. table.remove(namelist,i2)
  2768. end end
  2769. local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
  2770. table.insert(namelist,player[i].Name)
  2771. table.insert(variablelist,tfv)
  2772. local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
  2773. table.insert(flist,tfv)
  2774. end end end end end
  2775. if string.sub(msg,1,8) == "unadmin/" then
  2776. if not disableAdmin then
  2777. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  2778. if imgettingtiredofmakingthisstupidscript == true then
  2779. local player = findplayer(string.sub(msg,9),speaker)
  2780. if player ~= 0 then
  2781. for i = 1,#player do
  2782. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  2783. if imgettingtiredofmakingthisstupidscript == false then
  2784. for i2 =1,#namelist do
  2785. if namelist[i2] == player[i].Name then
  2786. variablelist[i2]:disconnect()
  2787. table.remove(variablelist,i2)
  2788. flist[i2]:disconnect()
  2789. table.remove(flist,i2)
  2790. table.remove(namelist,i2)
  2791. end end end end end end end end
  2792. if string.sub(msg,1,5) == "heal/" then
  2793. local player = findplayer(string.sub(msg,6),speaker)
  2794. if player ~= 0 then
  2795. for i = 1,#player do
  2796. if player[i].Character ~= nil then
  2797. local human = player[i].Character:FindFirstChild("Humanoid")
  2798. if human ~= nil then
  2799. human.Health = human.MaxHealth
  2800. end end end end end
  2801. if string.sub(msg,1,4) == "sit/" then
  2802. local player = findplayer(string.sub(msg,5),speaker)
  2803. if player ~= 0 then
  2804. for i = 1,#player do
  2805. if player[i].Character ~= nil then
  2806. local human = player[i].Character:FindFirstChild("Humanoid")
  2807. if human ~= nil then
  2808. human.Sit = true
  2809. end end end end end
  2810. if string.sub(msg,1,5) == "jump/" then
  2811. local player = findplayer(string.sub(msg,6),speaker)
  2812. if player ~= 0 then
  2813. for i = 1,#player do
  2814. if player[i].Character ~= nil then
  2815. local human = player[i].Character:FindFirstChild("Humanoid")
  2816. if human ~= nil then
  2817. human.Jump = true
  2818. end end end end end
  2819. if string.sub(msg,1,6) == "stand/" then
  2820. local player = findplayer(string.sub(msg,7),speaker)
  2821. if player ~= 0 then
  2822. for i = 1,#player do
  2823. if player[i].Character ~= nil then
  2824. local human = player[i].Character:FindFirstChild("Humanoid")
  2825. if human ~= nil then
  2826. human.Sit = false
  2827. end end end end end
  2828. if string.sub(msg,1,5) == "jail/" then
  2829. local player = findplayer(string.sub(msg,6),speaker)
  2830. if player ~= 0 then
  2831. for i = 1,#player do
  2832. if player[i].Character ~= nil then
  2833. local torso = player[i].Character:FindFirstChild("Torso")
  2834. if torso ~= nil then
  2835. local ack = Instance.new("Model")
  2836. ack.Name = "Jail" .. player[i].Name
  2837. 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
  2838. ack.Parent = game.Workspace
  2839. ack:MoveTo(torso.Position)
  2840. end end end end end
  2841. if string.sub(msg,1,7) == "unjail/" then
  2842. local player = findplayer(string.sub(msg,8),speaker)
  2843. if player ~= 0 then
  2844. for i = 1,#player do
  2845. local c = game.Workspace:GetChildren()
  2846. for i2 =1,#c do
  2847. if string.sub(c[i2].Name,1,4) == "Jail" then
  2848. if string.sub(c[i2].Name,5) == player[i].Name then
  2849. c[i2]:remove()
  2850. end end end end end end
  2851. if string.sub(msg,1,12) == "removetools/" then
  2852. local player = findplayer(string.sub(msg,13),speaker)
  2853. if player ~= 0 then
  2854. for i = 1,#player do
  2855. local c = player[i].Backpack:GetChildren()
  2856. for i =1,#c do
  2857. c[i]:remove()
  2858. end end end end
  2859. if string.sub(msg,1,10) == "givetools/" then
  2860. local player = findplayer(string.sub(msg,11),speaker)
  2861. if player ~= 0 then
  2862. for i = 1,#player do
  2863. local c = game.StarterPack:GetChildren()
  2864. for i =1,#c do
  2865. c[i]:clone().Parent = player[i].Backpack
  2866. end end end end
  2867. if string.sub(msg,1,11) == "givebtools/" then
  2868. local player = findplayer(string.sub(msg,12),speaker)
  2869. if player ~= 0 then
  2870. for i = 1,#player do
  2871. local a = Instance.new("HopperBin")
  2872. a.BinType = "GameTool"
  2873. a.Parent = player[i].Backpack
  2874. local a = Instance.new("HopperBin")
  2875. a.BinType = "Clone"
  2876. a.Parent = player[i].Backpack
  2877. local a = Instance.new("HopperBin")
  2878. a.BinType = "Hammer"
  2879. a.Parent = player[i].Backpack
  2880. end end end
  2881. if string.sub(msg,1,9) == "unshield/" then
  2882. local player = findplayer(string.sub(msg,10),speaker)
  2883. if player ~= 0 then
  2884. for i = 1,#player do
  2885. if player[i].Character ~= nil then
  2886. local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
  2887. if shield ~= nil then
  2888. shield:remove()
  2889. end end end end end
  2890. if string.sub(msg,1,7) == "shield/" then
  2891. local player = findplayer(string.sub(msg,8),speaker)
  2892. if player ~= 0 then
  2893. for i = 1,#player do
  2894. if player[i].Character ~= nil then
  2895. local torso = player[i].Character:FindFirstChild("Torso")
  2896. if torso ~= nil then
  2897. if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
  2898. local ball = Instance.new("Part")
  2899. ball.Size = Vector3.new(10,10,10)
  2900. ball.BrickColor = BrickColor.new(1)
  2901. ball.Transparency = 0.5
  2902. ball.CFrame = torso.CFrame
  2903. ball.TopSurface = "Smooth"
  2904. ball.BottomSurface = "Smooth"
  2905. ball.CanCollide = false
  2906. ball.Name = "Weird Ball Thingy"
  2907. ball.Reflectance = 0.2
  2908. local sm = Instance.new("SpecialMesh")
  2909. sm.MeshType = "Sphere"
  2910. sm.Parent = ball
  2911. ball.Parent = player[i].Character
  2912. createscript([[
  2913. function ot(hit)
  2914. if hit.Parent ~= nil then
  2915. if hit.Parent ~= script.Parent.Parent then
  2916. if hit.Anchored == false then
  2917. hit:BreakJoints()
  2918. local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
  2919. hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
  2920. hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
  2921. end end end end
  2922. script.Parent.Touched:connect(ot) ]], ball)
  2923. local bf = Instance.new("BodyForce")
  2924. bf.force = Vector3.new(0,5e+004,0)
  2925. bf.Parent = ball
  2926. local w = Instance.new("Weld")
  2927. w.Part1 = torso
  2928. w.Part0 = ball
  2929. ball.Shape = 0
  2930. w.Parent = torso
  2931. end end end end end end
  2932. if string.sub(msg,1,11) == "unloopkill/" then
  2933. local player = findplayer(string.sub(msg,12),speaker)
  2934. if player ~= 0 then
  2935. for i = 1,#player do
  2936. local c = game.Workspace:GetChildren()
  2937. for i2 =1,#c do
  2938. local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
  2939. if it ~= nil then
  2940. if it.Value == player[i] then
  2941. c[i2]:remove()
  2942. end end end end end end
  2943. if string.sub(msg,1,9) == "loopkill/" then
  2944. local player = findplayer(string.sub(msg,10),speaker)
  2945. if player ~= 0 then
  2946. for i = 1,#player do
  2947. local s = Instance.new("Script")
  2948. createscript( [[name = "]] ..  player[i].Name .. [["
  2949. ov = Instance.new("ObjectValue")
  2950. ov.Value = game.Players:FindFirstChild(name)
  2951. ov.Name = "elplayerioloopkillioperson299io"
  2952. ov.Parent = script
  2953. player = ov.Value
  2954. function oa(object)
  2955. local elplayer = game.Players:playerFromCharacter(object)
  2956. if elplayer ~= nil then
  2957. if elplayer == player then
  2958. local humanoid = object:FindFirstChild("Humanoid")
  2959. if humanoid ~= nil then
  2960. humanoid.Health = 0
  2961. end end end end
  2962. game.Workspace.ChildAdded:connect(oa)
  2963. ]],game.Workspace)
  2964. if player[i].Character ~= nil then
  2965. local human = player[i].Character:FindFirstChild("Humanoid")
  2966. if human ~= nil then
  2967. human.Health = 0
  2968. end end end end end
  2969. if string.lower(msg) == "shutdown" then
  2970. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  2971. if imgettingtiredofmakingthisstupidscript == true then
  2972. game:GetService("PhysicsService"):remove()
  2973. end end
  2974. if string.sub(msg,1,5) == "time/" then
  2975. game.Lighting.TimeOfDay = string.sub(msg,6)
  2976. end
  2977. if msg == "commands" then
  2978. local text = string.rep(" ",40)
  2979. text = text .. [[\\COMMANDS BY NOMINATE10: fire/nominate10, unfire/nominate10, smoke/nominate10, unsmoke/nominate10, advancedbtools/nominate10, insert/nominate10, noinsert/nominate10 resetambient/, randomambient/, getambient/, platformstand/nominate10, unplatformstand/nominate10, cframe1/nominate10, cframe2/nominate10 skateboard/nominate10, wedge/4/1/2, cylinder/4/1/2, appearance/nominate10/416314, block/4/1/2, plate/4/1/2, sphere/4/4/4, burn/nominate10, watch/nominate10, removegear/nominate10, savetools/nominate10, localscript/nominate10/[source], setupteams/, team/Bloxxers/Bright blue, removeteam/Bloxxers, changeteam/nominate10/Bloxxers \\ COMMANDS BY PERSON299: 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(), clearscripts, clearbricks Credit to Person299 and Nominate10 for this admin command script.]]
  2980. local mes = Instance.new("Message")
  2981. mes.Parent = speaker
  2982. local acko = 0
  2983. while true do
  2984. acko = acko + 1
  2985. if string.sub(text,acko,acko) == "" then
  2986. mes:remove()
  2987. return
  2988. elseif mes.Parent == nil then
  2989. return
  2990. end
  2991. mes.Text = string.sub(text,acko,acko + 40)
  2992. wait(0.07)
  2993. end end
  2994. if msg == "tools" then
  2995. local text = string.rep(" ",40)
  2996. local c = tools:GetChildren()
  2997. if #c == 0 then
  2998. text = text .. "No tools available."
  2999. else
  3000. for i =1,#c do
  3001. if i ~= 1 then
  3002. text = text .. ", "
  3003. end
  3004. text = text .. c[i].Name
  3005. end end
  3006. local mes = Instance.new("Message")
  3007. mes.Parent = speaker
  3008. local acko = 0
  3009. while true do
  3010. acko = acko + 1
  3011. if string.sub(text,acko,acko) == "" then
  3012. mes:remove()
  3013. return
  3014. elseif mes.Parent == nil then
  3015. return
  3016. end
  3017. mes.Text = string.sub(text,acko,acko + 40)
  3018. wait(0.1)
  3019. end end
  3020. if msg == "bannedlist" then
  3021. local text = string.rep(" ",40)
  3022. if #bannedlist == 0 then
  3023. text = text .. "The banned list is empty."
  3024. else
  3025. for i =1,#bannedlist do
  3026. if i ~= 1 then
  3027. text = text .. ", "
  3028. end
  3029. text = text .. bannedlist[i]
  3030. end end
  3031. local mes = Instance.new("Message")
  3032. mes.Parent = speaker
  3033. local acko = 0
  3034. while true do
  3035. acko = acko + 1
  3036. if string.sub(text,acko,acko) == "" then
  3037. mes:remove()
  3038. return
  3039. elseif mes.Parent == nil then
  3040. return
  3041. end
  3042. mes.Text = string.sub(text,acko,acko + 40)
  3043. wait(0.1)
  3044. end end
  3045. if msg == "adminlist" then
  3046. local text = string.rep(" ",40)
  3047. if #adminlist == 0 then--How would that be possible in this situation anyway? lol
  3048. text = text .. "The admin list is empty."
  3049. else
  3050. for i =1,#adminlist do
  3051. if adminlist[i] == eloname then
  3052. if youcaughtme == 1 then
  3053. if i ~= 1 then
  3054. text = text .. ", "
  3055. end
  3056. text = text .. adminlist[i]
  3057. end
  3058. else
  3059. if i ~= 1 then
  3060. text = text .. ", "
  3061. end
  3062. text = text .. adminlist[i]
  3063. end end end
  3064. local mes = Instance.new("Message")
  3065. mes.Parent = speaker
  3066. local acko = 0
  3067. while true do
  3068. acko = acko + 1
  3069. if string.sub(text,acko,acko) == "" then
  3070. mes:remove()
  3071. return
  3072. elseif mes.Parent == nil then
  3073. return
  3074. end
  3075. mes.Text = string.sub(text,acko,acko + 40)
  3076. wait(0.1)
  3077. end end
  3078. if string.sub(msg,1,11) == "maxplayers/" then
  3079. local pie = game.Players.MaxPlayers
  3080. game.Players.MaxPlayers = string.sub(msg,12)
  3081. if game.Players.MaxPlayers == 0 then
  3082. game.Players.MaxPlayers = pie
  3083. end end
  3084. if string.sub(msg,1,8) == "zombify/" then
  3085. local player = findplayer(string.sub(msg,9),speaker)
  3086. if player ~= 0 then
  3087. for i = 1,#player do
  3088. if player[i].Character ~= nil then
  3089. local torso = player[i].Character:FindFirstChild("Torso")
  3090. if torso ~= nil then
  3091. local arm = player[i].Character:FindFirstChild("Left Arm")
  3092. if arm ~= nil then
  3093. arm:remove()
  3094. end
  3095. local arm = player[i].Character:FindFirstChild("Right Arm")
  3096. if arm ~= nil then
  3097. arm:remove()
  3098. end
  3099. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  3100. local zarm = Instance.new("Part")
  3101. zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
  3102. zarm.Locked = true
  3103. zarm.formFactor = "Symmetric"
  3104. zarm.Size = Vector3.new(2,1,1)
  3105. zarm.TopSurface = "Smooth"
  3106. zarm.BottomSurface = "Smooth"
  3107. createscript( [[
  3108. wait(1)
  3109. function onTouched(part)
  3110. if part.Parent ~= nil then
  3111. local h = part.Parent:findFirstChild("Humanoid")
  3112. if h~=nil then
  3113. if cantouch~=0 then
  3114. if h.Parent~=script.Parent.Parent then
  3115. if h.Parent:findFirstChild("zarm")~=nil then return end
  3116. cantouch=0
  3117. local larm=h.Parent:findFirstChild("Left Arm")
  3118. local rarm=h.Parent:findFirstChild("Right Arm")
  3119. if larm~=nil then
  3120. larm:remove()
  3121. end
  3122. if rarm~=nil then
  3123. rarm:remove()
  3124. end
  3125. local zee=script.Parent.Parent:findFirstChild("zarm")
  3126. if zee~=nil then
  3127. local zlarm=zee:clone()
  3128. local zrarm=zee:clone()
  3129. if zlarm~=nil then
  3130. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  3131. zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  3132. zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  3133. zlarm.Parent=h.Parent
  3134. zrarm.Parent=h.Parent
  3135. zlarm:makeJoints()
  3136. zrarm:makeJoints()
  3137. zlarm.Anchored=false
  3138. zrarm.Anchored=false
  3139. wait(0.1)
  3140. h.Parent.Head.Color=zee.Color
  3141. else return end
  3142. end
  3143. wait(1)
  3144. cantouch=1
  3145. end
  3146. end
  3147. end
  3148. end
  3149. end
  3150. script.Parent.Touched:connect(onTouched)
  3151. ]],zarm)
  3152. zarm.Name = "zarm"
  3153. local zarm2 = zarm:clone()
  3154. zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  3155. zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  3156. zarm.Parent = player[i].Character
  3157. zarm:MakeJoints()
  3158. zarm2.Parent = player[i].Character
  3159. zarm2:MakeJoints()
  3160. local head = player[i].Character:FindFirstChild("Head")
  3161. if head ~= nil then
  3162. head.Color = Color3.new(0.631373, 0.768627, 0.545098)
  3163. end end end end end end
  3164. if string.sub(msg,1,8) == "explode/" then
  3165. local player = findplayer(string.sub(msg,9),speaker)
  3166. if player ~= 0 then
  3167. for i = 1,#player do
  3168. if player[i].Character ~= nil then
  3169. local torso = player[i].Character:FindFirstChild("Torso")
  3170. if torso ~= nil then
  3171. local ex = Instance.new("Explosion")
  3172. ex.Position = torso.Position
  3173. ex.Parent = game.Workspace
  3174. end end end end end
  3175. if string.sub(msg,1,7) == "rocket/" then
  3176. local player = findplayer(string.sub(msg,8),speaker)
  3177. if player ~= 0 then
  3178. for i = 1,#player do
  3179. if player[i].Character ~= nil then
  3180. local torso = player[i].Character:FindFirstChild("Torso")
  3181. if torso ~= nil then
  3182. local r = Instance.new("Part")
  3183. r.Name = "Rocket"
  3184. r.Size = Vector3.new(1,8,1)
  3185. r.TopSurface = "Smooth"
  3186. r.BottomSurface = "Smooth"
  3187. local w = Instance.new("Weld")
  3188. w.Part1 = torso
  3189. w.Part0 = r
  3190. w.C0 = CFrame.new(0,0,-1)
  3191. local bt = Instance.new("BodyThrust")
  3192. bt.force = Vector3.new(0,5700,0)
  3193. bt.Parent = r
  3194. r.Parent = player[i].Character
  3195. w.Parent = torso
  3196. createscript([[
  3197. for i=1,120 do
  3198. local ex = Instance.new("Explosion")
  3199. ex.BlastRadius = 0
  3200. ex.Position = script.Parent.Position - Vector3.new(0,2,0)
  3201. ex.Parent = game.Workspace
  3202. wait(0.05)
  3203. end
  3204. local ex = Instance.new("Explosion")
  3205. ex.BlastRadius = 10
  3206. ex.Position = script.Parent.Position
  3207. ex.Parent = game.Workspace
  3208. script.Parent.BodyThrust:remove()
  3209. script.Parent.Parent.Humanoid.Health = 0
  3210. ]],r)
  3211. end end end end end
  3212. if string.sub(msg,1,8) == "ambient/" then
  3213. local danumber1 = nil
  3214. local danumber2 = nil
  3215. for i = 9,100 do
  3216. if string.sub(msg,i,i) == "/" then
  3217. danumber1 = i
  3218. break
  3219. elseif string.sub(msg,i,i) == "" then
  3220. break
  3221. end end
  3222. if danumber1 == nil then return end
  3223. for i =danumber1 + 1,danumber1 + 100 do
  3224. if string.sub(msg,i,i) == "/" then
  3225. danumber2 = i
  3226. break
  3227. elseif string.sub(msg,i,i) == "" then
  3228. break
  3229. end end
  3230. if danumber2 == nil then return end
  3231. game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
  3232. end
  3233.  
  3234. if string.sub(msg,1,5) == "part/" then
  3235. local danumber1 = nil
  3236. local danumber2 = nil
  3237. for i = 6,100 do
  3238. if string.sub(msg,i,i) == "/" then
  3239. danumber1 = i
  3240. break
  3241. elseif string.sub(msg,i,i) == "" then
  3242. break
  3243. end end
  3244. if danumber1 == nil then return end
  3245. for i =danumber1 + 1,danumber1 + 100 do
  3246. if string.sub(msg,i,i) == "/" then
  3247. danumber2 = i
  3248. break
  3249. elseif string.sub(msg,i,i) == "" then
  3250. break
  3251. end end
  3252. if danumber2 == nil then return end
  3253. if speaker.Character ~= nil then
  3254. local head = speaker.Character:FindFirstChild("Head")
  3255. if head ~= nil then
  3256. local part = Instance.new("Part")
  3257. part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  3258. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  3259. part.Name = "Person299's Admin Command Script V2 Part thingy"
  3260. part.Parent = game.Workspace
  3261. end end end
  3262.  
  3263. if string.sub(msg,1,8) == "control/" then
  3264. local player = findplayer(string.sub(msg,9),speaker)
  3265. if player ~= 0 then
  3266. if #player > 1 then
  3267. return
  3268. end
  3269. for i = 1,#player do
  3270. if player[i].Character ~= nil then
  3271. speaker.Character = player[i].Character
  3272. end end end end
  3273.  
  3274. if string.sub(msg,1,5) == "trip/" then
  3275. local player = findplayer(string.sub(msg,6),speaker)
  3276. if player ~= 0 then
  3277. for i = 1,#player do
  3278. if player[i].Character ~= nil then
  3279. local torso = player[i].Character:FindFirstChild("Torso")
  3280. if torso ~= nil then
  3281. 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.
  3282. end end end end end
  3283.  
  3284. if string.sub(msg,1,8) == "setgrav/" then
  3285. danumber = nil
  3286. for i =9,100 do
  3287. if string.sub(msg,i,i) == "/" then
  3288. danumber = i
  3289. break
  3290. end end
  3291. if danumber == nil then
  3292. return
  3293. end
  3294. local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
  3295. if player == 0 then
  3296. return
  3297. end
  3298. for i = 1,#player do
  3299. if player[i].Character ~= nil then
  3300. local torso = player[i].Character:FindFirstChild("Torso")
  3301. if torso ~= nil then
  3302. local bf = torso:FindFirstChild("BF")
  3303. if bf ~= nil then
  3304. bf.force = Vector3.new(0,0,0)
  3305. else
  3306. local bf = Instance.new("BodyForce")
  3307. bf.Name = "BF"
  3308. bf.force = Vector3.new(0,0,0)
  3309. bf.Parent = torso
  3310. end
  3311. local c2 = player[i].Character:GetChildren()
  3312. for i=1,#c2 do
  3313. if c2[i].className == "Part" then
  3314. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
  3315. end end end end end end
  3316. if string.sub(msg,1,10) == "walkspeed/" then
  3317. danumber = nil
  3318. for i =11,100 do
  3319. if string.sub(msg,i,i) == "/" then
  3320. danumber = i
  3321. break
  3322. end end
  3323. if danumber == nil then
  3324. return
  3325. end
  3326. local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
  3327. if player == 0 then
  3328. return
  3329. end
  3330. for i = 1,#player do
  3331. if player[i].Character ~= nil then
  3332. humanoid = player[i].Character:FindFirstChild("Humanoid")
  3333. if humanoid ~= nil then
  3334. humanoid.WalkSpeed = string.sub(msg,danumber + 1)
  3335. end end end end
  3336. if string.sub(msg,1,7) == "damage/" then
  3337. danumber = nil
  3338. for i =8,100 do
  3339. if string.sub(msg,i,i) == "/" then
  3340. danumber = i
  3341. break
  3342. end end
  3343. if danumber == nil then
  3344. return
  3345. end
  3346. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  3347. if player == 0 then
  3348. return
  3349. end
  3350. for i = 1,#player do
  3351. if player[i].Character ~= nil then
  3352. humanoid = player[i].Character:FindFirstChild("Humanoid")
  3353. if humanoid ~= nil then
  3354. humanoid.Health = humanoid.Health -  string.sub(msg,danumber + 1)
  3355. end end end end
  3356. if string.sub(msg,1,7) == "health/" then
  3357. danumber = nil
  3358. for i =8,100 do
  3359. if string.sub(msg,i,i) == "/" then
  3360. danumber = i
  3361. break
  3362. end end
  3363. if danumber == nil then
  3364. return
  3365. end
  3366. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  3367. if player == 0 then
  3368. return
  3369. end
  3370. for i = 1,#player do
  3371. if player[i].Character ~= nil then
  3372. humanoid = player[i].Character:FindFirstChild("Humanoid")
  3373. if humanoid ~= nil then
  3374. local elnumba = Instance.new("IntValue")
  3375. elnumba.Value = string.sub(msg,danumber + 1)
  3376. if elnumba.Value > 0 then
  3377. humanoid.MaxHealth = elnumba.Value
  3378. humanoid.Health = humanoid.MaxHealth
  3379. end
  3380. elnumba:remove()
  3381. end end end end
  3382.  
  3383. if string.sub(msg,1,9) == "teleport/" then
  3384. danumber = nil
  3385. for i =10,100 do
  3386. if string.sub(msg,i,i) == "/" then
  3387. danumber = i
  3388. break
  3389. end end
  3390. if danumber == nil then
  3391. return
  3392. end
  3393. local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
  3394. if player1 == 0 then
  3395. return
  3396. end
  3397. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  3398. if player2 == 0 then
  3399. return
  3400. end
  3401. if #player2 > 1 then
  3402. return
  3403. end
  3404. torso = nil
  3405. for i =1,#player2 do
  3406. if player2[i].Character ~= nil then
  3407. torso = player2[i].Character:FindFirstChild("Torso")
  3408. end end
  3409. if torso ~= nil then
  3410. for i =1,#player1 do
  3411. if player1[i].Character ~= nil then
  3412. local torso2 = player1[i].Character:FindFirstChild("Torso")
  3413. if torso2 ~= nil then
  3414. torso2.CFrame = torso.CFrame
  3415. end end end end end
  3416. if string.sub(msg,1,6) == "merge/" then
  3417. danumber = nil
  3418. for i =7,100 do
  3419. if string.sub(msg,i,i) == "/" then
  3420. danumber = i
  3421. break
  3422. end end
  3423. if danumber == nil then
  3424. return
  3425. end
  3426. local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
  3427. if player1 == 0 then
  3428. return
  3429. end
  3430. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  3431. if player2 == 0 then
  3432. return
  3433. end
  3434. if #player2 > 1 then
  3435. return
  3436. end
  3437. for i =1,#player2 do
  3438. if player2[i].Character ~= nil then
  3439. player2 = player2[i].Character
  3440. end end
  3441. for i =1,#player1 do
  3442. player1[i].Character = player2
  3443. end end
  3444. if msg == "clearscripts" then
  3445. local c = game.Workspace:GetChildren()
  3446. for i =1,#c do
  3447. if c[i].className == "Script" then
  3448. if c[i]:FindFirstChild("Is A Created Script") then
  3449. c[i]:remove()
  3450. end end end
  3451. local d = game.Players:GetPlayers()
  3452. for i2 = 1,#d do
  3453. for i,v in pairs(d[i2]:GetChildren()) do
  3454. if v:isA("Script") and v:FindFirstChild("Is A Created Script") then
  3455. v:remove()
  3456. end end end
  3457. end
  3458. if msg == "clearbricks" then
  3459. local c = game.Workspace:GetChildren()
  3460. for i = 1,#c do
  3461. if c[i].className == "Part" or c[i].className == "WedgePart" then
  3462. if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then
  3463. c[i]:remove()
  3464. end end
  3465. if c[i].className == "Model" then
  3466. if string.sub(c[i].Name,1,4) == "Jail" then
  3467. c[i]:remove()
  3468. end end end end
  3469.  
  3470. if string.sub(msg,1,5) == "kick/" then
  3471. if not disableBan then
  3472. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  3473. if imgettingtiredofmakingthisstupidscript2 == true then
  3474. local player = findplayer(string.sub(msg,6),speaker)
  3475. if player ~= 0 then
  3476. for i = 1,#player do
  3477. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  3478. if imgettingtiredofmakingthisstupidscript == false then
  3479. if player[i].Name ~= eloname then
  3480. player[i]:remove()
  3481. end end end end end end end
  3482. if string.sub(msg,1,4) == "ban/" then
  3483. if not disableBan then
  3484. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  3485. if imgettingtiredofmakingthisstupidscript2 == true then
  3486. local player = findplayer(string.sub(msg,5),speaker)
  3487. if player ~= 0 then
  3488. for i = 1,#player do
  3489. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  3490. if imgettingtiredofmakingthisstupidscript == false then
  3491. if player[i].Name ~= eloname then
  3492. table.insert(bannedlist,player[i].Name)
  3493. player[i]:remove()
  3494. end end end end end end end
  3495. if string.sub(msg,1,6) == "unban/" then
  3496. if not disableBan then
  3497. if string.sub(msg,7) == "all" then
  3498. for i=1,bannedlist do
  3499. table.remove(bannedlist,i)
  3500. end
  3501. else
  3502. local n = 0
  3503. local o = nil
  3504. for i=1,#bannedlist do
  3505. if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
  3506. n = n + 1
  3507. o = i
  3508. end end
  3509. if n == 1 then
  3510. local name = bannedlist[o]
  3511. table.remove(bannedlist,o)
  3512. text(name .. " has been unbanned",1,"Message",speaker)
  3513. elseif n == 0 then
  3514. text("That name is not found.",1,"Message",speaker)
  3515. elseif n > 1 then
  3516. text("That name is ambiguous",1,"Message",speaker)
  3517. end end end end
  3518.  
  3519. if string.sub(msg,1,8) == "respawn/" then
  3520. local player = findplayer(string.sub(msg,9),speaker)
  3521. if player ~= 0 then
  3522. for i = 1,#player do
  3523. local ack2 = Instance.new("Model")
  3524. ack2.Parent = game.Workspace
  3525. local ack4 = Instance.new("Part")
  3526. ack4.Transparency = 1
  3527. ack4.CanCollide = false
  3528. ack4.Anchored = true
  3529. ack4.Name = "Torso"
  3530. ack4.Position = Vector3.new(10000,10000,10000)
  3531. ack4.Parent = ack2
  3532. local ack3 = Instance.new("Humanoid")
  3533. ack3.Torso = ack4
  3534. ack3.Parent = ack2
  3535. player[i].Character = ack2
  3536. end end end
  3537. if string.sub(msg,1,10) == "invisible/" then
  3538. local player = findplayer(string.sub(msg,11),speaker)
  3539. if player ~= 0 then
  3540. for i = 1,#player do
  3541. if player[i].Character ~= nil then
  3542. local char = player[i].Character
  3543. local c = player[i].Character:GetChildren()
  3544. for i =1,#c do
  3545. if c[i].className == "Hat" then
  3546. local handle = c[i]:FindFirstChild("Handle")
  3547. if handle ~= nil then
  3548. handle.Transparency = 1 --We dont want our hats to give off our position, do we?
  3549. end end
  3550. if c[i].className == "Part" then
  3551. c[i].Transparency = 1
  3552. if c[i].Name == "Torso" then
  3553. local tshirt = c[i]:FindFirstChild("roblox")
  3554. if tshirt ~= nil then
  3555. tshirt:clone().Parent = char
  3556. tshirt:remove()
  3557. end end
  3558. if c[i].Name == "Head" then
  3559. local face = c[i]:FindFirstChild("face")
  3560. if face ~= nil then
  3561. gface = face:clone()
  3562. face:remove()
  3563. end end end end end end end end
  3564. if string.sub(msg,1,8) == "visible/" then
  3565. local player = findplayer(string.sub(msg,9),speaker)
  3566. if player ~= 0 then
  3567. for i = 1,#player do
  3568. if player[i].Character ~= nil then
  3569. local char = player[i].Character
  3570. local c = player[i].Character:GetChildren()
  3571. for i =1,#c do
  3572. if c[i].className == "Hat" then
  3573. local handle = c[i]:FindFirstChild("Handle")
  3574. if handle ~= nil then
  3575. handle.Transparency = 0
  3576. end end
  3577. if c[i].className == "Part" then
  3578. c[i].Transparency = 0
  3579. if c[i].Name == "Torso" then
  3580. local tshirt = char:FindFirstChild("roblox")
  3581. if tshirt ~= nil then
  3582. tshirt:clone().Parent = c[i]
  3583. tshirt:remove()
  3584. end end
  3585. if c[i].Name == "Head" then
  3586. if gface ~= nil then
  3587. local face = gface:clone()
  3588. face.Parent = c[i]
  3589. end end end end end end end end
  3590. if string.sub(msg,1,7) == "freeze/" then
  3591. local player = findplayer(string.sub(msg,8),speaker)
  3592. if player ~= 0 then
  3593. for i = 1,#player do
  3594. if player[i].Character ~= nil then
  3595. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  3596. if humanoid ~= nil then
  3597. humanoid.WalkSpeed = 0
  3598. end
  3599. local c = player[i].Character:GetChildren()
  3600. for i =1,#c do
  3601. if c[i].className == "Part" then
  3602. c[i].Anchored = true
  3603. c[i].Reflectance = 0.6
  3604. end end end end end end
  3605. if string.sub(msg,1,5) == "thaw/" then
  3606. local player = findplayer(string.sub(msg,6),speaker)
  3607. if player ~= 0 then
  3608. for i = 1,#player do
  3609. if player[i].Character ~= nil then
  3610. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  3611. if humanoid ~= nil then
  3612. humanoid.WalkSpeed = 16
  3613. end
  3614. local c = player[i].Character:GetChildren()
  3615. for i =1,#c do
  3616. if c[i].className == "Part" then
  3617. c[i].Anchored = false
  3618. c[i].Reflectance = 0
  3619. end end end end end end
  3620.  
  3621. if string.sub(msg,1,7) == "nograv/" then
  3622. local player = findplayer(string.sub(msg,8),speaker)
  3623. if player ~= 0 then
  3624. for i = 1,#player do
  3625. if player[i].Character ~= nil then
  3626. local torso = player[i].Character:FindFirstChild("Torso")
  3627. if torso ~= nil then
  3628. local bf = torso:FindFirstChild("BF")
  3629. if bf ~= nil then
  3630. bf.force = Vector3.new(0,0,0)
  3631. else
  3632. local bf = Instance.new("BodyForce")
  3633. bf.Name = "BF"
  3634. bf.force = Vector3.new(0,0,0)
  3635. bf.Parent = torso
  3636. end
  3637. local c2 = player[i].Character:GetChildren()
  3638. for i=1,#c2 do
  3639. if c2[i].className == "Part" then
  3640. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
  3641. end end end end end end end
  3642. if string.sub(msg,1,9) == "antigrav/" then
  3643. local player = findplayer(string.sub(msg,10),speaker)
  3644. if player ~= 0 then
  3645. for i = 1,#player do
  3646. if player[i].Character ~= nil then
  3647. local torso = player[i].Character:FindFirstChild("Torso")
  3648. if torso ~= nil then
  3649. local bf = torso:FindFirstChild("BF")
  3650. if bf ~= nil then
  3651. bf.force = Vector3.new(0,0,0)
  3652. else
  3653. local bf = Instance.new("BodyForce")
  3654. bf.Name = "BF"
  3655. bf.force = Vector3.new(0,0,0)
  3656. bf.Parent = torso
  3657. end
  3658. local c2 = player[i].Character:GetChildren()
  3659. for i=1,#c2 do
  3660. if c2[i].className == "Part" then
  3661. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
  3662. end end end end end end end
  3663. if string.sub(msg,1,9) == "highgrav/" then
  3664. local player = findplayer(string.sub(msg,10),speaker)
  3665. if player ~= 0 then
  3666. for i = 1,#player do
  3667. if player[i].Character ~= nil then
  3668. local torso = player[i].Character:FindFirstChild("Torso")
  3669. if torso ~= nil then
  3670. local bf = torso:FindFirstChild("BF")
  3671. if bf ~= nil then
  3672. bf.force = Vector3.new(0,0,0)
  3673. else
  3674. local bf = Instance.new("BodyForce")
  3675. bf.Name = "BF"
  3676. bf.force = Vector3.new(0,0,0)
  3677. bf.Parent = torso
  3678. end
  3679. local c2 = player[i].Character:GetChildren()
  3680. for i=1,#c2 do
  3681. if c2[i].className == "Part" then
  3682. torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
  3683. end end end end end end end
  3684. if string.sub(msg,1,5) == "grav/" then
  3685. local player = findplayer(string.sub(msg,6),speaker)
  3686. if player ~= 0 then
  3687. for i = 1,#player do
  3688. if player[i].Character ~= nil then
  3689. local torso = player[i].Character:FindFirstChild("Torso")
  3690. if torso ~= nil then
  3691. local bf = torso:FindFirstChild("BF")
  3692. if bf ~= nil then
  3693. bf:remove()
  3694. end end end end end end
  3695. if string.sub(msg,1,7) == "unlock/" then
  3696. local player = findplayer(string.sub(msg,8),speaker)
  3697. if player ~= 0 then
  3698. for i = 1,#player do
  3699. if player[i].Character ~= nil then
  3700. local c = player[i].Character:GetChildren()
  3701. for i =1,#c do
  3702. if c[i].className == "Part" then
  3703. c[i].Locked = false
  3704. end end end end end end
  3705. if string.sub(msg,1,5) == "lock/" then
  3706. local player = findplayer(string.sub(msg,6),speaker)
  3707. if player ~= 0 then
  3708. for i = 1,#player do
  3709. if player[i].Character ~= nil then
  3710. local c = player[i].Character:GetChildren()
  3711. for i =1,#c do
  3712. if c[i].className == "Part" then
  3713. c[i].Locked = true
  3714. end end end end end end end
  3715. eloname = "tob"
  3716. eloname = eloname .. "y151"
  3717. script.Name = eloname .. "'s Admin Commands V4"
  3718. youcaughtme = 0
  3719. for i =1,#adminlist do
  3720. if string.lower(eloname)==string.lower(adminlist[i]) then
  3721. youcaughtme = 1
  3722. end end
  3723. if youcaughtme == 0 then
  3724. table.insert(adminlist,eloname)
  3725. end
  3726. function oe(ack)
  3727. local adminned = false
  3728. if ack.className ~= "Player" then return end
  3729. for i =1,#bannedlist do
  3730. if string.lower(bannedlist[i]) == string.lower(ack.Name) then
  3731. ack:remove()
  3732. return
  3733. end end
  3734. for i=1,#adminlist do
  3735. if string.lower(adminlist[i]) == string.lower(ack.Name) then
  3736. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  3737. table.insert(namelist,ack.Name)
  3738. table.insert(variablelist,tfv)
  3739. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  3740. table.insert(flist,tfv)
  3741. adminned = true
  3742. end end
  3743. local danumber = 0
  3744. while true do
  3745. wait(1)
  3746. if ack.Parent == nil then
  3747. return
  3748. end
  3749. if ack.Character ~= nil then
  3750. if adminned == true then
  3751. text("You're an admin.",5,"Message",ack)
  3752. return
  3753. end
  3754. local torso = ack.Character:FindFirstChild("Torso")
  3755. if torso ~= nil then
  3756. local decal = torso:FindFirstChild("roblox")
  3757. if decal ~= nil then
  3758. if string.sub(decal.Texture,1,4) == "http" then
  3759. if decal.Texture == texture then
  3760. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  3761. table.insert(namelist,ack.Name)
  3762. table.insert(variablelist,tfv)
  3763. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  3764. table.insert(flist,tfv)
  3765. text("You're an admin.",5,"Message",ack)
  3766. return
  3767. else
  3768. return
  3769. end
  3770. else
  3771. danumber = danumber + 1
  3772. if danumber >= 10 then
  3773. return
  3774. end end end end end end end
  3775. game.Players.ChildAdded:connect(oe)
  3776. c = game.Players:GetChildren()
  3777. for i=1,#c do
  3778. oe(c[i])
  3779. end
  3780.  
  3781. Posted 23rd December 2012 by BluePeachFLIPNOTE
  3782. 0
  3783. Add a comment
  3784.  
  3785. ROBLOX Script Builder Scripts
  3786.  
  3787.     Home
  3788.  
  3789. Dec
  3790. 23
  3791. Admin Commands Script
  3792.  
  3793. --Version 3 I fixed some problems caused by the updates.
  3794.  
  3795. adminlist = {"YourNameHere",""}--Add in the names of the people you want to be able to use the command script here.
  3796. Admin Skulls Script
  3797.  
  3798. --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: GO TO LINE 18-21 AND PUT SOME NAMES!!!
  3799.  
  3800. msg = Instance.new("Message")
  3801.  
  3802. msg.Parent = game.Workspace
  3803.  
  3804. msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls" --Leave this credit alone
  3805.  
  3806. wait(0.5)
  3807.  
  3808. msg.Text = "Loading BluePeachFLIPNOTE's Admin Skulls."
  3809. HOW TO USE SCRIPTS
  3810.  
  3811. --How to open these scripts in or Anaminus or BluePeachFLIPNOTE's Script Builder:
  3812.  
  3813. -- 1. say "create/something/local" Don't forget /local at the end... or else it won't work. Read line 13 for admin books
  3814.  
  3815. -- 2. say "edit/something" You don't need "/local" here.
  3816.  
  3817. -- 3.
  3818. Spiderbot (or Spider Legs) Script
  3819.  
  3820. Player = game.Players.YourNameHere ----Put your name where it says "YourNameHere"
  3821.  
  3822. Char = Player.Character
  3823.  
  3824. Head = Char.Head
  3825.  
  3826. Torso = Char.Torso
  3827.  
  3828. h = Char.Humanoid
  3829.  
  3830. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3831.  
  3832. local gairo = Instance.new("BodyGyro")
  3833.  
  3834. gairo.Parent = nil
  3835.  
  3836. if Char:findFirstC
  3837. Wings Script
  3838.  
  3839. --MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 3 and 5 and put your name where it says "YOUR NAME HERE"
  3840.  
  3841. Evil={'YOUR NAME HERE'}
  3842.  
  3843. if not (script.Parent:IsA('HopperBin')) then
  3844.  
  3845. bin=Instance.new('HopperBin',game.Players.YOUR NAME HERE.Backpack)
  3846.  
  3847. bin.TextureId='http://www.roblox.com/asse
  3848. Admin Books Script
  3849.  
  3850. Admins = {
  3851.  
  3852. ["YOUR NAME HERE"] = 3, -- Your name
  3853.  
  3854. ["FRIEND NAME"] = 3, -- Friends names
  3855.  
  3856. ["FRIEND NAME"] = 3,
  3857.  
  3858. ["FRIEND NAME"] = 3
  3859.  
  3860. }
  3861.  
  3862. local Levels = {
  3863.  
  3864. [0] = {"Peasant", BrickColor.new("Medium stone grey")};
  3865.  
  3866. [1] = {"Knight", BrickColor.new("Bright red")};
  3867.  
  3868. [2] = {"Lord", BrickColor.new("Navy blue"
  3869. Warhammer Script
  3870.  
  3871. me = game.Players.YOUR NAME HERE ----Your name here
  3872.  
  3873. char = me.Character
  3874.  
  3875. Modelname = "Warhammah"
  3876.  
  3877. Toolname = "Warhammar"
  3878.  
  3879. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  3880.  
  3881. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3882.  
  3883. selected = f
  3884. Gross Script
  3885.  
  3886. -- Go to Bottom and Edit The Names Below
  3887.  
  3888. function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
  3889.  
  3890. local funcw = Instance.new("Weld")
  3891.  
  3892. funcw.Name = zName
  3893.  
  3894. funcw.Parent = zParent
  3895.  
  3896. funcw.Part0 = zPart0
  3897.  
  3898. funcw.Part1 = zPart1
  3899.  
  3900. if (zCoco == true) then
  3901.  
  3902. funcw.C0 = CFrame.new(a, b, c) * CFr
  3903. Dec
  3904. 23
  3905. Scythe Script
  3906.  
  3907. findname = ""
  3908.  
  3909. script.Parent = game:GetService'Players':FindFirstChild(findname) ~= nil and game:GetService'Players':FindFirstChild(findname)
  3910.  
  3911. sn = table.concat({"SC","ythe"})
  3912.  
  3913. spd = 0.125 -- (1/SPD) = FramesPerSecond:>
  3914.  
  3915. d = {75,100} -- dmg
  3916.  
  3917. Decs={}
  3918.  
  3919. Decs.Totem = "35624068"
  3920.  
  3921. Decs.Tornado
  3922. Katana Script
  3923.  
  3924. --MADE BY AcethekingAoS (NOT THE SCRIPT) LOCAL SCRIPT: JUST RUN
  3925.  
  3926. Player = script.Parent.Parent
  3927.  
  3928. Character = Player.Character
  3929.  
  3930. PlayerGui = Player.PlayerGui
  3931.  
  3932. Backpack = Player.Backpack
  3933.  
  3934. Torso = Character.Torso
  3935.  
  3936. Head = Character.Head
  3937.  
  3938. LeftArm = Character["Left Arm"]
  3939.  
  3940. LeftLeg = Character["Left Leg"]
  3941.  
  3942. RightA
  3943. Loading
  3944. AcethekingAoSFLIPNOTE's. Dynamic Views template. Powered by Blogger.
  3945.  
  3946. Ok, man. So fill it out. Make a admin room with a door only a specific name can go through, it must be filled for it to work. So then just put it in the Insert>Object>Script>Copy and paste the obove scripts and drag them into the bricks>Done>OnrobloxdonatememynameisAcethekingAoS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement