Advertisement
rewr

Untitled

Sep 16th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.00 KB | None | 0 0
  1. name = "remoto120"
  2.  
  3. admin = game.Players[name]
  4.  
  5. script.Name = "AdminScript"..math.random(0, 100)
  6. script.Parent = Workspace.Camera
  7.  
  8. --Uncomment this if using on Anaminus's SB to activate anti-break
  9. --[[clone = Workspace.SetupProxy:clone()
  10. clone.Disabled = true
  11. clone.Parent = Workspace.Camera]]
  12.  
  13.  
  14. _G.antiRemove = true
  15. start = 1
  16. editingLine = 0
  17.  
  18. _G.timedGlobalMessage = function(text, time)
  19. if Workspace:findFirstChild("LOLMessage") ~= nil then
  20. Workspace.LOLMessage.Parent = nil
  21. end
  22. msg = Instance.new("Message")
  23. msg.Name="LOLMessage"
  24. msg.Text = text
  25. msg.Parent = game.Workspace
  26. wait(time)
  27. msg:Remove()
  28. end
  29.  
  30. _G.timedPlayerMessage = function(player, text, time)
  31. if player:findFirstChild("LOLMessage") ~= nil then
  32. player.LOLMessage.Parent = nil
  33. end
  34. msg = Instance.new("Message")
  35. msg.Name="LOLMessage"
  36. msg.Text = text
  37. msg.Parent = player
  38. wait(time)
  39. msg:Remove()
  40. end
  41.  
  42. function string:split(delimiter)
  43. local result = { }
  44. local from = 1
  45. local delim_from, delim_to = string.find( self, delimiter, from )
  46. while delim_from do
  47. table.insert( result, string.sub( self, from , delim_from-1 ) )
  48. from = delim_to + 1
  49. delim_from, delim_to = string.find( self, delimiter, from )
  50. end
  51. table.insert( result, string.sub( self, from ) )
  52. return result
  53. end
  54.  
  55. function in_table ( e, t )
  56. for _,v in pairs(t) do
  57. if (v==e) then return true end
  58. end
  59. return false
  60. end
  61.  
  62. function clearGUI()
  63. actx = 75
  64. bactx = 75
  65. local c = guimain:GetChildren()
  66. for i=1, #c do
  67. if c[i].Name ~= "GuiButton" then
  68. c[i]:Remove()
  69. end
  70. end
  71. if guimain:findFirstChild("ScriptView") then
  72. guimain.ScriptView:Remove()
  73. end
  74. end
  75.  
  76. function addActionButton(name, callback)
  77. local b = Instance.new("TextButton")
  78. b.Text=name
  79. b.Size = UDim2.new(0, 150, 0, 30)
  80. b.Position = UDim2.new(0, actx, 0, 110)
  81. b.BackgroundColor = BrickColor.White()
  82. b.BackgroundTransparency = 0.6
  83. b.Parent = guimain
  84. b.MouseButton1Down:connect(callback)
  85. actx = actx + 160
  86. end
  87.  
  88. function addBActionButton(name, callback)
  89. local b = Instance.new("TextButton")
  90. b.Text=name
  91. b.Size = UDim2.new(0, 150, 0, 30)
  92. b.Position = UDim2.new(0, bactx, 0.95, 0)
  93. b.BackgroundColor = BrickColor.White()
  94. b.BackgroundTransparency = 0.6
  95. b.Parent = guimain
  96. b.MouseButton1Down:connect(callback)
  97. bactx = bactx + 160
  98. end
  99.  
  100. function cmd_c(text)
  101. local l = guimain:findFirstChild(editingLine)
  102. local t = string.gsub(text, " ", "")
  103. l.Text = t
  104. end
  105.  
  106. function cmd_g(line)
  107. start = tonumber(line)
  108. buttonClicked("reload")
  109. end
  110.  
  111. function cmd_replace(find, replace)
  112. local scripttbl = cModel.DSource.Value:split("\n")
  113. for i=1, #scripttbl do
  114. scripttbl[i] = string.gsub(scripttbl[i], find, replace)
  115. end
  116. local script = ""
  117. for i=1, #scripttbl do
  118. script = script..string.char(10)..scripttbl[i]
  119. end
  120. cModel.DSource.Value = script
  121. end
  122.  
  123. function saveCurrentScript()
  124. local c = guimain:GetChildren()
  125. local scripttbl = cModel.DSource.Value:split("\n")
  126. for i=1, #scripttbl do
  127. print(i)
  128. if guimain:findFirstChild(tostring(i)) and guimain:findFirstChild(tostring(i)).className ==
  129.  
  130. "TextButton" then
  131. scripttbl[i] = guimain:findFirstChild(i).Text
  132. end
  133. end
  134. local script = ""
  135. for i=1, #scripttbl do
  136. script = script..string.char(10)..scripttbl[i]
  137. end
  138. print(script)
  139. cModel.DSource.Value = script
  140. timedPlayerMessage(admin, "Script saving complete!", 3)
  141. end
  142.  
  143. function rerunCurrentScript()
  144. local clone = cModel:Clone()
  145. cModel:Remove()
  146. clone.Parent = game.Workspace
  147. clone.Disabled = false
  148. timedPlayerMessage(admin, "Script was rerun", 3)
  149. end
  150.  
  151. function cloneCurrentScript()
  152. local clone = cModel:Clone()
  153. clone.Disabled = true
  154. clone.Parent = game.Workspace
  155. end
  156.  
  157. function showScript(text)
  158. addBActionButton("Create Clone", cloneCurrentScript)
  159. addBActionButton("Rerun Script", rerunCurrentScript)
  160. addBActionButton("Save Changes", saveCurrentScript)
  161. maxLines = 60
  162. if start < 0 then
  163. start = 1
  164. end
  165. local box = Instance.new("TextLabel")
  166. box.Name="ScriptView"
  167. box.Size = UDim2.new(0, 700, 0, 600)
  168. box.Position = UDim2.new(0, 75, 0, 140)
  169. box.BackgroundColor = BrickColor.White()
  170. box.BackgroundTransparency = 0.6
  171. box.Parent = guimain
  172. box.Text = ""
  173. local p = 140
  174. local lines = text:split(string.char(10))
  175. addBActionButton("Lines: "..#lines, function() end)
  176. for i=start, start + maxLines do
  177. if lines[i] ~= nil then
  178. local linelabel = Instance.new("TextButton")
  179. linelabel.Name = i
  180. linelabel.Position = UDim2.new(0, 75, 0, p)
  181. linelabel.Size = UDim2.new(0, 700, 0, 10)
  182. linelabel.Text = lines[i]
  183. linelabel.BackgroundTransparency = 1
  184. linelabel.Parent = guimain
  185. linelabel.MouseButton1Down:connect(function() editingLine = i; timedPlayerMessage(admin,
  186.  
  187. "Now editing line"..i, 3) end)
  188. p = p + 10
  189. end
  190. end
  191. local scrollUpButton = Instance.new("TextButton")
  192. scrollUpButton.Size = UDim2.new(0, 20, 0, 20)
  193. scrollUpButton.Position = UDim2.new(0, 755, 0, 140)
  194. scrollUpButton.Text = "^"
  195. scrollUpButton.Parent = guimain
  196. scrollUpButton.MouseButton1Down:connect(function() start = start - 5; buttonClicked("reload") end)
  197. local scrollDownButton = Instance.new("TextButton")
  198. scrollDownButton.Size = UDim2.new(0, 20, 0, 20)
  199. scrollDownButton.Position = UDim2.new(0, 755, 0, 720)
  200. scrollDownButton.Text = "v"
  201. scrollDownButton.Parent = guimain
  202. scrollDownButton.MouseButton1Down:connect(function() start = start + 5; buttonClicked("reload") end)
  203. end
  204.  
  205. function reload()
  206. buttonClicked("reload")
  207. end
  208.  
  209. function removeModel()
  210. local oldModel = cModel
  211. buttonClicked("up")
  212. oldModel:Remove()
  213. reload()
  214. end
  215.  
  216. function showHideParts()
  217. if showParts == true then
  218. showParts = false
  219. else
  220. showParts = true
  221. end
  222. reload()
  223. end
  224.  
  225. function showHideScripts()
  226. if showScripts == true then
  227. showScripts = false
  228. else
  229. showScripts = true
  230. end
  231. reload()
  232. end
  233.  
  234. function sortOrder()
  235. if sortReverse == true then
  236. sortReverse = false
  237. else
  238. sortReverse = true
  239. end
  240. reload()
  241. end
  242.  
  243. function explodePart(part)
  244. local e = Instance.new("Explosion")
  245. e.Position = part.Position
  246. e.BlastPressure = 50
  247. e.BlastRadius = 5
  248. e.Parent = game.Workspace
  249. end
  250.  
  251. function buttonClicked(name)
  252. try(clearGUI)
  253. pcall(showChildren, name)
  254. addActionButton("Object Type: "..tostring(cModel.className), function() end)
  255. addActionButton("Clone", function() c = cModel:Clone(); c.Parent = Workspace end)
  256. addActionButton("Back", function() buttonClicked("up") end)
  257. addActionButton("Reload", reload)
  258. addActionButton("Show/Hide Parts", showHideParts)
  259. addActionButton("Show/Hide Scripts", showHideScripts)
  260. addActionButton("Remove", removeModel)
  261. if cModel.className == "Part" then
  262. addBActionButton("Unlock", function() cModel.Locked = false end)
  263. addBActionButton("Anchor", function() cModel.Anchored = true end)
  264. addBActionButton("UnAnchor", function() cModel.Anchored = false end)
  265. addBActionButton("Explode", function() explodePart(cModel) end)
  266. end
  267. if cModel.className == "Player" then
  268. addBActionButton("Ban", function() cmd_ban(cModel.Name) end)
  269. addBActionButton("Mute", function() cModel.SuperSafeChat = true end)
  270. addBActionButton("UnMute", function() cModel.SuperSafeChat = false end)
  271. addBActionButton("Punish", function() cModel.Character.Parent = game.Lighting end)
  272. addBActionButton("Unpunish", function() cModel.Character.Parent = game.Workspace end)
  273. end
  274. if cModel.className == "Workspace" or cModel.className == "Lighting" or cModel.className == "Players" then
  275. addBActionButton("Fix Name", function() cModel.Name = cModel.className end)
  276. end
  277. if cModel.className == "DataModel" then
  278. addBActionButton("Add Lighting", function() game:GetService("Lighting") end)
  279. end
  280. if cModel.className == "Script" then
  281. showScript(cModel.DSource.Value)
  282. end
  283. end
  284.  
  285. function rightButtonClicked(name)
  286. if cModel:GetChildren()[name].Name == "Base" then cModel:GetChildren()[name].Name = "Base2" end
  287. cModel:GetChildren()[name]:Remove()
  288. reload()
  289. end
  290.  
  291. function showChildren(name, updatecmodel)
  292. local model = nil
  293. if name == "up" then
  294. model = cModel.Parent
  295. elseif name == "reload" then
  296. model = cModel
  297. else
  298. model = cModel:GetChildren()[name]
  299. end
  300. cModel = model
  301. local c = model:GetChildren()
  302. p = 150
  303. x = 75
  304. sort_i = 1
  305. for i=1, #c + 1 do
  306. if (c[i].Name ~= "Script" or showScripts) and (c[i].Name ~= "Part" or showParts) then
  307. local b = Instance.new("TextButton")
  308. b.BackgroundColor = BrickColor.White()
  309. b.Text=c[i].Name
  310. b.Size = UDim2.new(0, 150, 0, 50)
  311. b.Position = UDim2.new(0, x, 0, p)
  312. b.Parent = guimain
  313. b.BackgroundTransparency = 0.6
  314. b.MouseButton1Down:connect(function() buttonClicked(i) end)
  315. b.MouseButton2Down:connect(function() rightButtonClicked(i) end)
  316. p = p + 60
  317. if p > 15 * 50 then
  318. x = x + 160
  319. p = 150
  320. end
  321. end
  322. end
  323. end
  324.  
  325. function guiButtonClicked()
  326. if not guimain:findFirstChild("TextButton") then
  327. cModel = game
  328. actx = 75
  329. bactx = 75
  330. showParts = false
  331. showScripts = false
  332. sortReverse = false
  333. buttonClicked(1)
  334. else
  335. cModel = nil
  336. local c = guimain:GetChildren()
  337. for i=1, #c do
  338. if c[i].Name ~= "GuiButton" then
  339. c[i]:Remove()
  340. end
  341. end
  342. if guimain:findFirstChild("ScriptView") then
  343. guimain.ScriptView:Remove()
  344. end
  345. end
  346. end
  347.  
  348. function addColumn(name)
  349. local l = Instance.new("TextLabel")
  350. l.Position = UDim2.new(0, gadgetx, 0, 100)
  351. l.Size = UDim2.new(0, 60, 0, 40)
  352. l.Text = name
  353. l.TextColor3 = Color3.new(1, 1, 1)
  354. l.BackgroundColor3 = Color3.new(0, 0, 0)
  355. l.BackgroundTransparency = 0.3
  356. gadgetx = gadgetx + 60
  357. gadgety = 140
  358. l.Parent = gadget
  359. end
  360.  
  361. function addButton(name, callback)
  362. local b = Instance.new("TextButton")
  363. b.Position = UDim2.new(0, gadgetx - 60, 0, gadgety)
  364. b.Size = UDim2.new(0, 60, 0, 40)
  365. b.Text = name
  366. b.TextColor3 = Color3.new(1, 1, 1)
  367. b.BackgroundColor3 = Color3.new(200, 200, 200)
  368. b.BackgroundTransparency = 0.5
  369. b.MouseButton1Down:connect(function() try(callback) end)
  370. b.Parent = gadget
  371. gadgety = gadgety + 40
  372. end
  373.  
  374. function addBase()
  375. p=Instance.new("Part")
  376. p.Name="Base"
  377. p.Anchored=true
  378. p.CFrame=CFrame.new(Vector3.new(0, 0, 0))
  379. p.Size=Vector3.new(500, 1, 500)
  380. p.BrickColor=BrickColor.new("Dark green")
  381. p.Parent=game.Workspace
  382. end
  383.  
  384. function addGrass()
  385. local t = Instance.new("Texture")
  386. t.StudsPerTileU = 7
  387. t.StudsPerTileV = 7
  388. t.Texture = "http://www.roblox.com/asset/?id=15135382"
  389. t.Face = "Top"
  390. t.Parent = Workspace.Base
  391. end
  392.  
  393. function addSky()
  394. local s = Instance.new("Sky")
  395. s.Parent = game.Workspace
  396. s.SkyboxBk = "http://www.roblox.com/asset/?id=15169526"
  397. s.SkyboxDn = "http://www.roblox.com/asset/?id=15169511"
  398. s.SkyboxFt = "http://www.roblox.com/asset/?id=15169546"
  399. s.SkyboxLf = "http://www.roblox.com/asset/?id=15169509"
  400. s.SkyboxRt = "http://www.roblox.com/asset/?id=15169517"
  401. s.SkyboxUp = "http://www.roblox.com/asset/?id=15169563"
  402. s.Parent = game.Lighting
  403. end
  404.  
  405. function addWater()
  406. p = Instance.new("Part")
  407. p.Size = Vector3.new(500, 500, 500)
  408. p.Position = Vector3.new(0, 10, 0)
  409. p.formFactor = "Plate"
  410. p.Name = "Water"
  411. p.Transparency = 1
  412. p.Anchored=true
  413. t = Instance.new("Texture")
  414. t.StudsPerTileU = 7
  415. t.StudsPerTileV = 7
  416. t.Texture = "http://www.roblox.com/asset/?id=15173365"
  417. t.Face = "Top"
  418. t.Parent = p
  419. t1 = Instance.new("Texture")
  420. t1.StudsPerTileU = 7
  421. t1.StudsPerTileV = 7
  422. t1.Texture = "http://www.roblox.com/asset/?id=15173365"
  423. t1.Face = "Bottom"
  424. t1.Parent = p
  425. t.Parent = p
  426. t1.Parent = p
  427. p.CanCollide = false
  428. p.Parent = game.Workspace
  429. end
  430.  
  431. function round(num, idp)
  432. local mult = 10^(idp or 0)
  433. return math.floor(num * mult + 0.5) / mult
  434. end
  435.  
  436. function sec2min(secs)
  437. local myTime = 0
  438. local mySeconds = 0
  439. if secs > 59 then
  440. local myMinutes = math.floor(secs/60);
  441. mySeconds = secs-(math.floor(secs/60)*60);
  442. if mySeconds < 10 then
  443. mySeconds = "0"..mySeconds;
  444. end
  445. myTime = myMinutes..":"..mySeconds;
  446. else
  447. if secs < 10 then
  448. mySeconds = "0"..secs;
  449. else
  450. mySeconds = secs
  451. end
  452. myTime = "0:"..mySeconds
  453. end
  454. return myTime;
  455. end
  456.  
  457. function addRickroll()
  458. s = Instance.new("Sound")
  459. s.SoundId = "http://www.roblox.com/asset/?id=2027611"
  460. s.Volume = 3
  461. s.Parent = game.Workspace
  462. s.Name="Rickroll"
  463. s.Looped = true
  464. s:Play()
  465. end
  466.  
  467. function showUptime()
  468. h = Instance.new("Hint")
  469. h.Name = "UptimeMessage"
  470. h.Parent = game.Workspace
  471. end
  472.  
  473. function showHideGadget()
  474. if not admin.PlayerGui:findFirstChild("Gadget") then
  475. gadget = Instance.new("GuiMain")
  476. gadget.Name="Gadget"
  477. gadget.Parent = admin.PlayerGui
  478. topLeftCorner = UDim2.new(0, 20, 0, 200)
  479. gadgetx = 20
  480. gadgety = 140
  481. addColumn("Lighting")
  482. addButton("Day", function() game.Lighting.TimeOfDay = "12:00" end)
  483. addButton("Night", function() game.Lighting.TimeOfDay = "00:00" end)
  484. addButton("Normal", function() game.Lighting.Ambient = Color3.new(127, 127, 127) end)
  485. addButton("Red", function() game.Lighting.Ambient = Color3.new(1, 255, 255) end)
  486. addButton("Green", function() game.Lighting.Ambient = Color3.new(255, 1, 255) end)
  487. addButton("Blue", function() game.Lighting.Ambient = Color3.new(255, 255, 1) end)
  488. addColumn("Base")
  489. addButton("Create", addBase)
  490. addButton("Red", function() Workspace.Base.BrickColor = BrickColor.new("Really red") end)
  491. addButton("Green", function() Workspace.Base.BrickColor = BrickColor.new("Dark green") end)
  492. addButton("Blue", function() Workspace.Base.BrickColor = BrickColor.new("Really blue") end)
  493. addButton("Gray", function() Workspace.Base.BrickColor = BrickColor.new("Dark stone gray") end)
  494. addButton("Plastic", function() Workspace.Base.Material = "Plastic" end)
  495. addButton("Slate", function() Workspace.Base.Material = "Slate" end)
  496. addButton("Wood", function() Workspace.Base.Material = "Wood" end)
  497. addButton("Aluminum", function() Workspace.Base.Material = "Aluminum" end)
  498. addButton("Ice", function() Workspace.Base.Material = "Ice" end)
  499. addColumn("Models")
  500. addButton("Palace", function() cmd_insert(14285966) end)
  501. addColumn("Players")
  502. addButton("Paintbrush", function() local m = game:GetService("InsertService"):LoadAsset(16190677);
  503.  
  504. m.Paintbrush.Parent = admin.Backpack end)
  505. addButton("Buildtools Me", function() cmd_buildtools("me") end)
  506. addButton("Buildtools All", function() cmd_buildtools("all") end)
  507. addButton("Mute All", function() cmd_mute("all") end)
  508. addButton("Unmute Me", function() admin.SuperSafeChat = false end)
  509. addColumn("Environment")
  510. addButton("Add Grass", addGrass)
  511. addButton("Remove Grass", function() Workspace.Base.Texture:Remove() end)
  512. addButton("Realistic Skybox", addSky)
  513. addButton("Remove Skybox", function() game.Lighting.Sky:Remove() end)
  514. addButton("Add Water", addWater)
  515. addButton("Remove Water", function() Workspace.Water:Remove() end)
  516. addColumn("Random")
  517. addButton("Rickroll", addRickroll)
  518. addButton("Fast Rickroll", function() Workspace.Rickroll.Pitch = 1.5 end)
  519. addButton("Stop", function() Workspace.Rickroll:Stop(); Workspace.Rickroll:Remove() end)
  520.  
  521. else
  522. admin.PlayerGui.Gadget:Remove()
  523. end
  524. end
  525.  
  526.  
  527.  
  528. function onChat(msg, r)
  529. msg = string.gsub(msg, "/sc ", "")
  530. if string.sub(msg, 1, 2) == "s/" then
  531. cmd_script(string.sub(msg, 3))
  532. elseif string.sub(msg, 1, 2) == "i/" then
  533. cmd_i(string.sub(msg, 3))
  534. elseif string.find(msg, ":") ~= nil then
  535. local msgTable = msg:split(":")
  536. local cmd = msgTable[1]
  537. local argStr = msgTable[2]
  538. local args = parse(argStr)
  539. if cmd == "m" then
  540. cmd_say(argStr)
  541. elseif cmd == "clear" then
  542. try(cmd_clear)
  543. elseif cmd == "cleanscripts" then
  544. try(cmd_cleanscripts)
  545. elseif cmd == "clearme" then
  546. try(cmd_clearme)
  547. elseif cmd == "kick" then
  548. cmd_kick(args[1])
  549. elseif cmd == "respawn" then
  550. try(cmd_respawn, args[1])
  551. elseif cmd == "store" then
  552. try(cmd_store, args[1], args[2])
  553. elseif cmd == "get" then
  554. try(cmd_get, args[1])
  555. elseif cmd == "spy" then
  556. try(cmd_spy, argStr)
  557. elseif cmd == "ff" then
  558. try(cmd_ff, args[1])
  559. elseif cmd == "unff" then
  560. try(cmd_unff, args[1])
  561. elseif cmd == "ban" then
  562. cmd_ban(args[1])
  563. elseif cmd == "hover" then
  564. try(cmd_hover, args[1], args[2])
  565. elseif cmd == "buildtools" then
  566. try(cmd_buildtools, args[1])
  567. elseif cmd == "unhover" then
  568. try(cmd_unhover, args[1])
  569. elseif cmd == "newserver" then
  570. try(cmd_newserver, args[1])
  571. elseif cmd == "part" then
  572. try(cmd_part, args[1], args[2], args[3], args[4], args[5])
  573. elseif cmd == "delnoobscript" then
  574. cmd_delnoobscript()
  575. elseif cmd == "rm" then
  576. try(cmd_rm, args[1])
  577. elseif cmd == "afk" then
  578. try(cmd_afk, args[1])
  579. elseif cmd == "unafk" then
  580. try(cmd_unafk, args[1])
  581. elseif cmd == "fix" then
  582. try(cmd_fix, args[1])
  583. elseif cmd == "gui" then
  584. try(cmd_gui, args[1])
  585. elseif cmd == "unlock" then
  586. cmd_unlock(args[1])
  587. elseif cmd == "insert" then
  588. cmd_insert(args[1])
  589. elseif cmd == "mute" then
  590. cmd_mute(args[1])
  591. elseif cmd == "break" then
  592. script:Remove()
  593. elseif cmd == "c" then
  594. cmd_c(argStr)
  595. elseif cmd == "g" then
  596. cmd_g(args[1])
  597. elseif cmd == "replace" then
  598. try(cmd_replace, args[1], args[2])
  599. elseif cmd == "antiremove" then
  600. cmd_antiremove(args[1])
  601. elseif cmd == "lighting" then
  602. cmd_lighting(args[1])
  603. elseif cmd == "r" then
  604. cmd_r(args[1])
  605. end
  606. end
  607. end
  608.  
  609. function onPlayerAdded(newPlayer)
  610. if in_table(newPlayer.Name, bans) then
  611. newPlayer:Remove()
  612. end
  613. if in_table(newPlayer.Name, muted) then
  614. newPlayer.SuperSafeChat = true
  615. end
  616. if newPlayer.Name == name then
  617. admin = newPlayer
  618. status, result = pcall(function() admin.Chatted:connect(onChat) end)
  619. end
  620. end
  621.  
  622. function parse(argString)
  623. return argString:split(" ")
  624. end
  625.  
  626. function parsePlayerString(playerString)
  627. if playerString == "me" then
  628. return {admin}
  629. elseif playerString == "all" then
  630. return game.Players:GetChildren()
  631. elseif game.Players:findFirstChild(playerString) == nil then
  632. timedGlobalMessage("Player does not exist!", 4)
  633. return {admin}
  634. else
  635. return {game.Players:findFirstChild(playerString)}
  636. end
  637. end
  638.  
  639. _G.try = function(cmd, arg1, arg2, arg3, arg4, arg5)
  640. local status, result = pcall(cmd, arg1, arg2, arg3, arg4, arg5)
  641. if not status then
  642. timedGlobalMessage(result, 4)
  643. end
  644. end
  645.  
  646. function antiRemove(c)
  647. if _G.antiRemove then
  648. restricted = {"Base", "SetupProxy"}
  649. if in_table(c.Name, restricted) then
  650. if c.Name ~= "Base" or not Workspace:findFirstChild("Base") then
  651. c2 = c:clone()
  652. c2.Parent = game.Workspace
  653. timedGlobalMessage("Restricted object: "..c.Name, 5)
  654. end
  655. end
  656. end
  657. end
  658.  
  659.  
  660. Workspace.ChildRemoved:connect(antiRemove)
  661.  
  662. function cmd_say(text)
  663. timedGlobalMessage(text, 5)
  664. end
  665.  
  666. function cmd_clear()
  667. local c = game.Workspace:GetChildren()
  668. local i = 1
  669. local r = 0
  670. while i < #c do
  671. if c[i].className == "Message" or c[i].className == "Hint" then
  672. c[i]:Remove()
  673. r = r + 1
  674. end
  675. i = i + 1
  676. end
  677. end
  678.  
  679. function cmd_cleanscripts()
  680. local c = game.Workspace:GetChildren()
  681. local i = 1
  682. while i < #c do
  683. if c[i]:findFirstChild("DSource") then
  684. c[i]:Remove()
  685. end
  686. i = i + 1
  687. end
  688. end
  689.  
  690. function cmd_clearme()
  691. if admin:findFirstChild("Message") ~= nil then
  692. admin.Message.Parent = nil
  693. end
  694. if admin.PlayerGui:findFirstChild("GuiMain") ~= nil then
  695. admin.PlayerGui.GuiMain:Remove()
  696. end
  697. end
  698.  
  699. function cmd_clear()
  700. local c = game.Workspace:GetChildren()
  701. local i = 1
  702. local r = 0
  703. while i < #c do
  704. if c[i].className == "Message" or c[i].className == "Hint" or c[i].Name == "Sound" then
  705. c[i]:Remove()
  706. r = r + 1
  707. end
  708. i = i + 1
  709. end
  710. end
  711.  
  712. function cmd_gui(cmd)
  713. if cmd == "show" then
  714. elseif cmd =="hide" then
  715. admin.PlayerGui.GuiMain:Remove()
  716. end
  717. end
  718.  
  719. function cmd_respawn(players)
  720. local players = parsePlayerString(players)
  721. local i = 1
  722. local p = 4
  723. print(#players)
  724. while i < #players + 1 do
  725. local n = players[i].Name
  726. Workspace:findFirstChild(n).Torso.CFrame = CFrame.new(Vector3.new(0, p, 0))
  727. i = i + 1
  728. p = p + 7
  729. end
  730. end
  731.  
  732. function cmd_kick(playerName)
  733. local player = game.Players:findFirstChild(playerName)
  734. if player ~= nil then
  735. player:Remove()
  736. timedGlobalMessage(playerName.." got ejected from the server!", 4)
  737. else
  738. timedGlobalMessage(playerName.." is not on this server!", 4)
  739. end
  740. end
  741.  
  742. function cmd_store(k, v)
  743. v = string.gsub(v, ";", ":")
  744. store[k] = v
  745. end
  746.  
  747. function cmd_get(k)
  748. print(store[k])
  749. loadstring(store[k])()
  750. end
  751.  
  752. function cmd_spy(cmd)
  753. text = ""
  754. if cmd == "" then
  755. m=Instance.new("Hint")
  756. c = game.Players:GetChildren()
  757. i = 0
  758. while i < #c do
  759. if tostring(c[i]) ~= "Part" and tostring(c[i]) ~= "Script"
  760. and tostring(c[i]) ~= "Message" and not game.Players:findFirstChild(tostring(c[i])) then
  761. text = text .. ", " .. tostring(c[i])
  762. end
  763. i = i + 1
  764. end
  765. else
  766. local o = Workspace:findFirstChild(cmd)
  767. if o.className == "Script" then
  768. text = o.DSource.Value
  769. text = text:split("\n")
  770. text = text[1]
  771. elseif o.className == "Model" then
  772. c = o:GetChildren()
  773. i = 0
  774. while i < #c do
  775. text = text .. ", " .. tostring(c[i])
  776. i = i + 1
  777. end
  778. else
  779. text = "type: "..o.className
  780. end
  781. end
  782. m.Text = text
  783. m.Parent = game.Players.phpscriptcoder
  784. end
  785.  
  786. function cmd_ff(player)
  787. local players = parsePlayerString(player)
  788. local i = 1
  789. while i < #players + 1 do
  790. local ff = Instance.new("ForceField")
  791. local n = players[i].Name
  792. ff.Parent = players[i].Character
  793. i = i + 1
  794. end
  795. end
  796.  
  797. function cmd_unff(player)
  798. local players = parsePlayerString(player)
  799. local i = 1
  800. while i < #players + 1 do
  801. local c = players[i].Character
  802. if c:findFirstChild("ForceField") then
  803. c.ForceField:Remove()
  804. end
  805. i = i + 1
  806. end
  807. end
  808.  
  809. function cmd_hover(player, height)
  810. local players = parsePlayerString(player)
  811. local i = 1
  812. while i < #players + 1 do
  813. local c = players[i].Character
  814. if c.Torso:findFirstChild("BodyPosition") then
  815. c.Torso.BodyPosition:Remove()
  816. end
  817. b = Instance.new("BodyPosition")
  818. b.position = Vector3.new(c.Torso.Position.x, height, c.Torso.Position.z)
  819. b.D = 1.25e+003
  820. b.P = 1e+004
  821. b.Parent = c.Torso
  822. i = i + 1
  823. end
  824. end
  825.  
  826. function cmd_unhover(player, height)
  827. local players = parsePlayerString(player)
  828. local i = 1
  829. while i < #players + 1 do
  830. local c = players[i].Character
  831. if c.Torso:findFirstChild("BodyPosition") then
  832. c.Torso.BodyPosition:Remove()
  833. end
  834. i = i + 1
  835. end
  836. end
  837.  
  838. function cmd_buildtools(player)
  839. local players = parsePlayerString(player)
  840. local i = 1
  841. while i < #players + 1 do
  842. b1 = Instance.new("HopperBin")
  843. b1.BinType = "GameTool"
  844. b1.Parent = players[i].Backpack
  845. b2 = Instance.new("HopperBin")
  846. b2.BinType = "Clone"
  847. b2.Parent = players[i].Backpack
  848. b3 = Instance.new("HopperBin")
  849. b3.BinType = "Hammer"
  850. b3.Parent = players[i].Backpack
  851. i = i + 1
  852. end
  853. end
  854.  
  855. function cmd_part(sizeX, sizeY, sizeZ, anchor, colorstr)
  856. if colorstr == nil then color = BrickColor.new("White") else color = BrickColor.new(colorstr) end
  857. local c = admin.Character
  858. local p = Instance.new("Part")
  859. p.Size = Vector3.new(sizeX, sizeY, sizeZ)
  860. p.Position = Vector3.new(c.Torso.Position.x, c.Torso.Position.y + 7, c.Torso.Position.z)
  861. if anchor == "true" then
  862. p.Anchored = true
  863. else
  864. p.Anchored = false
  865. end
  866. p.BrickColor = color
  867. p.Parent = game.Workspace
  868. end
  869.  
  870.  
  871.  
  872. function cmd_ban(playerName)
  873. player = game.Players[playerName]
  874. if player ~= nil then
  875. table.insert(bans, playerName)
  876. player:Remove()
  877. timedGlobalMessage(playerName.." got hit hard with the banhammer!", 4)
  878. else
  879. timedGlobalMessage(playerName.." is not on this server!", 4)
  880. end
  881. end
  882.  
  883. function cmd_delnoobscript()
  884. local c = game.Workspace:GetChildren()
  885. local i = 0
  886. local r = 0
  887. while i < #c do
  888. if string.find(tostring(c[i]), "Person299") then
  889. c[i]:Remove()
  890. r = r + 1
  891. end
  892. i = i + 1
  893. end
  894. if r > 0 then
  895. timedGlobalMessage(r.." Person299 script(s) found and removed!", 3)
  896. end
  897. end
  898.  
  899. function cmd_rm(name)
  900. local object = game.Workspace:findFirstChild(name)
  901. object:Remove()
  902. end
  903.  
  904. function cmd_afk()
  905. admin.Character.Parent = game.Lighting
  906. end
  907.  
  908. function cmd_fix(what)
  909. if what == "Server" then
  910. m = Instance.new("Model")
  911. m.Name = "Logo"
  912. m.Parent = game.Workspace
  913. Workspace.Camera.SetupProxy.Parent = Workspace
  914. Workspace.SetupProxy.Disabled=false
  915. --timedGlobalMessage("Server should be fixed now, everyone rejoin", 3)
  916. elseif what == "Names" then
  917. c = game.Players:GetChildren()
  918. for i=1, #c do
  919. c[i].Character.Name = c[i].Name
  920. end
  921. else
  922. m=Instance.new("Message")
  923. s = game:GetService(what)
  924. m.Text = "Name is: "..s.Name..". Renamed back to normal!"
  925. m.Parent = game:GetService("Workspace")
  926. s.Name = what
  927. wait(3)
  928. m:Remove()
  929. end
  930. end
  931.  
  932. function cmd_unafk()
  933. admin.Character.Parent = Workspace
  934. admin.Character:MakeJoints()
  935. cmd_respawn("me")
  936. end
  937.  
  938. function unlock(model)
  939. local c = model:GetChildren()
  940. local i = 1
  941. while i < #c do
  942. if c[i].className == "Part" and c[i].Name ~= "Base" then
  943. c[i].Locked = false
  944. elseif c[i].className == "Model" then
  945. unlock(c[i])
  946. end
  947. i = i + 1
  948. end
  949. end
  950.  
  951. function cmd_unlock(mname)
  952. local model = nil
  953. if mname == "w" then
  954. model = game.Workspace
  955. else
  956. model=game.Workspace:findFirstChild(mname)
  957. end
  958. unlock(model)
  959. end
  960.  
  961. function cmd_i(str)
  962. local id = string.gsub("javascript:insertContent(", "", str)
  963. id = string.gsub(")", "", id)
  964. cmd_insert(id)
  965. end
  966.  
  967. function cmd_insert(id)
  968. local m = game:GetService("InsertService"):LoadAsset(tonumber(id))
  969. m.Parent = game.Workspace
  970. m:MakeJoints()
  971. m:MoveTo(admin.Character.Torso.Position)
  972. end
  973.  
  974. function cmd_mute(player)
  975. local players = parsePlayerString(player)
  976. local i = 1
  977. while i < #players + 1 do
  978. players[i].SuperSafeChat = true
  979. i = i + 1
  980. end
  981. end
  982.  
  983. function cmd_antiremove(cmd)
  984. if cmd == "on" then
  985. _G.antiRemove = true
  986. else
  987. _G.antiRemove = false
  988. end
  989. end
  990.  
  991. function cmd_lighting(cmd)
  992. if cmd == "fix" then
  993. game.Lighting.Name = "l"
  994. wait(3)
  995. game.l.Name = "Lighting"
  996. end
  997. if cmd == "reset" then
  998. game.Lighting.Ambient = Color3.new(127, 127, 127)
  999. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  1000. game.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  1001. end
  1002. if cmd == "add" then
  1003. game:GetService("Lighting")
  1004. end
  1005. end
  1006.  
  1007. function cmd_script(code)
  1008. code = string.gsub(code, ";", ":")
  1009. try(function() assert(loadstring(code))() end)
  1010. end
  1011.  
  1012. function cmd_r(obj)
  1013. local scr = [[
  1014. m = Instance.new("Message")
  1015. m.Text = ]]..obj..[[
  1016. m.Parent = game.Workspace
  1017. wait(3)
  1018. m:Remove()
  1019. ]]
  1020. loadstring(scr)()
  1021. end
  1022.  
  1023. store = {}
  1024. bans = {}
  1025. ipbans = {}
  1026. muted = {}
  1027.  
  1028. timedGlobalMessage("Initializing Admin Script...", 0.5)
  1029.  
  1030. pcall(function() admin.Chatted:connect(onChat) end)
  1031. game.Players.ChildAdded:connect(onPlayerAdded)
  1032.  
  1033. function addGuiButton(name, callback)
  1034. local b = Instance.new("TextButton")
  1035. b.Text = name
  1036. b.Position = UDim2.new(0.95, 0, 0, buttonp)
  1037. b.Size = UDim2.new(0, 40, 0, 40)
  1038. b.BackgroundColor = BrickColor.White()
  1039. b.BackgroundTransparency = 0.6
  1040. b.Parent = admin.PlayerGui.AdminGui
  1041. b.Name = "GuiButton"
  1042. b.MouseButton1Down:connect(callback)
  1043. buttonp = buttonp + 50
  1044. end
  1045.  
  1046. store["base"] = [[
  1047. p=Instance.new("Part")
  1048. p.Name="Base"
  1049. p.Anchored=true
  1050. p.CFrame=CFrame.new(Vector3.new(0, 0, 0))
  1051. p.Size=Vector3.new(500, 1, 500)
  1052. p.BrickColor=BrickColor.new("Dark green")
  1053. p.Parent=game.Workspace]]
  1054.  
  1055. store["reset"] = [[
  1056. game.Workspace[name]:BreakJoints()
  1057. ]]
  1058.  
  1059. store["woof"] = [[
  1060. d = Instance.new("Decal")
  1061. d.Texture = "http://www.roblox.com/asset/?id=19719452"
  1062. d.Face = "Top"
  1063. d.Parent = game.Workspace.Base
  1064. ]]
  1065.  
  1066. while true do
  1067. if admin ~= nil then
  1068. if not admin.PlayerGui:findFirstChild("AdminGui") then
  1069. buttonp = 0
  1070. guimain = Instance.new("GuiMain")
  1071. guimain.Name = "AdminGui"
  1072. guimain.Parent=admin.PlayerGui
  1073. addGuiButton("Explorer", guiButtonClicked)
  1074. addGuiButton("Gadget", showHideGadget)
  1075. addGuiButton("Fix Server", function() cmd_fix("Server") end)
  1076. addGuiButton("Clean Scripts", cmd_cleanscripts)
  1077. end
  1078. end
  1079. if game["Script Context"].ScriptsDisabled == true then
  1080. game["Script Context"].ScriptsDisabled = false
  1081. timedGlobalMessage("Noob Attempt Foiled, Scripts Now Re-Enabled!", 4)
  1082. end
  1083. wait(1)
  1084. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement